pyremap.descriptor.MpasEdgeMeshDescriptor

class pyremap.descriptor.MpasEdgeMeshDescriptor(fileName, meshName=None)[source]

A class for describing an MPAS edge mesh

Variables:

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

__init__(fileName, meshName=None)[source]

Constructor stores the file name

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

  • meshName (str, optional) – The name of the MPAS mesh (e.g. 'oEC60to30' or 'oRRS18to6'). If not provided, the data set in fileName must have a global attribute meshName that will be used instead.

Methods

__init__(fileName[, meshName])

Constructor stores the file name

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.