mpas_analysis.shared.climatology.get_remapper

mpas_analysis.shared.climatology.get_remapper(config, sourceDescriptor, comparisonDescriptor, mappingFilePrefix, method, logger=None)[source]

Given config options and descriptions of the source and comparison grids, returns a pyremap.Remapper object that can be used to remap from source files or data sets to corresponding data sets on the comparison grid.

If necessary, creates the mapping file containing weights and indices needed to perform remapping.

Parameters
configinstance of MpasAnalysisConfigParser

Contains configuration options

sourceDescriptorMeshDescriptor subclass object

A description of the source mesh or grid

comparisonDescriptorMeshDescriptor subclass object

A description of the comparison grid

mappingFilePrefixstr

A prefix to be prepended to the mapping file name

method{‘bilinear’, ‘neareststod’, ‘conserve’}

The method of interpolation used.

loggerlogging.Logger, optional

A logger to which ncclimo output should be redirected

Returns
remapperpyremap.Remapper object

A remapper that can be used to remap files or data sets from the source grid or mesh to the comparison grid.