Skip to content
Snippets Groups Projects
Select Git revision
  • 932c8ea669f680c4f1ecbbb79bd5a5b88575fe62
  • main default protected
  • oleg-alexandrov-patch-1
  • radtan
  • 2.0
  • Kelvinrr-patch-1
  • acpaquette-patch-1
  • gxp_testing
  • 2.0.2
  • 2.0.1
  • 2.0.0
  • 1.7.0
  • 1.6.0
  • 1.5.2
  • 1.5.1
  • 1.5.0
  • 1.4.1
  • 1.4.0
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1.1
  • 1.1.0
  • 1.0.0
24 results

UsgsAstroLsSensorModel.cpp

Blame
  • UsgsAstroLsSensorModel.cpp 110.55 KiB
    //----------------------------------------------------------------------------
    //
    //                                UNCLASSIFIED
    //
    // Copyright © 1989-2017 BAE Systems Information and Electronic Systems Integration Inc.
    //                            ALL RIGHTS RESERVED
    // Use of this software product is governed by the terms of a license
    // agreement. The license agreement is found in the installation directory.
    //
    //             For support, please visit http://www.baesystems.com/gxp
    //
    //  Revision History:
    //  Date        Name         Description
    //  ----------- ------------ -----------------------------------------------
    //  13-Nov-2015 BAE Systems  Initial Implementation
    //  24-Apr-2017 BAE Systems  Update for CSM 3.0.2
    //  24-OCT-2017 BAE Systems  Update for CSM 3.0.3
    //-----------------------------------------------------------------------------
    #include "UsgsAstroLsSensorModel.h"
    #include "Utilities.h"
    #include "Distortion.h"
    
    #include <algorithm>
    #include <iostream>
    #include <sstream>
    #include <math.h>
    #include <float.h>
    
    #include <sstream>
    #include <Error.h>
    #include <json/json.hpp>
    
    #define MESSAGE_LOG(...) if (m_logger) { m_logger->info(__VA_ARGS__); }
    
    using json = nlohmann::json;
    using namespace std;
    
    const std::string UsgsAstroLsSensorModel::_SENSOR_MODEL_NAME
             = "USGS_ASTRO_LINE_SCANNER_SENSOR_MODEL";
    const int     UsgsAstroLsSensorModel::NUM_PARAMETERS = 16;
    const std::string  UsgsAstroLsSensorModel::PARAMETER_NAME[] =
    {
       "IT Pos. Bias   ",   // 0
       "CT Pos. Bias   ",   // 1
       "Rad Pos. Bias  ",   // 2
       "IT Vel. Bias   ",   // 3
       "CT Vel. Bias   ",   // 4
       "Rad Vel. Bias  ",   // 5
       "Omega Bias     ",   // 6
       "Phi Bias       ",   // 7
       "Kappa Bias     ",   // 8
       "Omega Rate     ",   // 9
       "Phi Rate       ",   // 10
       "Kappa Rate     ",   // 11
       "Omega Accl     ",   // 12
       "Phi Accl       ",   // 13
       "Kappa Accl     ",   // 14
       "Focal Bias     "    // 15
    };
    
    
    const std::string  UsgsAstroLsSensorModel::_STATE_KEYWORD[] =
    {
       "m_modelName",
       "m_imageIdentifier",
       "m_sensorName",
       "m_nLines",
       "m_nSamples",
       "m_platformFlag",
       "m_intTimeLines",