OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
DopplerCentroidEstimateRecord.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 
25 {
26  os<<"dopcen_conf:"<<data._dopcen_conf<<std::endl;
27  os<<"dopcen_ref_tim:"<<data._dopcen_ref_tim<<std::endl;
28  for (int i=0;i<4;i++)
29  {
30  os<<"dopcen_coef["<<i<<"]:"<<data._dopcen_coef[i]<<std::endl;
31  }
32 
33  return os;
34 }
35 
37 {
38  char buf[17];
39  buf[16] = '\0';
40 
41  is.read(buf,16);
42  buf[16] = '\0';
43  data._dopcen_conf = atof(buf);
44 
45  is.read(buf,16);
46  buf[16] = '\0';
47  data._dopcen_ref_tim = atof(buf);
48 
49  for (int i=0;i<4;i++)
50  {
51  is.read(buf,16);
52  buf[16] = '\0';
53  data._dopcen_coef[i] = atof(buf);
54  }
55  return is;
56 }
57 
59  _dopcen_conf(rhs._dopcen_conf),
60  _dopcen_ref_tim(rhs._dopcen_ref_tim)
61 {
62  for (int i=0;i<4;i++)
63  {
64  _dopcen_coef[i] = rhs._dopcen_coef[i];
65  }
66 }
67 
69 {
72  for (int i=0;i<4;i++)
73  {
74  _dopcen_coef[i] = rhs._dopcen_coef[i];
75  }
76  return *this;
77 }
78 }
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
DopplerCentroidEstimateRecord & operator=(const DopplerCentroidEstimateRecord &rhs)
Copy operator.
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
double _dopcen_conf
Doppler centroid confidence measure.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
double _dopcen_ref_tim
Doppler centroid reference time (sec)
This class is able to read a Doppler centroid estimates record.
double _dopcen_coef[4]
Doppler centroid coefficients
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23