Package ucar.nc2.iosp.grid
Class GridIndexToNC
- java.lang.Object
-
- ucar.nc2.iosp.grid.GridIndexToNC
-
public class GridIndexToNC extends Object
Create a Netcdf File from a GridIndex
-
-
Constructor Summary
Constructors Constructor Description GridIndexToNC(String filename)
GridIndexToNC(RandomAccessFile raf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GridEnsembleCoord
addEnsembles(List<GridEnsembleCoord> ensembleCoords, List<GridRecord> recordList)
protected void
addExtraAttributes(GridRecord firstRecord, GridTableLookup lookup, NetcdfFile ncfile)
GridHorizCoordSys
getHorizCoordSys(GridRecord gribRecord)
Map<String,GridHorizCoordSys>
getHorizCoordSystems()
protected GridHorizCoordSys
makeGridHorizCoordSys(GridDefRecord gds, GridTableLookup lookup, Group g)
protected GridTimeCoord
makeGridTimeCoord(List<GridRecord> recordList, String location)
protected GridVariable
makeGridVariable(String indexFilename, String name, GridHorizCoordSys hcs, GridTableLookup lookup)
protected GridVertCoord
makeGridVertCoord(List<GridRecord> recordList, String vname, GridTableLookup lookup, GridHorizCoordSys hcs)
void
open(GridIndex index, GridTableLookup lookup, int version, NetcdfFile ncfile, CancelTask cancelTask)
Fill in the netCDF file
-
-
-
Constructor Detail
-
GridIndexToNC
public GridIndexToNC(String filename)
-
GridIndexToNC
public GridIndexToNC(RandomAccessFile raf)
-
-
Method Detail
-
open
public void open(GridIndex index, GridTableLookup lookup, int version, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
Fill in the netCDF file- Parameters:
index
- grid indexlookup
- lookup tableversion
- version of datancfile
- netCDF file to fill incancelTask
- cancel task- Throws:
IOException
- Problem reading from the file
-
addExtraAttributes
protected void addExtraAttributes(GridRecord firstRecord, GridTableLookup lookup, NetcdfFile ncfile)
-
addEnsembles
protected GridEnsembleCoord addEnsembles(List<GridEnsembleCoord> ensembleCoords, List<GridRecord> recordList)
-
makeGridHorizCoordSys
protected GridHorizCoordSys makeGridHorizCoordSys(GridDefRecord gds, GridTableLookup lookup, Group g)
-
makeGridVariable
protected GridVariable makeGridVariable(String indexFilename, String name, GridHorizCoordSys hcs, GridTableLookup lookup)
-
makeGridTimeCoord
protected GridTimeCoord makeGridTimeCoord(List<GridRecord> recordList, String location)
-
makeGridVertCoord
protected GridVertCoord makeGridVertCoord(List<GridRecord> recordList, String vname, GridTableLookup lookup, GridHorizCoordSys hcs)
-
getHorizCoordSys
public GridHorizCoordSys getHorizCoordSys(GridRecord gribRecord)
-
getHorizCoordSystems
public Map<String,GridHorizCoordSys> getHorizCoordSystems()
-
-