[Go to Previous] [Go to Next]


Configuring Image Defaults
The defaults for the advanced settings of the Image Chooser is set for particular images through a configuration file. You can override the system defaults by creating your own configuration file and placing it in the user directory or sitepath See the section on Site Configuration for more information on the location of these directories. The configuration file (imagedefaults.xml) has the following format:
<?xml version="1.0" encoding="ISO-8859-1"?>
<imagedefaults>
  <default
     pattern=""
     key=""
     place=""
     loc=""
     unit=""
     user=""
     band=""
     proj=""/>
</imagedefaults>
The attributes that can be overridden are:
pattern dataset identifier (format: host:group/desc)
key type of location (LINELE or LATLON)
place placement (ULEFT or CENTER)
loc location of placement (line ele or lat lon)
size resulting image size (lines eles)
mag magnification factor (lmag emag)
unit default calibration unit
band band number
proj project number
user user id (case sensitive)
debug (true to print lots of debug information)
Except for pattern, key and debug, McIDAS-V uses the same keywords/syntax as McIDAS (longitudes are entered as degrees east, however). The entries are hierarchical, so if you specify some defaults for the server, they apply to all datasets on that server unless overridden for specific datasets.

Here are a few examples:

<imagedefaults>

    <default pattern="*" debug="true"/>

    <default
        pattern="adde.ssec.wisc.edu:RTIMAGES/GE-IR"
        key="LATLON"
        place="CENTER"
        loc="40 -90"
        unit="BRIT"
        user="foo"
        proj="9999"/>

    <default
        pattern="EUM_AD/M8"
        loc="46 10"
        band="9"
        unit="TEMP"
        size="512 512"/>

    <default
        pattern="CIMSS/CTP"
        key="LATLON"
        loc="35 -100"
        mag="1 1"
        unit="CTOP"/>

    <default
        pattern="GINICOMP/GSN8KVIS"
        key="LINELE"
        place="CENTER"
        loc="504 768"
        size="504 768"
        mag="-2 -2"/>

    <default
        pattern="CCS039/G81KVIS"
        key="LINELE"
        place="ULEFT"
        loc="0 0"
        size="ALL"/>

</imagedefaults>


[Go to Previous] [Go to Next]