USGS

Isis 2 Documentation


merlevinit Documentation

merlevinit - Initialize the processing information on the labels
This program initializes the geometric processing information for
a Mars Exploration Rover (MER) cube or table file.

The program updates the following in the labels:

     1. ISIS_TARGET group
     2. ISIS_GEOMETRY group
     3. ISIS_INSTRUMENT group

It starts by obtaining the TARGET_NAME from the ISIS_TARGET group.
It uses the value to locate the newest "definition" file for the
target.  For example, if the TARGET_NAME is mars, this program
will find the file $ISISDATA/targets/mars.def.2 and records it on
the labels.  This "def" file contains various target
characteristics (e.g., radii, positive longitude direction, etc).
Any geometric processing programs such as "merlev1stats",
"merlev1tolev2", etc will use this information in their calculations.
The default target definition file can be overridden by the user
assigning the TARGDEF parameter to the desired file (include path).
Documentation is included in the def files and it is recommended that
the user update the documentation when modifying the def file.

Next the program determines which NAIF Spice kernels are required
for geometric processing of the data.  It does this by examining
a time stamp contained in the labels and then automatically
searches for a file containing a list of kernels.  For example,
the Microscopic Imager (MI) instrument searches for the file
$ISISMERDATA/mi_kernels.def.1 and records it on the labels.
Then the program determines the minimum set of kernels required
to geometrically process the data and writes those to the labels
under the ISIS_GEOMETRY group.  Again, any geometric processing
programs such as "lev1stats", etc will use these kernels in
their calculations.  The default kernel list can be overridden
by the user using the KERNLST parameter.

Finally, the program searches for a file containing instrument
parameters such as focal length, boresight, etc.  For example,
MI searches for the file $ISISMERDATA/mi_parameters.def.1
and records it on the labels.  Again, any geometric processing
programs will use the parameters in the "def" file in their
calculations.  The default parameter list can be overridden
using the INSTPARS parameter.


PROGRAMMER:  Debbie A. Cook, USGS, Flagstaff, AZ

ParmDescriptionDefault
FROM
Input "level 0" or "level 1"
cube name or table file
NONE
TARGDEF
Target definition filename
--
SURFTYPE
Target surface model type
INFOCUS
KERNLST
Kernel list filename
--
INSTPARS
Instrument parameters filename
--
AZSYS
Azimuth system
(default 0 to 360)
360

ADDITIONAL NOTES:

ParmDescription
FROM
Input file name of either a "level 0" or "level 1" cube
or a "level 0" table file (e.g., mola profile).  If the
file extension is omitted, then ".cub" or ".tbl" will
be assumed.
TARGDEF
This parameter is used to specify different target
parameters (radius, omega 0, etc).  The default is to
read the target from the cube labels and construct a
filename of the form "target.def.version".  For example,
if Mars is the target in the labels then the default
value will be "$ISISDATA/targets/mars.def.1".  Actually,
the version will be the highest version number found
under the $ISISDATA directory.  If the user needs to
define their own target parameters simply copy a
file from $ISISDATA/targets and modify as needed.
SURFTYPE
PLANE - TARGDEF must be specified to define the target
        plane
INFOCUS - A target plane will be computed based on
        the location of the in-focus plane.  This
        option is only valid for MI.  The TARGDEF
        parameter will be ignored.
PANCAM - A target plane will be computed based on
        the rover orientation and centered under the
        pancam camera at ground level.  This option
        is only valid for PANCAM.  The TARGDEF
        parameter will be ignored.
DEM -   Not implemented yet.

KERNLST
This parameter is used to specify a file containing
a list of SPICE kernels. The program will select a
sub-set of these kernels which covers the
time-range for the input cube.  The names of the
selected kernels will be written to the labels of
the cube.
INSTPARS
This parameter is used to specify a file containing
instrument parameters (boresight, focal length, etc).
The default is instrument specific. For example,
MI may attempt to open "$ISISMERDATA/mi.def.1".
This file is versioned identically to the method
defined under TARGDEF.  If the user needs to define
their own instrument parameters simply copy the
appropriate instrument file from the mission data
area (e.g., $ISISMERDATA) and modify as needed.
AZSYS
This parameter is used to define the azimuth
system computed by "lev1" programs.  Valid values are
either 180 or 360.  The default is 360 which implies
azimuths will be output in the range of 0 to 360.
The value 180 implies azimuths will be output in
the range of -180 to 180.  Your selection is written
to the labels of the cube or table file.  This
effects programs which output or use the azimuth,
for example, "qview", "merlev1stats",
"merlev1tolev2".

Last updated: Apr 27 2005
File: pdfs2.html

Contact us online at the Isis Support Center: http://isisdist.wr.usgs.gov

ISIS Documentation Home Page