32 int Read(
int fd,
int *data)
override;
33 int ReadRegion(
int fd,
const vector<size_t> &min,
const vector<size_t> &max,
int *data)
override;
38 int initialize(
const vector<string> &paths,
const std::vector<string> &options)
override;
46 string getMapProjection()
const override {
return (
"+proj=eqc +ellps=WGS84 +lon_0=0.0 +lat_0=0.0"); }
51 struct uGridMeshType {
53 vector<string> nodeCoordinates;
54 string faceNodeConnectivity;
56 string edgeNodeConnectivity;
58 string faceEdgeConnectivity;
59 string faceFaceConnectivity;
60 string edgeFaceConnectivity;
61 string boundaryNodeConnectivity;
62 vector<string> faceCoordinates;
63 vector<string> edgeCoordinates;
65 std::map<string, uGridMeshType> _uGridMeshMap;
67 std::map<string, vector<int>> _faceNodeConnectivityMap;
68 std::map<int, string> _openConnectivityMaps;
70 string _getLayeredVerticalCoordVar(NetCDFCFCollection *ncdfc,
string varName)
const;
72 void _getUGridMeshFromFile(NetCDFCFCollection *ncdfc,
string meshVarName, uGridMeshType &m);
74 string _getMeshNodeDimName(NetCDFCFCollection *ncdf,
const uGridMeshType &m)
const;
76 string _getMeshFaceDimName(NetCDFCFCollection *ncdf,
const uGridMeshType &m)
const;
78 size_t _getMeshMaxNodesPerFace(NetCDFCFCollection *ncdf,
const uGridMeshType &m)
const;
80 bool _getVarTimeCoords(NetCDFCFCollection *ncdfc,
string varName,
string &coordName)
const;
82 int _initFaceNodeConnectivityMap(NetCDFCFCollection *ncdfc);
Class for reading a NetCDF Climate Forecast (CF) data set stored as a series of NetCDF files.
Class for reading a UGRID data set stored as a series of NetCDF files: https://ugrid-conventions....
int initDataVars(NetCDFCFCollection *ncdfc, std::map< string, DC::DataVar > &dataVarsMap) override
int ReadRegion(int fd, const vector< size_t > &min, const vector< size_t > &max, int *data) override
int CloseVariable(int fd) override
int initMesh(NetCDFCFCollection *ncdfc, std::map< string, DC::Mesh > &meshMap) override
int OpenVariableRead(size_t ts, string varname, int level=0, int lod=0) override
int initAuxilliaryVars(NetCDFCFCollection *ncdfc, std::map< string, DC::AuxVar > &auxVarsMap) override
string getMapProjection() const override
int Read(int fd, int *data) override
int initialize(const vector< string > &paths, const std::vector< string > &options) override
Wrapper for a collection of netCDF files.