Package uk.ac.rdg.resc.edal.dataset.cdm
Class CdmFeatureWrite
- java.lang.Object
-
- uk.ac.rdg.resc.edal.dataset.cdm.CdmFeatureWrite
-
public class CdmFeatureWrite extends Object
Provides methods for writing Features to NetCDF files. Currently fairly limited in scope, it contains a single method which will write a GridFeature on a rectilinear lat-lon grid to file.- Author:
- Guy Griffiths
-
-
Constructor Summary
Constructors Constructor Description CdmFeatureWrite()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
gridFeatureToNetCDF(GridFeature f, File outFile)
Writes aGridFeature
to filestatic void
gridFeatureToNetCDF(GridFeature f, File outFile, Set<GridCoordinates2D> cellsToMask, Float fillValue)
Writes aGridFeature
to file, masking out specified (horizontal) grid cellsstatic void
pointSeriesFeatureToNetCDF(PointSeriesFeature f, File outFile, Float fillValue)
-
-
-
Method Detail
-
gridFeatureToNetCDF
public static void gridFeatureToNetCDF(GridFeature f, File outFile) throws IOException, ucar.ma2.InvalidRangeException
Writes aGridFeature
to file- Parameters:
f
- TheGridFeature
to write. Can contain multiple variables.outFile
- TheFile
to write to.- Throws:
IOException
- - If there is a problem writing to the file location.ucar.ma2.InvalidRangeException
- - Usually indicative of a bug...
-
gridFeatureToNetCDF
public static void gridFeatureToNetCDF(GridFeature f, File outFile, Set<GridCoordinates2D> cellsToMask, Float fillValue) throws IOException, ucar.ma2.InvalidRangeException
Writes aGridFeature
to file, masking out specified (horizontal) grid cells- Parameters:
f
- TheGridFeature
to write. Can contain multiple variables.outFile
- TheFile
to write to.- Throws:
IOException
- - If there is a problem writing to the file location.ucar.ma2.InvalidRangeException
- - Usually indicative of a bug...
-
pointSeriesFeatureToNetCDF
public static void pointSeriesFeatureToNetCDF(PointSeriesFeature f, File outFile, Float fillValue) throws IOException, ucar.ma2.InvalidRangeException
- Throws:
IOException
ucar.ma2.InvalidRangeException
-
-