... | @@ -2,13 +2,6 @@ |
... | @@ -2,13 +2,6 @@ |
|
|
|
|
|
Follow the steps below to add a new command to the NES CLI:
|
|
Follow the steps below to add a new command to the NES CLI:
|
|
|
|
|
|
## Command Summary Table
|
|
|
|
|
|
|
|
| Command | Description |
|
|
|
|
|-----------|-------------------------------------------------|
|
|
|
|
| `check` | Check for NaN and Inf values in a NetCDF file |
|
|
|
|
| `reorder` | Convert longitudes from [0, 360] to [-180, 180] |
|
|
|
|
|
|
|
|
### 1. Create a Script for Your Command
|
|
### 1. Create a Script for Your Command
|
|
|
|
|
|
Create a new Python script in the `nes/entrypoints/` directory, such as `my_function.py`.
|
|
Create a new Python script in the `nes/entrypoints/` directory, such as `my_function.py`.
|
... | @@ -74,7 +67,8 @@ def main(): |
... | @@ -74,7 +67,8 @@ def main(): |
|
|
|
|
|
### 5. Update Documentation
|
|
### 5. Update Documentation
|
|
|
|
|
|
Update the [wiki User Guide](UserGuide) with instructions on how to use your new command.
|
|
1. Update the [wiki User Guide](UserGuide) with the new command and its link.
|
|
|
|
2. Create a new wiki page for your command, following the format of existing pages.
|
|
|
|
|
|
### 6. Release
|
|
### 6. Release
|
|
|
|
|
... | @@ -94,4 +88,4 @@ or |
... | @@ -94,4 +88,4 @@ or |
|
python -m nes.entrypoints.cli my_function --option example_value
|
|
python -m nes.entrypoints.cli my_function --option example_value
|
|
```
|
|
```
|
|
|
|
|
|
This will execute the `my_function` command with the specified option. |
|
This will execute the `my_function` command with the specified option. |
|
\ No newline at end of file |
|
|