pyremap.descriptor.LatLonGridDescriptor

class pyremap.descriptor.LatLonGridDescriptor[source]

A class for describing a lat-lon grid

__init__()[source]

Constructor stores the file name

Parameters

fileName (str) – The path of the file containing the MPAS mesh

Methods

__init__()

Constructor stores the file name

create(latCorner, lonCorner[, units])

Create the lat-lon grid with the given arrays and units.

read([fileName, ds, latVarName, lonVarName])

Read the lat-lon grid from a file with the given lat/lon var names.

to_esmf(esmfFileName)

Create an ESMF mesh file for the mesh

to_scrip(scripFileName)

Given a lat-lon grid file, create a SCRIP file based on the grid.