Commit bf7dbb17 authored by Jeannie Backer's avatar Jeannie Backer
Browse files

Added ability for user to choose ground range.

parent 99e8121b
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ void IsisMain() {



    // run the compare function here.  This will conpare the
    // run the compare function here.  This will compare the
    // labels of the first cube to the labels of each following cube.
    Pvl *matchLabel = cubeList[0]->label();
    for (int i = 0; i < (int)cubeList.size(); i++) {
@@ -210,6 +210,15 @@ void IsisMain() {
    QString mosaicPriority = ui.GetString("PRIORITY");

    QString parameters = "FROMLIST=" + list + " MOSAIC=" + toMosaic + " PRIORITY=" + mosaicPriority;

    if (QString::compare(ui.GetString("GRANGE"), "USER", Qt::CaseInsensitive) == 0) {
      parameters += " GRANGE=USER";
      parameters += " MINLAT=" + ui.GetAsString("MINLAT");
      parameters += " MAXLAT=" + ui.GetAsString("MAXLAT");
      parameters += " MINLON=" + ui.GetAsString("MINLON");
      parameters += " MAXLON=" + ui.GetAsString("MAXLON");
    }

    ProgramLauncher::RunIsisProgram("automos", parameters);

    // write out new information to new group mosaic
+91 −0
Original line number Diff line number Diff line
@@ -42,6 +42,9 @@
    <change name="Kristin Berry" date="2018-06-16">
      Update to read the ObservationId from the Archive Group. 
    </change>
    <change name="Jeannie Backer" date="2018-08-10">
      Added option to allow user to choose ground range. 
    </change>
  </history>

  <groups>
@@ -104,5 +107,93 @@
        </list>
      </parameter>
    </group>
    <group name="Ground Range">
      <parameter name="GRANGE">
      <type>string</type>
      <default><item>AUTO</item></default>
      <brief>Ground Range Options</brief>
      <description>
        AUTO is the default for this parameter. By default the ground range is
        calculated automatically based on the list of input cubes.  The user can
        override this default. If the USER option is selected, values must be
        entered for the MINLAT, MAXLAT, MINLON, and MAXLON parameters.
      </description>
      <list>
        <option value="AUTO">
          <brief>Automatically Calculate Range</brief>
          <description>
            The program will automatically calculate the ground range for the
            mosaic by examining that latitude and longitude range of all the
            cubes contained in the list passed to FROMLIST.  This is the
            default option.
          </description>
          <exclusions>
            <item>MINLAT</item>
            <item>MAXLAT</item>
            <item>MINLON</item>
            <item>MAXLON</item>
          </exclusions>
        </option>
        <option value="USER">
          <brief>User Entered Range</brief>
          <description>
            The program will apply the ground range values you entered for
            the mosaic.
          </description>
          <inclusions>
            <item>MINLAT</item>
            <item>MAXLAT</item>
            <item>MINLON</item>
            <item>MAXLON</item>
          </inclusions>
        </option>
      </list>
      </parameter>
      <parameter name="MINLAT">
        <type>double</type>
        <brief>Minimum Latitude</brief>
        <description>
          The minimum latitude value boundary extent for the output mosaic.
        </description>
        <helpers>
          <helper name="H1">
            <function>helperButtonCalcRange</function>
            <brief>Calculate Ranges using FROMLIST</brief>
            <description>
              This button will calculate the latitude and longitude range using the files in the
              FROMLIST.
            </description>
            <icon>$ISIS3DATA/base/icons/exec.png</icon>
          </helper>
        </helpers>
      </parameter>
      <parameter name="MAXLAT">
        <type>double</type>
        <brief>Maximum Latitude</brief>
        <description>
          The maximum latitude value boundary extent for the output mosaic.
        </description>
        <greaterThan>
            <item>MINLAT</item>
        </greaterThan>
      </parameter>
      <parameter name="MINLON">
        <type>double</type>
        <brief>Minimum Longitude</brief>
        <description>
          The minimum longitude value boundary extent for the output mosaic.
        </description>
      </parameter>
      <parameter name="MAXLON">
        <type>double</type>
        <brief>Maximum Longitude</brief>
        <description>
          The maximum longitude value bounary extent for the output mosaic.
        </description>
        <greaterThan>
            <item>MINLON</item>
        </greaterThan>
      </parameter>
    </group>
  </groups>
</application>