Commit dbcd31c4 authored by Makayla Shepherd's avatar Makayla Shepherd
Browse files

PROG added camdev tests. References #2347.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@6682 41f8697f-d340-4b68-9986-7bafba869bb8
parent d8657eef
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -451,18 +451,18 @@ void camdev(Buffer &out) {
          }
        }
        double pe360Lon, pw360Lon;
        if (positiveEast360Longitude) {
          if(noCamera) {
              pe360Lon = proj->UniversalLongitude();
          }
          else {
            pe360Lon = cam->UniversalLongitude();
          }
        if (!noCamera) {
          pw360Lon = TProjection::ToPositiveWest(pe360Lon, 360);
          if (positiveEast360Longitude) {
          out[index] = pe360Lon;
          index += 64 * 64;
        }
        if (!noCamera) {
          pw360Lon = TProjection::ToPositiveWest(pe360Lon, 360);
          if (positiveEast180Longitude) {
            out[index] = TProjection::To180Domain(pe360Lon);
            index += 64 * 64;
+4 −0
Original line number Diff line number Diff line
BLANKS = "%-6s"    
LENGTH = "%-40s"

include $(ISISROOT)/make/isismake.tststree
+52 −0
Original line number Diff line number Diff line
APPNAME = camdev

# 1.52587890625e-05
camdevTruth.cub.TOLERANCE = .0000153

include $(ISISROOT)/make/isismake.tsts

commands:
	 $(APPNAME) from=$(INPUT)/camdevInput.cub \
	  to=$(OUTPUT)/all_camdev_bands.cub \
	  dn=yes \
	  radec=yes \
	  planetographiclatitude=yes \
	  positiveeast360longitude=yes \
	  positiveeast180longitude=yes \
	  positivewest360longitude=yes \
	  positivewest180longitude=yes \
	  bodyfixed=yes \
	  localradius=yes \
	  pixelresolution=yes \
	  lineresolution=yes \
	  sampleresolution=yes \
	  detectorresolution=yes \
	  spacecraftposition=yes \
	  spacecraftazimuth=yes \
	  slantdistance=yes \
	  targetcenterdistance=yes \
	  subspacecraftlatitude=yes \
	  subspacecraftlongitude=yes \
	  spacecraftaltitude=yes \
	  offnadirangle=yes \
	  subspacecraftgroundazimuth=yes \
	  sunposition=yes \
	  sunazimuth=yes \
	  solardistance=yes \
	  subsolarlatitude=yes \
	  subsolarlongitude=yes \
	  subsolargroundazimuth=yes \
	  phase=yes \
	  emission=yes \
	  incidence=yes \
	  localemission=yes \
	  localincidence=yes \
	  northazimuth=yes \
	  distortedfocalplane=yes \
	  undistortedfocalplane=yes \
	  ephemeristime=yes \
	  utc=yes \
	  localsolartime=yes \
	  solarlongitude=yes \
	  morphology=yes \
	  albedo=yes> /dev/null; 
 No newline at end of file
+20 −0
Original line number Diff line number Diff line
APPNAME = camdev

# 1.52587890625e-05
camdevTruth.cub.TOLERANCE = .0000153

include $(ISISROOT)/make/isismake.tsts

commands:
	 $(APPNAME) from=$(INPUT)/camdevProjectedInput.cub \
	  to=$(OUTPUT)/camdev_projected_bands.cub \
	  source=projection \
	  dn=yes \
	  radec=yes \
	  positiveeast360longitude=yes \
	  pixelresolution=yes \
	  spacecraftposition=yes \
	  distortedfocalplane=yes \
	  undistortedfocalplane=yes \
	  ephemeristime=yes \
	  utc=yes> /dev/null;
 No newline at end of file