pyremap.descriptor.PointCollectionDescriptor

class pyremap.descriptor.PointCollectionDescriptor(lats, lons, collectionName, units='degrees', outDimension='nPoints')[source]

A class for describing a collection of points

Variables:
  • lat (numpy.ndarray) – The latitude of each point

  • lon (numpy.ndarray) – The longitude of each point

  • units ({'degrees', 'radians'}) – The units of lats and lons

__init__(lats, lons, collectionName, units='degrees', outDimension='nPoints')[source]

Constructor stores

Parameters:
  • lats (numpy.ndarray) – The latitude of each point

  • lons (numpy.ndarray) – The longitude of each point

  • collectionName (str) – A unique name for the collection of transects, used in the names of files containing data mapped to these points.

  • units ({'degrees', 'radians'}, optional) – The units of lats and lons

  • outDimension (str, optional) – The name of the dimension corresponding to the points (i.e. the “horizontal” dimension of the point collection)

Methods

__init__(lats, lons, collectionName[, ...])

Constructor stores

to_esmf(esmfFileName)

Create an ESMF mesh file for the mesh

to_scrip(scripFileName)

Given an MPAS mesh file, create a SCRIP file based on the mesh.