mpas_analysis.shared.grid.LatLonGridDescriptor

class mpas_analysis.shared.grid.LatLonGridDescriptor[source]

A class for describing a lat-lon grid

__init__(self)[source]

Constructor stores the file name

Parameters
fileNamestr

The path of the file containing the MPAS mesh

Methods

__init__(self)

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_scrip(self, scripFileName)

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