1
- .. _ redefine -command :
1
+ .. _ redefine_graph -command :
2
2
3
- Redefine Command
4
- ===============
3
+ Redefine Graph Command
4
+ ======================
5
5
6
6
With this command, you can redefine the graph of a checkpoint file.
7
7
This is useful when you want to change / reconfigure the local-domain of a model, or rebuild with a new graph.
@@ -21,7 +21,7 @@ Subcommands allow for a graph to be made from a lat/lon coordinate file, boundin
21
21
22
22
.. code-block :: bash
23
23
24
- % anemoi-inference redefine --help
24
+ % anemoi-inference redefine_graph --help
25
25
26
26
Redefine the graph of a checkpoint file.
27
27
@@ -49,19 +49,19 @@ Subcommands allow for a graph to be made from a lat/lon coordinate file, boundin
49
49
Examples
50
50
*********
51
51
52
- Here are some examples of how to use the `redefine ` command:
52
+ Here are some examples of how to use the `redefine_graph ` command:
53
53
54
54
#. Using a graph file:
55
55
56
56
.. code-block :: bash
57
57
58
- anemoi-inference redefine path/to/checkpoint --graph path/to/graph
58
+ anemoi-inference redefine_graph path/to/checkpoint --graph path/to/graph
59
59
60
60
#. Using a graph configuration:
61
61
62
62
.. code-block :: bash
63
63
64
- anemoi-inference redefine path/to/checkpoint --graph_config path/to/graph_config
64
+ anemoi-inference redefine_graph path/to/checkpoint --graph_config path/to/graph_config
65
65
66
66
.. note ::
67
67
The configuration of the existing graph can be found using:
@@ -85,19 +85,19 @@ Here are some examples of how to use the `redefine` command:
85
85
86
86
.. code-block :: bash
87
87
88
- anemoi-inference redefine path/to/checkpoint --latlon path/to/latlon.npy
88
+ anemoi-inference redefine_graph path/to/checkpoint --latlon path/to/latlon.npy
89
89
90
90
#. Using bounding box coordinates:
91
91
92
92
.. code-block :: bash
93
93
94
- anemoi-inference redefine path/to/checkpoint --coords North West South East Resolution
94
+ anemoi-inference redefine_graph path/to/checkpoint --coords North West South East Resolution
95
95
96
96
i.e.
97
97
98
98
.. code-block :: bash
99
99
100
- anemoi-inference redefine path/to/checkpoint --coords 30.0 -10.0 20.0 0.0 0.1/0.1 --global_resolution n320
100
+ anemoi-inference redefine_graph path/to/checkpoint --coords 30.0 -10.0 20.0 0.0 0.1/0.1 --global_resolution n320
101
101
102
102
103
103
All examples can optionally save the updated graph and checkpoint using the `--save-graph ` and `--output ` options.
@@ -114,7 +114,7 @@ Redefine the checkpoint
114
114
115
115
.. code-block :: bash
116
116
117
- anemoi-inference redefine path/to/checkpoint --coords 30.0 -10.0 20.0 0.0 0.1/0.1 --global_resolution n320 --save-graph path/to/updated_graph --output path/to/updated_checkpoint
117
+ anemoi-inference redefine_graph path/to/checkpoint --coords 30.0 -10.0 20.0 0.0 0.1/0.1 --global_resolution n320 --save-graph path/to/updated_graph --output path/to/updated_checkpoint
118
118
119
119
Create the inference config
120
120
---------------------------
@@ -157,4 +157,4 @@ Reference
157
157
:module: anemoi.inference.__main__
158
158
:func: create_parser
159
159
:prog: anemoi-inference
160
- :path: redefine
160
+ :path: redefine_graph
0 commit comments