section of routines in spydr.i

functions in spydr.i -

 
 
 
get_cursor


             get_cursor(wid)  
 
   returns [xpos,ypos]  
   where xpos,ypos is the cursor x and y coordinates  
   Returns [] if not in correct window;  
SEE ALSO:
 
 
 
rad4zoom_decr


 rad4zoom_decr  
 
SEE rad4zoom_incr  
 
 
 
spydr


             spydr,image  
 
   Software Package in Yorick for Data Reduction  
     
   From the command line:  
   $ spydr [options] image*.fits cube.fits  
   $ yorick -i path_to_spydr/spydr.i image1 image2 ...  
   where image can contain wild cards.  
   For options, see man page.  
   or, within yorick:  
   spydr,"image1.fits",im2  
   where "image1.fits" is a filename (can contain widl cards)  
   arguments can mix strings (filenames, possibly with widlcards),  
   and images or data cube.  
   EXAMPLES:  
   $ spydr --dpi 80 20070730_2*.fits  
   $ spydr -c 20070730_2[2-3]?.fits 20070730_241.fits  
   > spydr,"~/ascam/2007jun26/20070625T2000*.fits"  
   > spydr,["20070730_1[1-3].fits","20070730_23.fits"]  
   > spydr,"20070730_1[1-3].fits","20070730_23.fits"  
   > spydr,image,append=1  
   > spydr,im1,"cube45.fits"  
   KEYWORDS:  
   wavelength=: set wavelength for the image/cube arguments  
   pixsize=: set pixel size (plate scale) for the image/cube arguments  
   name=: set name 9for display) for the image/cube arguments  
   append=append image/cube argument to existing image stack  
   RESTRICTIONS:  
   - only fits images handled to date  
   - the ITT display is not very well handled  
     
   USE:  
   Once loaded, number of possibilities are offered by the GUI.  
   There is a number of shortcuts. Type "?" or og to the help  
   menu to list them all. Shortcuts are events are received only  
   when the cursor is in the main graphic window.  
   INSTALLATION:  
   - Linux packages normally install an executable and man page. With other  
     installers, or other OSes, you can define an alias or write a wrapper  
     to conveniently call spydr from the command line without having to write  
     the "yorick -i ..."  
     Example of a spydr wrapper:  
     #!/bin/sh  
     rlwrap yorick -i spydr/spydr.i $* || yorick -i spydr/spydr.i $*  
SEE ALSO:
 
 
 
spydr_get_available_windows


             spydr_get_available_windows(void)  
 
   Intended to probe for available windows # not to  
   interfere with regular session.  
   I have no way to do that right now, so imposing  
   high numbers, hopefully not used.  
SEE ALSO:
 
 
 
spydr_histeq_scale


             histeq_scale(z, top=top_value, cmin=cmin, cmax=cmax)  
 
     returns a byte-scaled version of the array Z having the property  
     that each byte occurs with equal frequency (Z is histogram  
     equalized).  The result bytes range from 0 to TOP_VALUE, which  
     defaults to one less than the size of the current palette (or  
     255 if no pli, plf, or palette command has yet been issued).  
     If non-nil CMIN and/or CMAX is supplied, values of Z beyond these  
     cutoffs are not included in the frequency counts.  
     Identical to histeq_scale except it uses sedgesort instead of sort.  
     faster for arrays for which many elements are repeated (e.g.  
     CCD arrays where pixels values are integers.  
SEE ALSO: bytscl,   plf,   pli  
 
 
 
spydr_struct{


 spydr_struct{  
 
struct spydr_struct{  
  pointer pim;  
  long    nim;  
  long    dims(3);  
  double  opixsize; // original image pixel size (arcsec/pixel)  
  double  pixsize;  // current image pixel size (can be rebinned)  
  double  wavelength;  
  string  name;  
  string  saveasname;  
  float   cmin;     // zcut min  
  float   cmax;     // zcut max  
  string  space;    // name of image space  
};