Unverified Commit 1e4618d0 authored by Stuart Sides's avatar Stuart Sides Committed by GitHub
Browse files

lrowaccal added ability to get sun distance from the camera Ref #4303 (#4313)

parent 28d62c48
Loading
Loading
Loading
Loading
+46 −43
Original line number Diff line number Diff line
@@ -229,6 +229,9 @@
      via an argument. The correction may also be turned off via
      an argument.
    </change>
    <change name="Stuart Sides" date="2021-02-22">
      Added ability to get the sun distance from the camera.
    </change>
  </history>

  <groups>
+42 −32
Original line number Diff line number Diff line
@@ -205,9 +205,18 @@ void IsisMain () {
    if (g_iof) {
      responsivity = radPvl["IOF"];

      for (int i = 0; i < bands.size(); i++)
      for (int i = 0; i < bands.size(); i++) {
        g_iofResponsivity.push_back(toDouble(responsivity[toInt(bands[i]) - 1]));
      }

      try {
        Camera *cam;
        cam = icube->camera();
        iTime startTime((QString) inst["StartTime"]);
        cam->setTime(startTime);
        g_solarDistance = cam->sunToBodyDist() / KM_PER_AU;
      }
      catch(IException &e) {
        try {
          iTime startTime((QString) inst["StartTime"]);
          double etStart = startTime.Et();
@@ -244,6 +253,7 @@ void IsisMain () {
          throw IException(e, IException::User, msg, _FILEINFO_);
        }
      }
    }
    else {
      responsivity = radPvl["Radiance"];
      for (int i = 0; i < bands.size(); i++)
+2 −0
Original line number Diff line number Diff line
@@ -8,3 +8,5 @@ commands:
	  to=$(OUTPUT)/${FILE}.vis.odd.cal.cub > /dev/null;
	$(APPNAME) from=$(INPUT)/${FILE}.vis.even.cub \
          to=$(OUTPUT)/${FILE}.vis.even.cal.cub > /dev/null;
	$(APPNAME) from=$(INPUT)/${FILE}.vis.even.spice.cub \
          to=$(OUTPUT)/${FILE}.vis.even.spice.cal.cub > /dev/null;