This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge Release 0.4.2 pull request #97 from ecmwf/develop
Release 0.4.2
- Loading branch information
Showing
12 changed files
with
363 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
####################################### | ||
From latitude & longitude coordinates | ||
####################################### | ||
|
||
Nodes can also be created directly using latitude and longitude | ||
coordinates. Below is an example demonstrating how to add these nodes to | ||
a graph: | ||
|
||
.. code:: python | ||
from anemoi.graphs.nodes import LatLonNodes | ||
... | ||
lats = np.array([45.0, 45.0, 40.0, 40.0]) | ||
lons = np.array([5.0, 10.0, 10.0, 5.0]) | ||
graph = LatLonNodes(latitudes=lats, longitudes=lons, name="my_nodes").update_graph(graph) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
################ | ||
From text file | ||
################ | ||
|
||
To define the `node coordinates` based on a `.txt` file, you can | ||
configure the `.yaml` as follows: | ||
|
||
.. code:: yaml | ||
nodes: | ||
data: # name of the nodes | ||
node_builder: | ||
_target_: anemoi.graphs.nodes.TextNodes | ||
dataset: my_file.txt | ||
idx_lon: 0 | ||
idx_lat: 1 | ||
Here, dataset refers to the path of the `.txt` file that contains the | ||
latitude and longitude values in the columns specified by `idx_lat` and | ||
`idx_lon`, respectively. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.