BISICLES AMR ice sheet model  0.9
Functions
NCIO Namespace Reference

utility functions needed by writeFAB/readFAB More...

Functions

void writeCFSpatialRef (int ncID, int a_epsg)
 write CF compliant spatial ref (ie projection) attributes More...
 
void defineCF (int ncID, const DomainDiagnosticData &a_dd)
 define netcdf dimensions and variables needed to store a_dd More...
 
void writeCF (int ncID, const DomainDiagnosticData &a_dd)
 write a_dd to netcdf More...
 
void writeFAB (const std::string &a_file, const Vector< std::string > &a_names, const Vector< std::string > &a_cf_standard_names, const Vector< std::string > &a_cf_units, const Vector< std::string > &a_cf_long_names, const FArrayBox &a_fab, const Real &a_dx, const RealVect &a_x0, int a_epsg, const DomainDiagnosticData &a_dd, const std::string &a_flattenInfo, const HDF5HeaderData &a_file_header)
 write a single FAB to a (CF Compliant) netcdf file More...
 
void readFAB (const std::string &a_file, const Vector< std::string > &a_var, FArrayBox &a_fab, Real &a_dx)
 read a single FAB from a netcdf file More...
 

Detailed Description

utility functions needed by writeFAB/readFAB

Function Documentation

◆ defineCF()

void NCIO::defineCF ( int  ncID,
const DomainDiagnosticData a_dd 
)

define netcdf dimensions and variables needed to store a_dd

References DomainDiagnosticData::m_cf_stuff.

Referenced by writeFAB().

◆ readFAB()

void NCIO::readFAB ( const std::string &  a_file,
const Vector< std::string > &  a_var,
FArrayBox &  a_fab,
Real &  a_dx 
)

read a single FAB from a netcdf file

Referenced by main().

◆ writeCF()

void NCIO::writeCF ( int  ncID,
const DomainDiagnosticData a_dd 
)

write a_dd to netcdf

References DomainDiagnosticData::m_cf_stuff.

Referenced by writeFAB().

◆ writeCFSpatialRef()

void NCIO::writeCFSpatialRef ( int  ncID,
int  a_epsg 
)

write CF compliant spatial ref (ie projection) attributes

attempt to write CF projection data to a netcdf group, built from an epsg code

we might want some other projections at some point

Referenced by writeFAB().

◆ writeFAB()

void NCIO::writeFAB ( const std::string &  a_file,
const Vector< std::string > &  a_names,
const Vector< std::string > &  a_cf_standard_names,
const Vector< std::string > &  a_cf_units,
const Vector< std::string > &  a_cf_long_names,
const FArrayBox &  a_fab,
const Real &  a_dx,
const RealVect &  a_x0,
int  a_epsg,
const DomainDiagnosticData a_dd,
const std::string &  a_flattenInfo,
const HDF5HeaderData &  a_file_header 
)

write a single FAB to a (CF Compliant) netcdf file

References defineCF(), writeCF(), and writeCFSpatialRef().

Referenced by main().