public class GeotiffWriter extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected GeoTiff |
geotiff |
protected short |
pageNumber |
| Constructor and Description |
|---|
GeotiffWriter(String fileOut)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
writeGrid(ucar.nc2.ft2.coverage.GeoReferencedArray array,
boolean greyScale)
Write GridCoverage data to the geotiff file.
|
void |
writeGrid(ucar.nc2.dt.GridDataset dataset,
ucar.nc2.dt.GridDatatype grid,
ucar.ma2.Array data,
boolean greyScale)
Write GridDatatype data to the geotiff file.
|
protected GeoTiff geotiff
protected short pageNumber
public GeotiffWriter(String fileOut)
fileOut - name of output file.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void writeGrid(ucar.nc2.dt.GridDataset dataset,
ucar.nc2.dt.GridDatatype grid,
ucar.ma2.Array data,
boolean greyScale)
throws IOException
dataset - grid in contained in this datasetgrid - data is in this griddata - 2D array in YX ordergreyScale - if true, write greyScale image, else dataSample.IOException - on i/o errorpublic void writeGrid(ucar.nc2.ft2.coverage.GeoReferencedArray array,
boolean greyScale)
throws IOException
array - GeoReferencedArray array in YX ordergreyScale - if true, write greyScale image, else dataSample.IOException - on i/o error