mitgcm
Analysis of MITgcm output using python
|
This defines the class for the grid object. More...
Public Member Functions | |
def | __init__ (self, grid_netcdf_filename) |
Define a single object that has all of the grid variables tucked away in it. More... | |
def | compute_boundary_masks (self) |
This function does the computationally heavy job of looping through each dimension and creating masks that are one if the boundary is next to the grid point in the specified direction. More... | |
def | compute_cell_volume (self) |
Public Member Functions inherited from mitgcm.core.MITgcm_Simulation | |
def | __init__ |
Instantiate an MITgcm model instance. More... | |
def | load_field |
Load a model field from NetCDF output. More... | |
def | load_from_file (self, model_instance, file_list, variable, time_level, grid_loc, single_file) |
Internal function to pull the data from the file(s). More... | |
def | __add__ (self, other) |
A method that allows model objects to be added together. More... | |
def | __div__ (self, other) |
A method that allows model objects to be divided by floating point numbers. More... | |
def | __mul__ (self, other) |
A method that allows model objects to be multiplied by floating point numbers. More... | |
def | __rmul__ (self, other) |
A method that allows model objects to be multiplied by floating point numbers. More... | |
Additional Inherited Members | |
Public Attributes inherited from mitgcm.core.MITgcm_Simulation | |
grid | |
This defines the class for the grid object.
Currently requires a single grid file.
This object holds all the information about the grid on which the simulation was run. It also holds masks for selecting only the boundary values of fields on the tracer points.
def mitgcm.core.Grid.__init__ | ( | self, | |
grid_netcdf_filename | |||
) |
Define a single object that has all of the grid variables tucked away in it.
Each of the variables pulled directly from the netcdf file still has the original description attached to it. The 2D and 3D arrays do not.
Variables imported are:
Variables computed and stored are:
Cell volumes can be calculated and stored with the compute_cell_volume function
These boundary masks can be computed with the compute_boundary_masks function
def mitgcm.core.Grid.compute_boundary_masks | ( | self | ) |
def mitgcm.core.Grid.compute_cell_volume | ( | self | ) |