NetCDF4 C++ API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
netcdf::NcLatLonRecordBase Class Referenceabstract

Class providing an interface to a NetCDF file containing a record-based latitude/longitude data. More...

#include <NetCDF/cpp4/src/datasets/NcLatLonRecordBase.h>

Detailed Description

Copyright:
Copyright 2013 Colorado State University. All rights reserved.
Organization:
Natural Resource Ecology Laboratory
Colorado State University, Fort Collins, CO 80523 USA
www.nrel.colostate.edu
Project:
IRC <www.nrel.colostate.edu/projects/irc/>

Produces a netCDF file that has the following structure:

    dimensions:
        record = UNLIMITED ; // (0 currently) -- ALTERNATIVE: can be a fixed dimension
    variables:
        float lat(record) ;
                lat:long_name = "latitude of center of cell" ;
                lat:standard_name = "latitude" ;
                lat:units = "degrees_north" ;
                lat:valid_min = -90.f ;
                lat:valid_max = 90.f ;
        float lon(record) ;
                lon:long_name = "longitude of center of cell" ;
                lon:standard_name = "longitude" ;
                lon:units = "degrees_east" ;
                lon:valid_min = -180.f ;
                lon:valid_max = 180.f ;
Author
Tom Hilinski tom.h.nosp@m.ilin.nosp@m.ski@c.nosp@m.olos.nosp@m.tate..nosp@m.edu
Date
2013Feb

Public Member Functions

void SetRecordDimName (std::string const useRecordDimName)
 
void SetLatLonLongNames (std::string const useLatLongName, std::string const useLonLongName)
 
std::string const & GetRecordDimName () const
 
void Create (NcFile &ncFile)
 
void Create (NcFile &ncFile, unsigned int const numRecords)
 number of records in new file More...
 
virtual ~NcLatLonRecordBase ()=0
 

Static Public Attributes

static char const *const dimNames [] = { "record" }
 names of dimensions More...
 
static char const *const varNames [] = { "lat", "lon" }
 names of variables More...
 
static char const *const longNames []
 long_names attributes of variables More...
 

Protected Member Functions

 NcLatLonRecordBase (short const useCompressionLevel=5)
 

Protected Attributes

std::string recordDimName
 
std::string latLongName
 
std::string lonLongName
 
short const compressionLevel
 

Constructor & Destructor Documentation

netcdf::NcLatLonRecordBase::NcLatLonRecordBase ( short const  useCompressionLevel = 5)
inlineprotected
netcdf::NcLatLonRecordBase::~NcLatLonRecordBase ( )
inlinepure virtual

Member Function Documentation

void netcdf::NcLatLonRecordBase::Create ( NcFile ncFile)
Parameters
ncFileCreate a netCDF file with UNLIMITED dimension
void netcdf::NcLatLonRecordBase::Create ( NcFile ncFile,
unsigned int const  numRecords 
)
Parameters
ncFileCreate a netCDF file with fixed record dimension
std::string const& netcdf::NcLatLonRecordBase::GetRecordDimName ( ) const
inline
void netcdf::NcLatLonRecordBase::SetLatLonLongNames ( std::string const  useLatLongName,
std::string const  useLonLongName 
)
inline
void netcdf::NcLatLonRecordBase::SetRecordDimName ( std::string const  useRecordDimName)
inline

Member Data Documentation

short const netcdf::NcLatLonRecordBase::compressionLevel
protected
char const *const netcdf::NcLatLonRecordBase::dimNames = { "record" }
static
std::string netcdf::NcLatLonRecordBase::latLongName
protected
char const *const netcdf::NcLatLonRecordBase::longNames
static
Initial value:
=
{
"latitude of center of cell",
"longitude of center of cell"
}
std::string netcdf::NcLatLonRecordBase::lonLongName
protected
std::string netcdf::NcLatLonRecordBase::recordDimName
protected
char const *const netcdf::NcLatLonRecordBase::varNames = { "lat", "lon" }
static

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