Example on using the CoordinateSystem in combination with a CDMReader.
int main(int argc, char* args[]) {
const CDM& cdm = reader->getCDM();
string varName = "air_temperature";
if (varSysIt != coordSys.
end()) {
if ((*varSysIt)->isSimpleSpatialGridded()) {
if (tAxis.get() != 0) {
DataPtr refTimes = reader->getScaledDataInUnit(rtAxis->getName(),
"seconds since 1970-01-01 00:00:00");
size_t refTimePos = 3;
}
}
}
DataPtr data = reader->getDataSlice(varName, sb);
}
}
return 0;
}