Skip to content

Commit 404e827

Browse files
committed
Merge branch 'main' into components
2 parents 3b450b5 + 11397b2 commit 404e827

18 files changed

+1470
-255
lines changed

.github/workflows/sphinx_docs_to_gh_pages.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ name: Build Sphinx Docs
33
on:
44
push:
55
branches:
6-
- docs
6+
- main
77

88
jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- name: Checkout repo
13+
uses: actions/checkout@v3
1314
- name: Set up Python
1415
uses: actions/setup-python@v3
1516
with:
1617
python-version: "3.10"
1718
- name: Install dependencies
1819
run: |
19-
sudo apt install pandoc gfortran
20+
sudo apt install pandoc
2021
python -m pip install --upgrade pip
2122
pip install .
2223
pip install -r docs/requirements.txt

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ recursive-include rompy *.png
88
recursive-include docs/source *
99
include docs/Makefile docs/make.bat
1010

11-
recursive-include templates *
11+
recursive-include rompy/templates *
1212

1313
include versioneer.py
1414
include rompy/_version.py

notebooks/oceanum_datamesh_demo.yml

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Note that this is config demonstrates a full model
2+
# example running off the coast of Raglan. It uses
3+
# era5 wind forcing, and spectral boundaries from
4+
# oceanum's global hindcast. These datasets are
5+
# read from the oceanum catalog
6+
7+
run_id: oceanum
8+
period:
9+
start: 20230101T00
10+
duration: 6h
11+
interval: 1h
12+
output_dir: simulations
13+
config:
14+
model_type: swan
15+
grid:
16+
x0: 174.60
17+
y0: -37.95
18+
rot: 10.0
19+
dx: 0.02
20+
dy: 0.02
21+
nx: 20
22+
ny: 20
23+
gridtype: REG
24+
spectral_resolution:
25+
fmin: 0.0464
26+
fmax: 1.0
27+
nfreqs: 31
28+
ndirs: 36
29+
forcing:
30+
wind:
31+
model_type: swan
32+
id: wind
33+
var: WIND
34+
dataset:
35+
model_type: datamesh
36+
dataset_id: era5_wind10m
37+
token: null # Use a Datamesh token here if not in your environment
38+
filter:
39+
sort:
40+
coords: [latitude]
41+
z1: u10
42+
z2: v10
43+
latname: latitude
44+
lonname: longitude
45+
bottom:
46+
id: bottom
47+
var: BOTTOM
48+
dataset:
49+
model_type: intake
50+
catalog_uri: ../rompy/catalogs/oceanum.yaml
51+
dataset_id: gebco_2022
52+
fac: -1.0
53+
z1: elevation
54+
latname: lat
55+
lonname: lon
56+
boundary:
57+
id: bnd
58+
dataset:
59+
model_type: intake
60+
catalog_uri: ../rompy/catalogs/oceanum.yaml
61+
dataset_id: oceanum_wave_nz_era5_v1_spec
62+
# dataset_id: oceanum_wave_glob05_era5_v1_spec
63+
latname: lat
64+
lonname: lon
65+
tolerance: 0.1
66+
spacing: 0.01
67+
sel_method: idw
68+
rectangle: closed
69+
physics:
70+
friction: "MAD"
71+
friction_coeff: 0.1
72+
outputs:
73+
grid:
74+
variables:
75+
- DEPTH
76+
- UBOT
77+
- HSIGN
78+
- HSWELL
79+
- DIR
80+
- TPS
81+
- TM01
82+
- WIND
83+
spec:
84+
locations:
85+
coords:
86+
- lon: 174.61
87+
lat: -37.96
88+
- lon: 174.62
89+
lat: -37.96
90+
- lon: 174.62
91+
lat: -37.97
92+

notebooks/oceanum_example_datamesh.ipynb

+893
Large diffs are not rendered by default.

requirements.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
click
2+
cloudpathlib
13
cookiecutter
24
dask
35
fsspec
@@ -9,15 +11,12 @@ intake-geopandas
911
matplotlib
1012
netcdf4
1113
numpy
14+
oceanum
1215
owslib
1316
pandas
1417
pydantic
18+
pydantic_numpy
1519
scipy
1620
tqdm
1721
xarray
18-
pydantic
19-
pydantic_numpy
20-
pathlib
21-
cloudpathlib
22-
Click
2322
wavespectra

rompy/core/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from .config import BaseConfig
2-
from .data import DataBlob, DataGrid, Dataset, DatasetIntake, DatasetXarray
2+
from .data import DataBlob, DataGrid, SourceDataset, SourceFile, SourceIntake, SourceDatamesh
33
from .filters import *
44
from .grid import BaseGrid, RegularGrid
55
from .time import TimeRange

0 commit comments

Comments
 (0)