OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRadarSatModel.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
12 #ifndef ossimRadarSatModel_H
13 #define ossimRadarSatModel_H
14 
15 #include <otb/JSDDateTime.h>
16 
19 #include <ossim/base/ossimIpt.h>
21 #include <ossim/base/ossimGpt.h>
22 #include <ossim/base/ossimDpt.h>
23 #include <RadarSat/Data/Data.h>
24 #include <RadarSat/Leader/Leader.h>
27 
28 #include <iostream>
29 
30 namespace ossimplugins
31 {
32 
33 
34 class PlatformPosition;
35 class SensorParams;
36 class RefPoint;
41 {
42 public:
45 
48 
50  virtual ~ossimRadarSatModel();
51 
57  virtual ossimString getClassName() const;
62  virtual ossimObject* dup() const;
67  virtual double getSlantRangeFromGeoreferenced(double col) const;
68 
76  bool open(const ossimFilename& file);
77 
84  virtual bool saveState(ossimKeywordlist& kwl,
85  const char* prefix=0) const;
86 
92  virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0);
93 
94 protected:
95 
99  int _n_srgr;
103  double _srgr_coefset[20][6];
107  double _srgr_update[20];
112 
117 
122 
127 
132 
133 private:
134  virtual bool InitPlatformPosition(const ossimKeywordlist &kwl, const char *prefix);
135  virtual bool InitSensorParams(const ossimKeywordlist &kwl, const char *prefix);
136  virtual bool InitRefPoint(const ossimKeywordlist &kwl, const char *prefix);
140  virtual bool InitSRGR(const ossimKeywordlist &kwl, const char *prefix);
141 
148  virtual bool internalSaveState(ossimKeywordlist& kwl,
149  const char* prefix=0) const;
150 
156  virtual bool internalLoadState (const ossimKeywordlist &kwl, const char *prefix=0);
157 
158 
162  int FindSRGRSetNumber(JSDDateTime date) const;
163  TYPE_DATA
164 
165 };
166 }
167 
168 #endif
double _pixel_spacing
Pixel spacing.
virtual ossimObject * dup() const
Returns pointer to a new instance, copy of this.
Represents serializable keyword/value map.
virtual bool InitSRGR(const ossimKeywordlist &kwl, const char *prefix)
Initializes the Slant Range for each Ground Range data sets : _n_srgr,_srgr_coefset,_srgr_update,_pixel_spacing,_isProductGeoreferenced.
This class is able to read the volume directory file of the RadarSat file structure.
Definition: VolumeDir.h:34
virtual double getSlantRangeFromGeoreferenced(double col) const
This function associates an image column number to a slant range when the image is georeferenced (gro...
This class is able to direct localisation and indirect localisation using the RadarSat sensor model...
virtual bool internalSaveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.
Trailer * _trailer
List of metadata contained in the Trailer file.
This class is able to read the trailer file of the RadarSat file structure.
Definition: Trailer.h:40
This class allows for direct localisation and indirect localisation using the geometric model of SAR ...
virtual ~ossimRadarSatModel()
Destructor.
virtual ossimString getClassName() const
Method to return the class name.
int FindSRGRSetNumber(JSDDateTime date) const
Finds the SRGR data set which update time is the closest to the center scene time.
Data * _data
List of metadata contained in the Data file.
#define TYPE_DATA
Definition: ossimRtti.h:339
virtual bool InitRefPoint(const ossimKeywordlist &kwl, const char *prefix)
Initializes the Reference Point from a projection keywordlist.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
This class is able to read the data file of the RadarSat file structure.
Definition: Data.h:31
VolumeDir * _volumeDir
List of metadata contained in the Volume Directory file.
Leader * _leader
List of metadata contained in the Leader file.
virtual bool InitPlatformPosition(const ossimKeywordlist &kwl, const char *prefix)
Initializes the Platform Position from a projection keywordlist.
int _n_srgr
Slant Range for each Ground Range (SRGR) number of coefficients sets.
bool open(const ossimFilename &file)
Method to intantial model from a file.
virtual bool internalLoadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
This class represents a date.
Definition: JSDDateTime.h:30
double _srgr_update[20]
SRGR coefficient sets update times.
virtual bool InitSensorParams(const ossimKeywordlist &kwl, const char *prefix)
Initializes the Sensor Params from a projection keywordlist.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.
double _srgr_coefset[20][6]
SRGR coefficient sets.
This class is able to read the leader file of the RadarSat file structure.
Definition: Leader.h:43