Regional MOM6 CEFI preprocessing and data access
Project description
NOAA Changing, Ecosystems, and Fisheries Initiative (CEFI) - Data Portal Team
Regional MOM6 preprocessing package
This is a developing regional mom6 module help both preprocessing the data and perform various statistical analysis shown in Ross et al., 2023. Many scripts are the modified version of the GFDL CEFI github repository.
Current stage of the module is for estabilishing the processing workflow in the CEFI data portal. Future availability of a more sophisticated python pakcage for various end-user purposes is in the roadmap of this project.
We welcome external contribution to the package. Please feel free to submit issue for any inputs and joining the development core team. Thank you!
Installing the package using Conda
We recommand using conda to mamage the virtual environment that one is going to install the package. Due to the esmpy and ESMF are complex, compiled librarie, pip will not be able to install the module.
Therefore a installation of the xesmf package using conda with conda-forge channel is needed.
Please following the steps to install the package correctly
- Install the xesmf using
conda installconda install -c conda-forge xesmf - Install the mom6 package using
pip installpip install rmom6_preprocessing
Test installation of the package
import mom6
or
from mom6.mom6_module import mom6_regrid
Setting up the developement environment
-
Fork this repository using the button in the upper right of the GitHub page. This will create a copy of the repository in your own GitHub profile, giving you full control over it.
-
Clone the repository to your local machine from your forked version.
git clone <fork-repo-url-under-your-github-account>This create a remote
originto your forked version (not the NOAA-CEFI-Portal version) -
Create a conda/mamba env based on the environment.yml
cd regional_mom6/ conda env create -f environment.yml -
Activate the conda env
regional-mom6conda activate regional-mom6 -
pip install the package in develop mode
pip install -e .
Syncing with the NOAA-CEFI-Portal version
-
Create a remote
upstreamto track the changes that is on NOAA-CEFI-Portalgit remote add upstream git@github.com:NOAA-CEFI-Portal/regional_mom6.git -
Create a feature branch to make code changes
git branch <feature-branch-name> git checkout <feature-branch-name>This prevents making direct changes to the
mainbranch in your local repository. -
Sync your local repository with the upstream changes regularly
git fetch upstream git checkout main git merge upstream/mainThis updates your local
mainbranch with the latest changes from the upstream repository. -
Merge updated local
mainbranch into your local<feature-branch-name>branch to keep it up to date.git checkout <feature-branch-name> git merge main -
Push your changes to your forked version on GitHub
git push origin <feature-branch-name>Make sure you have included the
upstream/mainchanges before creating a pull request on NOAA-CEFI-Portal/regional_mom6
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rmom6_preprocessing-0.19.0.tar.gz.
File metadata
- Download URL: rmom6_preprocessing-0.19.0.tar.gz
- Upload date:
- Size: 39.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64c9a2de79d3a0c6b17ea69f3c4eb4580aed5ed239a45b4ffbf61499fdf75640
|
|
| MD5 |
044c1c840f4ad1eed805072e879f8bc5
|
|
| BLAKE2b-256 |
509a97a0bdadd9387dd144f038fd1df900651d18c57c254a308588ec3144b476
|
File details
Details for the file rmom6_preprocessing-0.19.0-py3-none-any.whl.
File metadata
- Download URL: rmom6_preprocessing-0.19.0-py3-none-any.whl
- Upload date:
- Size: 46.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cf75d5e62b9778199e911535e57d0752ccc1820edfdae57b0c96e415c44ab25
|
|
| MD5 |
dd540d8660ce01b2add4d24859b25d9e
|
|
| BLAKE2b-256 |
494db568b146b292477e6412d31449c773a04a365c0be507f02ef483a29c3c42
|