Skip to content
Snippets Groups Projects
Select Git revision
  • fc8ede35e720569b55f1ad769964dcb2deed43e7
  • main default protected
  • Kelvinrr-patch-3
  • radius_update
  • revert-616-apollo_pan
  • vims
  • 0.10
  • Kelvinrr-patch-2
  • revert-563-minirf_fix
  • Kelvinrr-patch-1
  • 0.9
  • acpaquette-patch-3
  • acpaquette-patch-2
  • acpaquette-patch-1
  • spiceql
  • ci-coverage
  • 0.10.0
  • 0.9.1
  • 0.9.0
  • 0.8.7
  • 0.8.8
  • 0.8.6
  • 0.8.3
  • 0.8.4
  • 0.8.5
  • 0.8.2
  • 0.8.1
  • 0.8.0
  • 0.7.3
  • 0.7.2
  • 0.7.1
  • 0.7.0
  • 0.6.5
  • 0.6.4
  • 0.6.3
  • 0.6.2
36 results

Isd.cpp

Blame
  • Isd.cpp 1.72 KiB
    
    #include "ale/Isd.h"
    #include "ale/Util.h"
    
    using json = nlohmann::json;
    
    ale::Isd::Isd(std::string isd_file) {
      json isd = json::parse(isd_file);
    
      usgscsm_name_model = getSensorModelName(isd);
      image_id = getImageId(isd);
      name_platform = getPlatformName(isd);
      name_sensor = getSensorName(isd);
    
      image_lines = getTotalLines(isd);
      image_samples = getTotalSamples(isd);
    
      starting_ephemeris_time = getStartingTime(isd);
      center_ephemeris_time = getCenterTime(isd);
    
      try {
        line_scan_rate = getLineScanRate(isd);
      } catch (...) {
        // Framers do not deal with line scan rates
        // This is assuming that we may be dealing with a framer rather than
        // a malformed ISD
        line_scan_rate = std::vector<std::vector<double>>();
      }
    
      detector_sample_summing = getSampleSumming(isd);
      detector_line_summing = getLineSumming(isd);
    
      focal_length = getFocalLength(isd);
      focal_uncertainty = getFocalLengthUncertainty(isd);
    
      focal2pixel_line = getFocal2PixelLines(isd);
      focal2pixel_sample = getFocal2PixelSamples(isd);
    
      detector_center_line = getDetectorCenterLine(isd);
      detector_center_sample = getDetectorCenterSample(isd);
    
      starting_detector_line = getDetectorStartingLine(isd);
      starting_detector_sample = getDetectorStartingSample(isd);
    
      min_reference_height = getMinHeight(isd);
      max_reference_height = getMaxHeight(isd);
    
      semi_major = getSemiMajorRadius(isd);
      semi_minor = getSemiMinorRadius(isd);
    
      distortion_model = getDistortionModel(isd);
      distortion_coefficients = getDistortionCoeffs(isd);
    
      interpMethod = getInterpolationMethod(isd);
    
      inst_pos = getInstrumentPosition(isd);
      sun_pos = getSunPosition(isd);
    
      inst_pointing = getInstrumentPointing(isd);
      body_rotation = getBodyRotation(isd);
     }