|
This page can be used by developers to better understand certain parts of the code:
|
|
This page can be used by developers to better understand certain parts of the code:
|
|
|
|
|
|
|
|
- [Conda installation](NES_Installation_Makefile)
|
|
|
|
|
|
- [Vertical Interpolation](#vertical-interpolation)
|
|
- [Vertical Interpolation](#vertical-interpolation)
|
|
- [Write Grib2 files](#write-grib2-files)
|
|
- [Write Grib2 files](#write-grib2-files)
|
|
- [Install and update NES inside Conda environment](#install-and-update-nes-inside-conda-environment)
|
|
|
|
- [Upload to PyPI](#upload-to-pypi)
|
|
- [Upload to PyPI](#upload-to-pypi)
|
|
|
|
|
|
## Vertical interpolation
|
|
## Vertical interpolation
|
... | @@ -108,18 +109,6 @@ fout.close() |
... | @@ -108,18 +109,6 @@ fout.close() |
|
fin.close()
|
|
fin.close()
|
|
```
|
|
```
|
|
|
|
|
|
## Install and update NES inside Conda environment
|
|
|
|
NES can be installed in a Conda environment by following these steps:
|
|
|
|
1. Load anaconda in your machine
|
|
|
|
2. Activate your conda environment by doing `conda activate <your_environment_path>`
|
|
|
|
3. Locate the `setup.py` file inside NES and do `python setup.py install`.
|
|
|
|
|
|
|
|
This will install the current version of NES that is in the machine. If NES is updated, we also need to update it manually inside the Conda environment.
|
|
|
|
1. Update the NES version in the machine used for the Conda environment, e.g. deploy the NES code there.
|
|
|
|
2. Repeat the steps above for the installation.
|
|
|
|
|
|
|
|
You can also check the complete [NES source code](https://earth.bsc.es/gitlab/es/NES/-/blob/master/nes/nc_projections/default_nes.py#L2977)
|
|
|
|
|
|
|
|
## Upload to PyPI
|
|
## Upload to PyPI
|
|
|
|
|
|
Every time a version is released, we should update [NES in PyPI](https://pypi.org/project/NES/). To do so, we will first create a source distribution:
|
|
Every time a version is released, we should update [NES in PyPI](https://pypi.org/project/NES/). To do so, we will first create a source distribution:
|
... | | ... | |