OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
MeasurementDSR.cpp
Go to the documentation of this file.
1 /*
2  * MeasurementDSR.cpp
3  *
4  * Created on: Jan 7, 2013
5  * Author: dshea
6  */
7 
8 #include "MeasurementDSR.h"
9 
10 #include "EnvsatUtil.h"
11 
12 #include <stdio.h>
13 #include <stdlib.h>
14 
15 #include <timeutils.h>
16 
18 EnvsatDSR(size) {
19 }
20 
22  // TODO Auto-generated destructor stub
23 }
24 
27  printf("\nMeasurementDSR-----\n");
28  printf("startTime = %s\n", unix2merisTime(getStartTime()).c_str());
29  printf("quality = %X\n", getQuality());
30 }
31 
33  return getMJD(getBuffer(), 0);
34 }
35 
36 unsigned char MeasurementDSR::getQuality() {
37  return ((unsigned char*) getBuffer())[12];
38 }
virtual void print()
virtual char * getBuffer()
Definition: EnvsatDSR.h:24
double getMJD(const char *buffer, unsigned int offset)
Definition: EnvsatUtil.cpp:114
MeasurementDSR(int size)
virtual unsigned char getQuality()
virtual double getStartTime()
const string & unix2merisTime(double unixTime)
Definition: EnvsatUtil.cpp:160
virtual ~MeasurementDSR()
virtual void print()
Definition: EnvsatDSR.cpp:40