Changeset 3871 in Sophya for trunk/SophyaLib


Ignore:
Timestamp:
Aug 12, 2010, 7:34:10 PM (15 years ago)
Author:
ansari
Message:

MAJ user's guide piapp pour V=2.2, Reza 12/08/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Manual/piapp.tex

    r3858 r3871  
    190190The flag {\tt -term} activate a command reader on the terminal
    191191It is also possible to have a command reader on  the terminal ({\tt stdin}).  \\[1mm]
     192The environment variable {\tt PIDEFAFSZFRAC} controls the automatic selection
     193of font size for drawing axes, as a function of the window size (typical value 0.03 \ldots 0.1).
     194Check the command {\tt setdefafsz } \myppageref{setdefafsz} and {\tt setaxesatt}
     195\myppageref{setaxesatt} for more information. \\[1mm]
    192196
    193197\par
     
    571575a color map view widget. A specific image control window can be activated using
    572576 {\tt $<$Alt$>$O}.  See {\bf PIImage} \myppageref{PIImage} for
    573 a complete list of mouse and keyboard actions. A base drawer (number 0) can handle
    574 axes drawing and added graphic elements.
     577a complete list of mouse and keyboard actions. A base drawer (number 0) handles
     578axes drawing and added graphic elements. The colormap with the LUT information
     579can also be displayed through a second drawer (PICMapDrawer). The colormap
     580display in the main image window is controlled by the {\tt showcmap} graphic option.
    575581%%%
    576582\subsubsection{Windows}
     
    635641interpreter. The options are decoded by the different objects handling the
    636642graphic (viewer widget, drawer, axe drawer). \\
    637 The complex decoding scheme
    638 is usually transparent for piapp users. However, there is an ambiguity when
     643The complex decoding scheme is usually transparent for piapp users.
     644However, there is an ambiguity when
    639645specifying some of the axes attributes, such as color or the font used for
    640646drawing the axes. The command {\bf setaxesatt}  (\myppageref{setaxesatt})
    641 should thus be used to specify generic graphic attributes
    642 (color, font, line type) for axes.
     647should thus be used to specify generic graphic attributes (color, font, line type) for axes.
     648
     649\subsection{Complex 2D array display}
     650A specific graphic attribute can be specified when displaying 2D arrays
     651with complex numbers as their content. By default, the complex arrays are rendered
     652using the modulus of the complex
     653numbers ($\sqrt{\mathrm{real}(z)^2+\mathrm{imag}(z)^2}$), in particular for
     654image and surface display {\tt (disp, imag, surf)}. It is however possible to change
     655this behaviour by specifying the following graphic attributes:
     656\begin{verbatim}
     657cdreal : graphic rendering using the real(z)
     658cdimag : graphic rendering using the imaginary part, imag(z)
     659cdphase : graphic rendering using the phase, atan2(real,imag)
     660cdmod : graphic rendering using the module. this is the defaut.
     661cdmod2 : graphic rendering using the module squared (re^2+im^2)
     662
     663## Consider a complex matrix cmx
     664piapp> disp cmx
     665# will represent the module(cmx) in grey/color scale
     666piapp> disp cmx 'cdphase'
     667# will represent the phase(cmx) in grey/color scale
     668\end{verbatim}
     669
     670
    643671\subsubsection{PIScDrawWdg}
    644672The {\bf PIScDrawWdg} which handles 2d graphics recognizes the following options:
     
    651679  linx  logx  : Linear or logarithmic scale for X Axis
    652680  liny logy : Linear or logarithmic scale for Y Axis
    653   revax : Set X axis direction  Right to Left (or axerl)
    654   revay : Set Y axis direction  Up to Down (or axeud)
     681  axerl : Set X axis direction  Right to Left (or revax)
     682  axeud : Set Y axis direction  Up to Down (or revay)
    655683  axelr : AxeDirLtoR   axedu : AxeDirDownUp
    656684>> To change the background color (default=white)
     
    681709  zoom/Fact  (zoom/2 zoom/3 ... )
    682710>> LUT (look-up table) definition (pixel value to index conversion)
    683   lut=type,min,max   (type=lin/log/sqrt/square)
     711  lut=type,min,max   (type=lin/log/exp/sqrt/square)
     712  lut_type=rgb is reserved for true color image display
    684713>> AutoLut selector : define the method for automatic determination
    685714     of LUT limits (min/max)
     
    690719   - autolut=histail[,ns] --> the tail of pixel values histogram
    691720   - autolut=hisrng[,Frac[,minp,maxp]] 0<=Frac<=1 --> the central pixel values
     721>> To display the color map with the LUT scale in the main image widget
     722   showcmap , showcmap=showcmap=no ,  showcmap=top
     723   showcmap=no/top/right/bottom/left/horiz/vert
    692724>> Define color table and reversing color indexing flag
    693725  ColTableName     revcmap
     
    704736          midas_stairs9 midas_staircase midas_color
    705737          midas_manycol  midas_idl14  midas_idl15
    706   ==> Other tables
    707           multicol16 multicol64
     738  ==> Other tables
     739          multicol16 multicol64
     740  ==> Other tables RGB component color map (lut_type=RGB)
     741          rgb216cm rgb512cm rgb4096cm rgb32768cm
    708742>> Viewed center position (image/array coordinates)
    709743  imagecenter=xc,yc 
     
    744778                midas_bluewhite midas_redwhite
    745779                multicol16 multicol64
     780                rgb216cm rgb512cm rgb4096cm rgb32768cm
    746781>   revcmap : This flag reverses ColorMap indexing
    747782------- Old style graphic att ----------
     
    774809   extticks/intticks/extintticks nbticks=X_NbTicks,Y_NbTicks
    775810   tickslen=MajorTickLenFrac,MinorTickLenFraC
    776  >> Axe label font size:
     811>> Axe label font size:
    777812    autofontsize=FontSizeFrac fixedfontsize
    778813 >> Up/Down title: title tit notitle notit
     
    9761011
    9771012FITS format files can be read through the menu command \menubar{File/Open-Fits},
    978 or using {\tt readfits/openfits} \myppageref{readfits} command.
     1013or using {\tt readfits/openfits} \myppageref{readfits} command. The command
     1014{\tt rdfitsarr} \myppageref{rdfitsarr} offer additional possibilities for reading
     1015arrays from FITS IMAGE\_HDU, for example array type conversion. 
    9791016Objects can be exported to FITS using the {\tt writefits/savefits}
    9801017\myppageref{writefits} command.
     
    10681105\end{verbatim}
    10691106\end{itemize}
     1107
     1108\subsection{RGB pixel files}
     1109Graphics displayed in piapp windows and widgets (in PIImage, PIScDrawWdg, PIDraw3DWdg)
     1110can be exported in a PI-specific image format coding the RGB (Red/Green/Blue) intensities
     1111of each pixel. The commands {\tt wdg2rgb} \myppageref{ wdg2rgb } and
     1112 {\tt wdg2rgb} \myppageref{ win2rgb } can be used to export graphics to PI-RGB
     1113files. The content of PI-RGB  files can be read back and displayed using the
     1114command {\tt pirgbdisp} \myppageref{pirgbdisp}.
     1115It is also possible to compute  RGB images and save in this format, for example
     1116for creating a false color composite image, from a set of intensity coded images
     1117in three wavebands. Check the class {\bf PIPixRGBArray} in the file (PI/pipixutils.h) for
     1118more information on PI-RGB format.
     1119
     1120The {\bf PIPhoto} add-on package  can be used to convert PI-RGB images to/from
     1121standard image formats (gif, jpeg \ldots). The {\bf PIPhoto} module uses the
     1122ImageMagick libraries. It contains also a piapp loadable module which extends
     1123the piapp possibilities through a set of commands for reading, writing and
     1124manipulating standard image formats in piapp.
     1125
     1126
     1127
    10701128
    10711129%%%%%%%%%%%%%%% Section 5 :   analyse a la paw
Note: See TracChangeset for help on using the changeset viewer.