./
pp_cube_extract.pro
Routines
top source pp_cube_extract
pp_cube_extract, cubefile, outfile [, corners=corners] [, list=list] [, nan=nan], oldfmt=oldfmt [, nosep=nosep], nosel=nosel
Refit of cube_extract.pro, to read the cubes using pp_readcube objects instead of ISIS.
Works similar to exttract3.f:
Reads the given cube and makes outfile with geometrical information and a 2 column text file for each spectrum in the selection.
If no selection specified, the whole cube is used.
Selections are made with corners or list, described below.
Pixels out of the disk (as determined by 'LATITUDE') are not included in the output, unless nosel is set.
All pixel numbers given are vims numbers: [1,1] is the top left pixel.
Parameters
- cubefile in required
Passed to pp_readcube. The name of the file that contains the cube.
- outfile in required
The name of the file where the geometrical information will be written to.
Keywords
- corners in optional
A 4 element vector [xi,yi,xf,yf] specifying the region to select.
- list in optional
A 2xn array with x,y pixel numbers to select.
- nan in optional
Specifies what to use for pixels with special value. Defaults to !values.f_nan if oldfmt is not set, 'NUL' otherwise.
- oldfmt in
If set, forces outfile to be formatted as
Filename x y LATITUDE LONGITUDE PHASE_ANGLENCIDENCE_ANGLEEMISSION_ANGLE DELTA_PHI
And forces nan='NUL', for backwards compatibility with extract3.f.
- nosep in optional default=0
If set, does not make the individual ASCII files for each spectrum.
- nosel in default=0
If set, returns all pixels in the selected region, not just those that fall on the surface. If set, but the cube does not contain a 'LATITUDE' backplane, this is reset to 0.
Author information
- Author:
Paulo Penteado (pp.penteado@gmail.com), May/2010 (refit to cube_extract from May/2008)
Other attributes
Statistics
Lines: | 121 lines |
Cyclomatic complexity: | 31 |
Modified cyclomatic complexity: | 31 |
File attributes
Modification date: | Fri Nov 13 12:55:33 2015 |
Lines: | 121 |
Docformat: | rst rst |