... | @@ -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 |
|
|