rcatool.utils.grids.fnRemapCon

rcatool.utils.grids.fnRemapCon(rgrLonS, rgrLatS, rgrLonT, rgrLatT, grOperator, rgrData)[source]

File name: fnRemapCon Author: Andreas Prein E-mail: prein@ucar.edu Date created: 13.06.2017 Date last modified: 13.06.2017

Uses the remap operator generated by the function fnRemapConOperator to remap data to a target grid conservatively

Parameters:
  • rgrLonS (arrays) – Source grid longitude and latitude values

  • rgrLatS (arrays) – Source grid longitude and latitude values

  • rgrLonT (arrays) – Target grid longitude and latitude values

  • rgrLatT (arrays) – Target grid longitude and latitude values

  • grOperator (dictionary) – Remapping operator returned from fnRemapConOperator.

  • rgrData (3D/4D array) – Data to be regridded, structured as (time, lat, lon) or (time, variables, lat, lon).

Returns:

rgrTarData – Remapped data matrix

Return type:

array