
ClimateChangeFileProcessor |
util.ClimateChangeFileProcessor |
This code is for converting an IPCC climate change file into an ASC file for
use as a layer in GARP. IPCC data is stored in a file which has data
organized by months. This actor processes that data to return file(s)
that are seasonal (fall, winter, summer, or spring) and/or annual
The 'outputPeriod' parameter sets the season.
Minimum, maximum, or average values can be placed in the output file.
The type of values is set with the 'outputType' parameter
If the 'baseOutputFileName' parameter is left empty, the resulting output
file is placed in the same directory as the input IPCC file, with some
text added to the filename to indicate its type and period.
Otherwise, the text in 'baseOutputFileName' is assumed to be the base for
the output file path (and text indicating type and period is added). This allows
the output to be sent to arbitrary local locations.
In any case, the resulting output is an ASC grid filename.
Note that this actor is adapted from the ClimateFileProcessor actor. The
predicted change files are at a lower resolution than the current (historical)
data files, and metada is stores in a 6 line header just before the monthly data
Author(s):
Version:
input
The input port is given the file name of the IPCC data source for climate
data.
output
The output port is an ASC grid filename.
outputType
A string determining the output 'type' which has a value of
'minimum', 'maximum', or 'average'. These types refer to the value
selected over the outputPeriod parameter
outputPeriod
A string determining the output 'period' which has a value of
annual, fall, winter, summer, or spring
baseOutputFileName
If the 'baseOutputFileName' parameter is left empty, the resulting output
file is placed in the same directory as the input IPCC file, with some
text added to the filename to indicate its type and period.
Otherwise, the text in 'baseOutputFileName' is assumed to be the base for
the output file path (and text indicating type and period is added). This allows
the output to be sent to arbitrary local locations.
rowsParameter
The number of rows in the grid (given in the datasource metadata)
colsParameter
The number of columns in the grid (given in the datasource metadata)
nodatavalueParameter
The value used to indicate missing data