Calculates anomalies of a time series.
Calculates anomalies of a time series. It assumes that the time resolution in the input is months! The output will have a matrix of the same size as the input, where each cell is the difference between the input cell and the normal value for that cell at that time.
the input file to process
the output file to create
the variable to process
the time dimension in the variable
the number of years to average across
Creates a new NetCDF file that contains one variable resulting from the concatenation of that variable present in two input files.
Creates a new NetCDF file that contains one variable resulting from the concatenation of that variable present in two input files.
the first input file (data will appear first)
the second input file (data will appear second)
the output file to write to
the name of the variable to take from the inputs and concatenate
the dimension along which to the variable is split across the two inputs
Transforms an input NetCDF file into an output NetCDF file, by copying a given variable and applying an optional transform to the data.
Transforms an input NetCDF file into an output NetCDF file, by copying a given variable and applying an optional transform to the data.
Note: This is not optimized for speed, yet.
the input file to transform
the file to which the output will be written
the variable to copy/transform
the dimensions of the variable to transform. these will be removed from the target variable
the dimensions of the output variable. each spec can either
indicate a verbatim copy (Keep
) or the result of the transformation (Create
)
a function that will transform the variable's data matrix. It is passed the origin
in the kept dimensions (origin of the output shape minus the created dimensions)
and an object
of dimension inDims.size
and is required to output an object of
dimension outDims.filterNot(_.isCopy).size
. The dimensions are sorted to
correspond with inDims
. The function is called repeatedly, iterating
over all other input dimensions except those in inDims
.