Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • N nes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Earth SciencesEarth Sciences
  • nes
  • Wiki
  • UserGuide

UserGuide · Changes

Page history
WIP authored Jul 05, 2025 by Carles Tena's avatar Carles Tena
Hide whitespace changes
Inline Side-by-side
UserGuide.md
View page @ ae18223f
...@@ -12,16 +12,10 @@ Once NES is installed, the `nes` command becomes available in your terminal. ...@@ -12,16 +12,10 @@ Once NES is installed, the `nes` command becomes available in your terminal.
Existent functionalities: Existent functionalities:
| Command | Description | | Command | Description |
|----------------------------------|-------------------------------------------------| |---------------------------|-------------------------------------------------|
| [check](#checker) | Check for NaN and Inf values in a NetCDF file | | [`check`](#CLI_checker) | Check for NaN and Inf values in a NetCDF file |
| [`reorder`](#reorder-longitudes) | Convert longitudes from [0, 360] to [-180, 180] | | [`reorder`](#CLI_reorder) | Convert longitudes from [0, 360] to [-180, 180] |
- [Reorder Longitudes](#reorder-longitudes)
- [Checker](#checker)
Or:
- [How to create your own functionality](HowTo_Console_Line_Interface) - [How to create your own functionality](HowTo_Console_Line_Interface)
...@@ -49,55 +43,3 @@ For example: ...@@ -49,55 +43,3 @@ For example:
nes check -h nes check -h
nes reorder -h nes reorder -h
``` ```
### Reorder Longitudes
Reorders the longitude dimension in a NetCDF file, converting values from [0, 360] to [-180, 180] and shifting data accordingly.
#### Syntax
```bash
nes reorder -f <input_file.nc> -o <output_file.nc>
```
#### Arguments
- `-f`, `--file`: Path to the input NetCDF file. **(required)**
- `-o`, `--output`: Path to the output NetCDF file. If omitted, the input file is not modified in-place.
#### Example
```bash
nes reorder -f emissions_360.nc -o emissions_180.nc
```
### Checker
Checks all variables in a NetCDF file for NaN and/or Inf values.
#### Syntax
```bash
nes check -f <input_file.nc> [--nan] [--no-nan] [--inf] [--no-inf]
```
#### Arguments
- `-f`, `--file`: Path to the NetCDF file to validate. **(required)**
- `--nan`: Enable NaN checking (default: enabled).
- `--no-nan`: Disable NaN checking.
- `--inf`: Enable Inf checking (default: enabled).
- `--no-inf`: Disable Inf checking.
#### Example
```bash
nes check -f output.nc
```
Disables Inf checking:
```bash
nes check -f output.nc --no-inf
```
\ No newline at end of file
Clone repository
  • Home
  • Tutorials
  • Trainings
  • Development
  • Contribute
  • FAQ