
GridRescaler |
org.ecoinformatics.seek.gis.java_gis.GridRescaler |
This actor converts an ascii raster grid file into another
ascii grid file with different extent and cell spacing
A ASC grid file is read as input. (The file name(s) are connected to the input port.)
The xllcorner, yllcorner, cellsize,
numrows and numcols of the desired grid are also input and a new
ASC file is created. Algorithms are disk based meaning that very large
rasters can be handled.
The input is a multiport so multiple input file names can be attached to
that port. Multiple tokens are output in a sequence if multiple input filenames
are attached. Token consumption and production rates are automatically calculated
A useExistingFile boolean parameter has been added. When true, the actor checks to see if
the output file already exists. If it does, it is just sent to the output port without
repeating the calculation.
Author(s):
Version:
xllcorner
The x-value of the lower left corner of the output grid
Usually this is a longitude. This is input as a string and converted to a double.
yllcorner
The y-value of the lower left corner of the output grid
Usually this is a latitude. This is input as a string and converted to a double.
cellsize
The cell size of the output grid.
The grid is assumed square so that x and y grid sizes are equal and converted to a double..
numrows
The number of rows (cells in the y-direction) in the output grid.
This determines the extent of y-values in the grid when combined with the cell size
This is input as a string and converted to a integer.
numcols
The number of columns (cells in the x-direction) in the output grid.
This determines the extent of x-values in the grid when combined with the cell size
This is input as a string and converted to a integer.
algorithm
This is the algoritm to be used in calculating cell values in the output grid
from the values in the input grid
Currently there are two choices: 'Nearest Neighbor' or 'Inverse Distance Weighted'
outputFilename
This is the name to be given to the output file.
If left empty, the input file name plus a suffix (".out"+i) will be used for output file names
Note that the input port is a multiport so multiple input can be converted in a single firing.
If this parameter is a directory name, output file(s) will be placed in that directory
useExistingFile
Boolean setting to determine whether or not to use currently existing output file, if
it exists
useDisk
Boolean setting to determine whether or not to use disk for storing grid data rather
than putting all data in RAM arrays