Changeset 3871 in Sophya for trunk/SophyaLib/Manual/piapp.tex
- Timestamp:
- Aug 12, 2010, 7:34:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Manual/piapp.tex
r3858 r3871 190 190 The flag {\tt -term} activate a command reader on the terminal 191 191 It is also possible to have a command reader on the terminal ({\tt stdin}). \\[1mm] 192 The environment variable {\tt PIDEFAFSZFRAC} controls the automatic selection 193 of font size for drawing axes, as a function of the window size (typical value 0.03 \ldots 0.1). 194 Check the command {\tt setdefafsz } \myppageref{setdefafsz} and {\tt setaxesatt} 195 \myppageref{setaxesatt} for more information. \\[1mm] 192 196 193 197 \par … … 571 575 a color map view widget. A specific image control window can be activated using 572 576 {\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. 577 a complete list of mouse and keyboard actions. A base drawer (number 0) handles 578 axes drawing and added graphic elements. The colormap with the LUT information 579 can also be displayed through a second drawer (PICMapDrawer). The colormap 580 display in the main image window is controlled by the {\tt showcmap} graphic option. 575 581 %%% 576 582 \subsubsection{Windows} … … 635 641 interpreter. The options are decoded by the different objects handling the 636 642 graphic (viewer widget, drawer, axe drawer). \\ 637 The complex decoding scheme 638 is usually transparent for piapp users.However, there is an ambiguity when643 The complex decoding scheme is usually transparent for piapp users. 644 However, there is an ambiguity when 639 645 specifying some of the axes attributes, such as color or the font used for 640 646 drawing 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. 647 should thus be used to specify generic graphic attributes (color, font, line type) for axes. 648 649 \subsection{Complex 2D array display} 650 A specific graphic attribute can be specified when displaying 2D arrays 651 with complex numbers as their content. By default, the complex arrays are rendered 652 using the modulus of the complex 653 numbers ($\sqrt{\mathrm{real}(z)^2+\mathrm{imag}(z)^2}$), in particular for 654 image and surface display {\tt (disp, imag, surf)}. It is however possible to change 655 this behaviour by specifying the following graphic attributes: 656 \begin{verbatim} 657 cdreal : graphic rendering using the real(z) 658 cdimag : graphic rendering using the imaginary part, imag(z) 659 cdphase : graphic rendering using the phase, atan2(real,imag) 660 cdmod : graphic rendering using the module. this is the defaut. 661 cdmod2 : graphic rendering using the module squared (re^2+im^2) 662 663 ## Consider a complex matrix cmx 664 piapp> disp cmx 665 # will represent the module(cmx) in grey/color scale 666 piapp> disp cmx 'cdphase' 667 # will represent the phase(cmx) in grey/color scale 668 \end{verbatim} 669 670 643 671 \subsubsection{PIScDrawWdg} 644 672 The {\bf PIScDrawWdg} which handles 2d graphics recognizes the following options: … … 651 679 linx logx : Linear or logarithmic scale for X Axis 652 680 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) 655 683 axelr : AxeDirLtoR axedu : AxeDirDownUp 656 684 >> To change the background color (default=white) … … 681 709 zoom/Fact (zoom/2 zoom/3 ... ) 682 710 >> 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 684 713 >> AutoLut selector : define the method for automatic determination 685 714 of LUT limits (min/max) … … 690 719 - autolut=histail[,ns] --> the tail of pixel values histogram 691 720 - 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 692 724 >> Define color table and reversing color indexing flag 693 725 ColTableName revcmap … … 704 736 midas_stairs9 midas_staircase midas_color 705 737 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 708 742 >> Viewed center position (image/array coordinates) 709 743 imagecenter=xc,yc … … 744 778 midas_bluewhite midas_redwhite 745 779 multicol16 multicol64 780 rgb216cm rgb512cm rgb4096cm rgb32768cm 746 781 > revcmap : This flag reverses ColorMap indexing 747 782 ------- Old style graphic att ---------- … … 774 809 extticks/intticks/extintticks nbticks=X_NbTicks,Y_NbTicks 775 810 tickslen=MajorTickLenFrac,MinorTickLenFraC 776 811 >> Axe label font size: 777 812 autofontsize=FontSizeFrac fixedfontsize 778 813 >> Up/Down title: title tit notitle notit … … 976 1011 977 1012 FITS format files can be read through the menu command \menubar{File/Open-Fits}, 978 or using {\tt readfits/openfits} \myppageref{readfits} command. 1013 or using {\tt readfits/openfits} \myppageref{readfits} command. The command 1014 {\tt rdfitsarr} \myppageref{rdfitsarr} offer additional possibilities for reading 1015 arrays from FITS IMAGE\_HDU, for example array type conversion. 979 1016 Objects can be exported to FITS using the {\tt writefits/savefits} 980 1017 \myppageref{writefits} command. … … 1068 1105 \end{verbatim} 1069 1106 \end{itemize} 1107 1108 \subsection{RGB pixel files} 1109 Graphics displayed in piapp windows and widgets (in PIImage, PIScDrawWdg, PIDraw3DWdg) 1110 can be exported in a PI-specific image format coding the RGB (Red/Green/Blue) intensities 1111 of each pixel. The commands {\tt wdg2rgb} \myppageref{ wdg2rgb } and 1112 {\tt wdg2rgb} \myppageref{ win2rgb } can be used to export graphics to PI-RGB 1113 files. The content of PI-RGB files can be read back and displayed using the 1114 command {\tt pirgbdisp} \myppageref{pirgbdisp}. 1115 It is also possible to compute RGB images and save in this format, for example 1116 for creating a false color composite image, from a set of intensity coded images 1117 in three wavebands. Check the class {\bf PIPixRGBArray} in the file (PI/pipixutils.h) for 1118 more information on PI-RGB format. 1119 1120 The {\bf PIPhoto} add-on package can be used to convert PI-RGB images to/from 1121 standard image formats (gif, jpeg \ldots). The {\bf PIPhoto} module uses the 1122 ImageMagick libraries. It contains also a piapp loadable module which extends 1123 the piapp possibilities through a set of commands for reading, writing and 1124 manipulating standard image formats in piapp. 1125 1126 1127 1070 1128 1071 1129 %%%%%%%%%%%%%%% Section 5 : analyse a la paw
Note:
See TracChangeset
for help on using the changeset viewer.