OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022

#include <L3ShapeIsine.h>

Inheritance diagram for L3ShapeIsine:
[legend]
Collaboration diagram for L3ShapeIsine:
[legend]

Public Member Functions

 L3ShapeIsine (int32_t numRows)
 
virtual ~L3ShapeIsine ()
 
virtual void constrainRowCol (int32_t &row, int32_t &col) const
 
virtual int64_t getBaseBin (int32_t row) const
 
virtual int32_t getNumCols (int32_t row) const
 
virtual int32_t bin2row (int64_t bin)
 
virtual void bin2rowcol (int64_t bin, int32_t &row, int32_t &col)
 
virtual int64_t rowcol2bin (int32_t row, int32_t col) const
 
virtual void rowcol2latlon (int32_t row, int32_t col, double &lat, double &lon) const
 
virtual int32_t lat2row (double lat) const
 
virtual double row2lat (int32_t row) const
 
virtual void latlon2rowcol (double lat, double lon, int32_t &row, int32_t &col) const
 
virtual int64_t latlon2bin (double lat, double lon) const
 
virtual void rowcol2bounds (int32_t row, int32_t col, double &north, double &south, double &east, double &west) const
 
- Public Member Functions inherited from L3Shape
 L3Shape (int32_t numRows)
 
virtual ~L3Shape ()
 
virtual int32_t getNumRows () const
 
virtual int64_t getNumBins () const
 
virtual void constrainRow (int32_t &row) const
 
virtual void rowcol2latlon (int32_t row, int32_t col, float &lat, float &lon) const
 
virtual void bin2latlon (int64_t bin, double &lat, double &lon)
 
virtual void bin2latlon (int64_t bin, float &lat, float &lon)
 
virtual void rowcol2bounds (int32_t row, int32_t col, float &north, float &south, float &east, float &west) const
 
virtual void bin2bounds (int64_t bin, double &north, double &south, double &east, double &west)
 
virtual void bin2bounds (int64_t bin, float &north, float &south, float &east, float &west)
 

Protected Attributes

int32_t * numBin
 
int64_t * baseBin
 
double * latBin
 
int32_t oldRow
 
- Protected Attributes inherited from L3Shape
int64_t totalBins
 
int32_t totalRows
 
double seamLon
 

Detailed Description

Definition at line 16 of file L3ShapeIsine.h.

Constructor & Destructor Documentation

◆ L3ShapeIsine()

L3ShapeIsine ( int32_t  numRows)

constructor for a integerized sine shaped l3 bin file

Parameters
numRowsnumber of rows in the bin file

Definition at line 16 of file L3ShapeIsine.cpp.

◆ ~L3ShapeIsine()

~L3ShapeIsine ( )
virtual

destructor that frees the memory for this class

Definition at line 41 of file L3ShapeIsine.cpp.

Member Function Documentation

◆ bin2row()

int32_t bin2row ( int64_t  bin)
virtual

find the row that contains the given bin number

Parameters
binto look up
Returns
row this bin is in

Implements L3Shape.

Definition at line 102 of file L3ShapeIsine.cpp.

◆ bin2rowcol()

void bin2rowcol ( int64_t  bin,
int32_t &  row,
int32_t &  col 
)
virtual

get the row and col for the given bin

Parameters
binto look up
rowthat contains the bin
colfor the bin

Implements L3Shape.

Definition at line 138 of file L3ShapeIsine.cpp.

◆ constrainRowCol()

void constrainRowCol ( int32_t &  row,
int32_t &  col 
) const
virtual

keep row and col in the valid range

Parameters
rowto modify if necessary
colto modify if necessary

Implements L3Shape.

Definition at line 52 of file L3ShapeIsine.cpp.

◆ getBaseBin()

int64_t getBaseBin ( int32_t  row) const
virtual

get the bin number of the first column in the given row

Parameters
rowto look up
Returns
the first bin in this row

Implements L3Shape.

Definition at line 82 of file L3ShapeIsine.cpp.

◆ getNumCols()

int32_t getNumCols ( int32_t  row) const
virtual

get the number of columns in the given row

Parameters
rowto look up
Returns
the number of cols in this row

Implements L3Shape.

Definition at line 92 of file L3ShapeIsine.cpp.

◆ lat2row()

int32_t lat2row ( double  lat) const
virtual

get the row for the given lat

Parameters
latto look up
Returns
row of containing bin

Implements L3Shape.

Definition at line 182 of file L3ShapeIsine.cpp.

◆ latlon2bin()

int64_t latlon2bin ( double  lat,
double  lon 
) const
virtual

get the bin number containing the given lat/lon

Parameters
latto look up
lonto look up
Returns
bin number containing lat/lon

Implements L3Shape.

Definition at line 225 of file L3ShapeIsine.cpp.

◆ latlon2rowcol()

void latlon2rowcol ( double  lat,
double  lon,
int32_t &  row,
int32_t &  col 
) const
virtual

get the row/col that contains the given lat/lon

Parameters
latto look up
lonto look up
rowof containing bin
colof containing bin

Implements L3Shape.

Definition at line 210 of file L3ShapeIsine.cpp.

◆ row2lat()

double row2lat ( int32_t  row) const
virtual

get the center latitude of the given row

Parameters
rowof bin to look up
Returns
center latitude of the row

Implements L3Shape.

Definition at line 195 of file L3ShapeIsine.cpp.

◆ rowcol2bin()

int64_t rowcol2bin ( int32_t  row,
int32_t  col 
) const
virtual

get the bin at the given row/col

Parameters
rowof the bin
colof the bin
Returns
bin number at row/col

Implements L3Shape.

Definition at line 158 of file L3ShapeIsine.cpp.

◆ rowcol2bounds()

void rowcol2bounds ( int32_t  row,
int32_t  col,
double &  north,
double &  south,
double &  east,
double &  west 
) const
virtual

get the boundaries of the bin at row/col

Parameters
rowof bin
colof bin
northextent of bin
southextent of bin
eastextent of bin
westextent of bin

Implements L3Shape.

Definition at line 241 of file L3ShapeIsine.cpp.

◆ rowcol2latlon()

void rowcol2latlon ( int32_t  row,
int32_t  col,
double &  lat,
double &  lon 
) const
virtual

get the center lat/lon for the given row/col

Parameters
rowof bin
colof bin
latcenter lat
loncenter lon

Implements L3Shape.

Definition at line 170 of file L3ShapeIsine.cpp.

Member Data Documentation

◆ baseBin

int64_t* baseBin
protected

Definition at line 19 of file L3ShapeIsine.h.

◆ latBin

double* latBin
protected

Definition at line 20 of file L3ShapeIsine.h.

◆ numBin

int32_t* numBin
protected

Definition at line 18 of file L3ShapeIsine.h.

◆ oldRow

int32_t oldRow
protected

Definition at line 22 of file L3ShapeIsine.h.


The documentation for this class was generated from the following files: