OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
src/hdf5/ossimViirsHandler.cpp
Go to the documentation of this file.
1 /*****************************************************************************
2 * *
3 * O S S I M *
4 * Open Source, Geospatial Image Processing Project *
5 * License: MIT, see LICENSE at the top-level directory *
6 * *
7 *****************************************************************************/
8 
11 
12 static const ossimString VIIRS_DATASET ("/All_Data/VIIRS-DNB-SDR_All/Radiance");
13 static const ossimString VIIRS_GEOMETRY ("/All_Data/VIIRS-DNB-GEO_All");
14 
16 {
17  m_renderableNames.push_back(VIIRS_DATASET);
18 }
19 
21 {
22  if (theGeometry.valid())
23  return theGeometry;
24 
26  if (!theGeometry.valid() && isOpen())
27  {
29 
30  // Attempt to create an OSSIM coarse grid model from HDF5 lat lon grids:
32  if ( hdf5GridModel->initialize(m_hdf5.get(), VIIRS_GEOMETRY) )
33  {
34  theGeometry->setProjection(hdf5GridModel.get());
36  }
37  else
38  theGeometry = 0;
39  }
40 
41  return theGeometry;
42 }
43 
44 
46 {
47  // NPP VIIRS data has null of "-999.3".
48  return -999.3;
49 }
ossimRefPtr< ossimImageGeometry > theGeometry
void setProjection(ossimProjection *projection)
Sets the projection to be used for local-to-world coordinate transformation.
bool valid() const
Definition: ossimRefPtr.h:75
ossimRefPtr< ossimHdf5 > m_hdf5
bool initialize(ossimHdf5 *hdf5, const ossimString &projDataPath="")
Initializes from an open HDF5 file.
unsigned int ossim_uint32
void initImageParameters(ossimImageGeometry *geom) const
Convenience method to set things needed in the image geometry from the image handler.
virtual bool isOpen() const
Derived classes must implement this method to be concrete.
Container class that holds both 2D transform and 3D projection information for an image Only one inst...
virtual ossimRefPtr< ossimImageGeometry > getExternalImageGeometry() const
Returns the image geometry object associated with this tile source or NULL if non defined...
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if non defined...
std::vector< ossimString > m_renderableNames
virtual double getNullPixelValue(ossim_uint32 band=0) const