Skip to content

Commit

Permalink
libs/Radx/RadxVol, apps/Radx/RadxConvert - adding options to override…
Browse files Browse the repository at this point in the history
… convention, subconvention and height_agl
  • Loading branch information
mike-dixon committed Dec 8, 2023
1 parent 7e08b89 commit 491d906
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions codebase/libs/Radx/src/Ncf/NcfRadxFile_write.cc
Original file line number Diff line number Diff line change
Expand Up @@ -980,9 +980,10 @@ int NcfRadxFile::_addCoordinateVariables()
}

iret |= _file.addAttr(_rangeVar, LONG_NAME, RANGE_LONG);
iret |= _file.addAttr(_rangeVar, LONG_NAME,
"Range from instrument to center of gate");
iret |= _file.addAttr(_rangeVar, STANDARD_NAME,
"projection_range_coordinate");
iret |= _file.addAttr(_rangeVar, UNITS, METERS);
iret |= _file.addAttr(_rangeVar, AXIS, "radial_range_coordinate");
iret |= _file.addAttr(_rangeVar, SPACING_IS_CONSTANT, "true");
iret |= _file.addAttr(_rangeVar, METERS_TO_CENTER_OF_FIRST_GATE,
(float) _writeVol->getStartRangeKm() * 1000.0);
Expand Down Expand Up @@ -3693,7 +3694,11 @@ Nc3Var *NcfRadxFile::_createFieldVar(const RadxField &field)
} // switch

iret |= _file.addAttr(var, GRID_MAPPING, GRID_MAPPING);
iret |= _file.addAttr(var, COORDINATES, "time range");
if (_georefsActive) {
iret |= _file.addAttr(var, COORDINATES, "elevation azimuth range heading roll pitch rotation tilt");
} else {
iret |= _file.addAttr(var, COORDINATES, "elevation azimuth range");
}

// set compression

Expand Down

0 comments on commit 491d906

Please sign in to comment.