|
|
# Development
|
|
|
|
|
|
This page can be used by developers to understand certain parts of the code:
|
|
|
|
|
|
- [Vertical Interpolation](#Vertical-interpolation)
|
|
|
- [Grib2](#Grib2)
|
|
|
|
|
|
|
|
|
## How to contribute to NES
|
|
|
|
|
|
1. Create an issue and complete the description
|
|
|
- Complete the issue description as much as possible with (estimated time, corresponding milestone, assigned person, etc.)
|
|
|
2. Create a branch (from master) directly in the issue (name should start with `develop-` following the number and title of the issue that appears by default)
|
|
|
3. Clone and checkout to the new branch, without any modification, in Nord3v2.
|
|
|
- It is recommended to run some tests to ensure the current behavior.
|
|
|
4. Modify the code.
|
|
|
5. Run the simulation with the new branch:
|
|
|
- To achieve it is important to prepend the cloned path in the `PYTHONPATH`
|
|
|
- e.g., `export PYTHONPATH=/gpfs/scratch/bsc32/bsc32538/NES:${PYTHONPATH}`
|
|
|
6. Create and run a specific test for your case in the folder `tests`.
|
|
|
7. Update the `CHANGELOG.md` and include information on the new development or bug fix.
|
|
|
8. Update the wiki with the new specifications.
|
|
|
9. Merge `master` into your development branch.
|
|
|
- To ensure that if there has been any changes in the master branch, these are included.
|
|
|
10. Run all tests in `tests`.
|
|
|
11. Create a merge request and assign it to Alba (@avilanov) or Carles (@ctena), who will review it.
|
|
|
- [Write Grib2 files](#Grib2)
|
|
|
|
|
|
## Vertical interpolation
|
|
|
|
... | ... | @@ -48,7 +30,7 @@ else: |
|
|
dtype=var_info['data'].dtype)
|
|
|
```
|
|
|
|
|
|
## Grib2
|
|
|
## Write Grib2 files
|
|
|
|
|
|
NES uses [ecCodes](https://confluence.ecmwf.int/display/ECC) to write grib2 files.
|
|
|
|
... | ... | |