public class GeotiffWriter extends Object
| Constructor and Description |
|---|
GeotiffWriter(String fileOut)
Geotiff writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
_more_
|
Array |
getClippedImageFrominterpolation(Array arr,
int x1,
int x2,
int y1,
int y2)
_more_
|
double[] |
getSwathLatLonInformation(Array lat,
Array lon)
get lat lon information from the swath
|
Array |
getTargetImagerFromSwath(Array lat,
Array lon,
Array data,
double[] swathInfo)
get the grid dataset
|
Array |
getYXDataInBox(Array data,
int x1,
int x2,
int y1,
int y2)
_more_
|
Array |
interpolation(Array arr)
interpolate the swath data to regular grid
|
static void |
main(String[] args)
test
|
void |
writeGrid(GridDataset dataset,
GridDatatype grid,
Array data,
boolean greyScale)
Write Grid data to the geotiff file.
|
void |
writeGrid(GridDatatype grid,
Array data,
boolean greyScale,
double xStart,
double yStart,
double xInc,
double yInc,
int imageNumber)
Write Grid data to the geotiff file.
|
void |
writeGrid(String fileName,
String gridName,
int time,
int level,
boolean greyScale,
LatLonRect pt)
Write Grid data to the geotiff file.
|
void |
writeSwathGrid(String fileName,
String gridName,
int time,
int level,
boolean greyScale,
LatLonRect llr)
Write Swath Grid data to the geotiff file.
|
public GeotiffWriter(String fileOut)
fileOut - name of output file.public void writeGrid(GridDataset dataset, GridDatatype grid, 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(String fileName, String gridName, int time, int level, boolean greyScale, LatLonRect pt) throws IOException
fileName - _more_gridName - _more_time - _more_level - _more_greyScale - _more_pt - _more_IOException - _more_public void writeSwathGrid(String fileName, String gridName, int time, int level, boolean greyScale, LatLonRect llr) throws IOException
fileName - _more_gridName - _more_time - _more_level - _more_greyScale - _more_llr - _more_IOException - _more_public Array getYXDataInBox(Array data, int x1, int x2, int y1, int y2) throws IOException
data - _more_x1 - _more_x2 - _more_y1 - _more_y2 - _more_IOException - _more_public Array getClippedImageFrominterpolation(Array arr, int x1, int x2, int y1, int y2)
arr - _more_x1 - _more_x2 - _more_y1 - _more_y2 - _more_public Array getTargetImagerFromSwath(Array lat, Array lon, Array data, double[] swathInfo)
lat - _more_lon - _more_data - _more_swathInfo - _more_public Array interpolation(Array arr)
arr - _more_public double[] getSwathLatLonInformation(Array lat, Array lon)
lat - _more_lon - _more_public void writeGrid(GridDatatype grid, Array data, boolean greyScale, double xStart, double yStart, double xInc, double yInc, int imageNumber) throws IOException
grid - original griddata - 2D array in YX ordergreyScale - if true, write greyScale image, else dataSample.xStart - yStart - xInc - yInc - imageNumber - IOException - on i/o errorIllegalArgumentException - if above assumptions not validpublic void close()
throws IOException
IOException - _more_public static void main(String[] args) throws IOException
args - _more_IOException - _more_Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.