ocssw
V2022
|
#include <L3File.h>
Public Member Functions | |
L3File () | |
virtual | ~L3File () |
virtual int64_t | rowbin2record (int32_t row, int64_t bin) |
virtual int64_t | rowcol2record (int32_t row, int32_t col) |
virtual int64_t | latlon2record (float lat, float lon) |
virtual int64_t | bin2record (int64_t bin) |
virtual void | clearCache () |
virtual void | setNumCacheRows (int32_t numRows) |
virtual bool | open (const char *fileName) |
virtual void | close () |
virtual meta_l3bType * | getMetaData () |
virtual int32_t | getNumProducts () |
virtual std::string | getProductName (size_t index=0) |
virtual bool | setActiveProductList (const char *prodStr) |
virtual int32_t | getNumActiveProducts () |
virtual std::string | getActiveProductName (size_t index=0) |
virtual int32_t | getNumRows () |
virtual L3Row * | getRow (int32_t row) |
virtual L3Bin * | getBin (int32_t row, int32_t col) |
virtual L3Bin * | getClosestBin (float lat, float lon) |
template<typename Geometry > | |
L3Bin * | getBinsInside (Geometry geo, bool areaWeighted=false) |
virtual Hdf::hdf_bin * | getHdfBinObject () const |
virtual bool | hasQuality () |
virtual void | setQualityProcessing (bool val) |
virtual bool | getQualityProcessing () const |
virtual L3Shape * | getShape () const |
Protected Member Functions | |
virtual L3Row * | readRow (int32_t row) |
virtual int | initRecordLookup () |
template<typename Geometry > | |
bool | addBinsFromRow (float lat0, float lon0, Geometry geo, bool areaWeighted) |
Protected Attributes | |
L3Shape * | shape |
Hdf::hdf_bin * | binObj |
std::list< L3Row * > | rowList |
int | numCacheRows |
int64_t * | baseRecord |
int32_t * | extentbin |
float * | sumBuffer |
L3Bin | outBin |
uint8_t * | qualityBuffer |
size_t * | prodMap |
size_t | numProds |
std::vector< std::string > | activeProdNameList |
Detailed Description
Constructor & Destructor Documentation
◆ L3File()
L3File | ( | ) |
Definition at line 391 of file L3File.cpp.
◆ ~L3File()
|
virtual |
Definition at line 403 of file L3File.cpp.
Member Function Documentation
◆ addBinsFromRow()
◆ bin2record()
|
virtual |
Get the record number in the file for the given bin
- Parameters
-
bin bin number (1-relative)
- Returns
- record number in the file or -1 if not found
Definition at line 575 of file L3File.cpp.
◆ clearCache()
|
virtual |
Definition at line 411 of file L3File.cpp.
◆ close()
|
virtual |
Reimplemented in L3FileSMI.
Definition at line 443 of file L3File.cpp.
◆ getActiveProductName()
|
virtual |
Definition at line 632 of file L3File.cpp.
◆ getBin()
|
virtual |
return the bin at row/col
- Parameters
-
row of desired bin col of desired bin
- Returns
- pointer to the bin object or NULL if bin not in file
Definition at line 761 of file L3File.cpp.
◆ getBinsInside()
return a bin with binned data for all of the bins that intersect Geometry
- Parameters
-
geo boost geometry to define an area
- Returns
- pointer to a bin containing all of the binned data found in this area, or NULL if no bins found. This pointer is good until the next call to this function.
◆ getClosestBin()
|
virtual |
return the bin closest to lat, lon
- Parameters
-
lat latitude of desired bin lon longitude of desired bin
- Returns
- pointer to the bin object or NULL if bin not in file
Definition at line 739 of file L3File.cpp.
◆ getHdfBinObject()
|
virtual |
get the underlying hdf_bin object
- Returns
- the hdf_bin obj or NULL if file is not opened yet.
Definition at line 784 of file L3File.cpp.
◆ getMetaData()
|
virtual |
Reimplemented in L3FileSMI.
Definition at line 475 of file L3File.cpp.
◆ getNumActiveProducts()
|
virtual |
Definition at line 628 of file L3File.cpp.
◆ getNumProducts()
|
virtual |
Reimplemented in L3FileSMI.
Definition at line 581 of file L3File.cpp.
◆ getNumRows()
|
virtual |
get the number of rows in the bin file
- Returns
- number of rows or -1 if file not opened yet
Definition at line 726 of file L3File.cpp.
◆ getProductName()
|
virtual |
Reimplemented in L3FileSMI.
Definition at line 587 of file L3File.cpp.
◆ getQualityProcessing()
|
virtual |
Definition at line 811 of file L3File.cpp.
◆ getRow()
|
virtual |
Definition at line 695 of file L3File.cpp.
◆ getShape()
◆ hasQuality()
|
virtual |
Reimplemented in L3FileSMI.
Definition at line 788 of file L3File.cpp.
◆ initRecordLookup()
|
protectedvirtual |
init the internal data structures to lookup the record index
- Returns
- status 0 if good, -1 if bad
Reimplemented in L3FileSMI.
Definition at line 486 of file L3File.cpp.
◆ latlon2record()
|
virtual |
Get the record number in the file for the closest lat, lon
- Parameters
-
lat latitude of the bin lon longitude of the bin
- Returns
- record number in the file or -1 if not found
Definition at line 562 of file L3File.cpp.
◆ open()
Reimplemented in L3FileSMI.
Definition at line 430 of file L3File.cpp.
◆ readRow()
|
protectedvirtual |
Reimplemented in L3FileSMI.
Definition at line 636 of file L3File.cpp.
◆ rowbin2record()
|
virtual |
Given row, col and bin lookup the record number. Note that row, col and bin are NOT checked for out of bounds. Mostly an internal function.
- Parameters
-
row row number of the bin (0-relative) bin bin number (1-relative)
- Returns
- record number in the file, or -1 if bin is not in the file.
Definition at line 529 of file L3File.cpp.
◆ rowcol2record()
|
virtual |
Get the record number in the file for the given row and col
- Parameters
-
row row of the bin (0-relative) col col of the bin (0-relative)
- Returns
- record number in the file or -1 if not found
Definition at line 550 of file L3File.cpp.
◆ setActiveProductList()
Reimplemented in L3FileSMI.
Definition at line 591 of file L3File.cpp.
◆ setNumCacheRows()
|
virtual |
Definition at line 420 of file L3File.cpp.
◆ setQualityProcessing()
|
virtual |
Definition at line 795 of file L3File.cpp.
Member Data Documentation
◆ activeProdNameList
|
protected |
◆ baseRecord
|
protected |
◆ binObj
|
protected |
◆ extentbin
|
protected |
◆ numCacheRows
◆ numProds
◆ outBin
◆ prodMap
|
protected |
◆ qualityBuffer
|
protected |
◆ rowList
◆ shape
◆ sumBuffer
|
protected |
The documentation for this class was generated from the following files:
- /gfs-oceanweb/web/ocssw/ocssw_src/oel_hdf4/libbin/L3File.h
- /gfs-oceanweb/web/ocssw/ocssw_src/oel_hdf4/libbin/L3File.cpp