A repository for the development and maintenance of MPAS analysis tools.
Analysis is stored in a directory corresponding to each core component, e.g., ocean for
MPAS-Ocean. Shared functionality is contained within the shared directory.
This analysis repository presumes that the following python packages are available:
- numpy
- scipy
- matplotlib
- netCDF4
- xarray ≥ 0.9.1
- dask
- bottleneck
- basemap
- lxml
- nco
You can easily install them via the conda command:
conda config --add channels conda-forge
conda install numpy scipy matplotlib netCDF4 xarray dask bottleneck basemap lxml nco
-
Create and empty config file (say
config.myrun) or copy one of the example files in theconfigsdirectory. -
Copy and modify any config options you want to change from
config.defaultinto your new config file.Requirements for custom config files:
- At minimum you should set
baseDirectoryunder[output]to the folder where output is stored. NOTE this value should be a unique directory for each run being analyzed. If multiple runs are analyzed in the same directory, cached results from a previous analysis will not be updated correctly. - Any options you copy into the config file must include the appropriate section header (e.g. '[run]' or '[output]')
- The entire
config.defaultdoes not need to be used. This fill will automatically be used for any options you do not include in your custom config file. - Given the automatic sourcing of
config.defaultyou should not alterconfig.defaultdirectly.
- At minimum you should set
-
run:
./run_analysis.py config.myrun. This will read the configuraiton first fromconfig.defaultand then replace that configuraiton with any changes from fromconfig.myrun -
If you want to run a subset of the analysis, you can either set the
generateoption under[output]in your config file or use the--generateflag on the command line. See the comments inconfig.defaultfor more details on this option.