OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
AntennaElevationPatterns.cpp
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 
13 
14 namespace ossimplugins
15 {
17  {
18  }
19 
21  {
22  }
23 
24 
26  {
27  os<<"zero_doppler_time:"<<data._zero_doppler_time.c_str()<<std::endl;
28 
29  os<<"attach_flag:"<<data._attach_flag<<std::endl;
30 
31  os<<"swath:"<<data._swath.c_str()<<std::endl;
32 
33  for (int i = 0; i<33; i++) {
34  os<<"elevation pattern:"<<data._elevation_pattern[i]<<std::endl;
35  }
36 
37  return os;
38 
39  }
40 
42  {
43  char buf16[17];
44  buf16[16]='\0';
45  char buf12[13];
46  buf12[12] = '\0';
47  char buf3[4];
48  buf3[3] = '\0';
49  // char buf2[3];
50  // buf2[2] = '\0';
51 // char buf1[1]; // avoid not used warning
52 
53  is.read(buf12,12);
54  data._zero_doppler_time = buf12;
55 
56  is.read((char*)&(data._attach_flag),1);
57 
58  is.read(buf3,3);
59  data._swath = buf3;
60 
61  for (int i = 0; i<33; i++) {
62  is.read((char*)&(data._elevation_pattern[i]),4);
63  data.SwitchEndian(data._elevation_pattern[i]);
64  }
65 
66  is.read(buf16,14);
67 
68  return is;
69 
70  }
71 
73  EnvisatAsarRecord(rhs),
74  _zero_doppler_time(rhs._zero_doppler_time),
75  _attach_flag(rhs._attach_flag),
76  _swath(rhs._swath)
77  {
78  for (int i = 0; i<33; i++) {
80  }
81  }
82 
83 
85  {
88  _swath = rhs._swath;
89 
90  for (int i = 0; i<33; i++) {
92  }
93 
94  return *this;
95  }
96 }
void SwitchEndian(T &value)
This function switches the LSB value and the MSB value of the parameter.
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
std::string _zero_doppler_time
zero_doppler_time
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
AntennaElevationPatterns & operator=(const AntennaElevationPatterns &rhs)
Copy operator.
This class is the base class of all the Envisat ASAR record classes.
float _elevation_pattern[33]
Elevation Pattern.
This class is able to read the ASAR AntennaElevationPatterns record.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23