polaris.remap.MappingFileStep.src_from_lon_lat

MappingFileStep.src_from_lon_lat(filename, mesh_name=None, lon_var='lon', lat_var='lat')[source]

Set the source grid from a file with a longitude-latitude grid. The latitude and longitude variables can be 1D or 2D.

Parameters:
  • filename (str) – A file containing the latitude-longitude grid

  • mesh_name (str, optional) – The name of the lon-lat grid (defaults to resolution and units, something like “0.5x0.5degree”)

  • lon_var (str, optional) – The name of the longitude coordinate in the file

  • lat_var (str, optional) – The name of the latitude coordinate in the file