From a32e84e224b31e5ace3d6d9d5236114b106f6ef6 Mon Sep 17 00:00:00 2001 From: Rich Signell Date: Sat, 16 Jul 2022 18:11:04 -0500 Subject: [PATCH 1/5] adding liveocean recipe --- recipes/liveocean/meta.yaml | 32 ++++++++++++++++++++++++++++++++ recipes/liveocean/recipe.py | 18 ++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 recipes/liveocean/meta.yaml create mode 100644 recipes/liveocean/recipe.py diff --git a/recipes/liveocean/meta.yaml b/recipes/liveocean/meta.yaml new file mode 100644 index 0000000000..18174ef7bd --- /dev/null +++ b/recipes/liveocean/meta.yaml @@ -0,0 +1,32 @@ +title: "NANOOS LiveOcean ROMS Model" +description: > + The experimental nowcast and forecast fields displayed here from LiveOcean are produced by + a computer model of NE Pacific coastal ocean circulation. These coastal ocean forecasts are updated + daily. They are an experimental product intended for research use only. For more information please + visit the LiveOcean webpage. +pangeo_forge_version: "0.9.0" +pangeo_notebook_version: "2022.07.16" +recipes: + - id: liveocean + object: "recipe:recipe" +provenance: + providers: + - name: "University of Washington" + description: "University of Washington" + roles: + - host + - licensor + url: https://faculty.washington.edu/pmacc/LO/LiveOcean.html + - name: "University of Washington" + description: > + University of Washington + roles: + - producer + url: https://faculty.washington.edu/pmacc/LO/LiveOcean.html + license: "No constraints on data access or use." +maintainers: + - name: "Rich Signell" + orcid: "0000-0003-0682-9613" + github: rsignell +bakery: + id: "pangeo-ldeo-nsf-earthcube" diff --git a/recipes/liveocean/recipe.py b/recipes/liveocean/recipe.py new file mode 100644 index 0000000000..003d54b72a --- /dev/null +++ b/recipes/liveocean/recipe.py @@ -0,0 +1,18 @@ +from pangeo_forge_recipes.patterns import pattern_from_file_sequence + +import fsspec + +fs = fsspec.filesystem('s3', anon=True, client_kwargs={'endpoint_url': 'https://mghp.osn.xsede.org'}) + +all_paths = sorted(fs.glob('s3://rsignellbucket1/LiveOcean/*.nc')) + +pattern = pattern_from_file_sequence(['s3://' + path for path in all_paths], 'ocean_time') + +from pangeo_forge_recipes.recipes.reference_hdf_zarr import HDFReferenceRecipe + +recipe = HDFReferenceRecipe( + pattern, + netcdf_storage_options={"anon": True, 'client_kwargs':{'endpoint_url': 'https://mghp.osn.xsede.org'}}, + identical_dims=['lat_psi','lat_rho','lat_u','lat_v','lon_psi','lon_rho','lon_u','lon_v'], +) + From 2d24dae759c2d607553b52a7f043ff23aa424302 Mon Sep 17 00:00:00 2001 From: Rich Signell Date: Mon, 18 Jul 2022 06:22:01 -0400 Subject: [PATCH 2/5] modifying provider info for Parker MacCready --- recipes/liveocean/meta.yaml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/recipes/liveocean/meta.yaml b/recipes/liveocean/meta.yaml index 18174ef7bd..bb9c0f57a8 100644 --- a/recipes/liveocean/meta.yaml +++ b/recipes/liveocean/meta.yaml @@ -1,29 +1,23 @@ title: "NANOOS LiveOcean ROMS Model" description: > - The experimental nowcast and forecast fields displayed here from LiveOcean are produced by - a computer model of NE Pacific coastal ocean circulation. These coastal ocean forecasts are updated - daily. They are an experimental product intended for research use only. For more information please - visit the LiveOcean webpage. + Hourly ocean forecast fields of the NE Pacific, produced by a Regional Ocean Modeling System (ROMS) computer model, + updated daily. This is an experimental product intended for research use only. For more information please + visit the LiveOcean webpage: https://faculty.washington.edu/pmacc/LO/LiveOcean.html pangeo_forge_version: "0.9.0" -pangeo_notebook_version: "2022.07.16" +pangeo_notebook_version: "2022.07.13" recipes: - id: liveocean object: "recipe:recipe" provenance: providers: - - name: "University of Washington" - description: "University of Washington" + - name: "Parker MacCready" + orcid: "0000-0002-8070-8062" + github: parkermac roles: - - host + - provider - licensor url: https://faculty.washington.edu/pmacc/LO/LiveOcean.html - - name: "University of Washington" - description: > - University of Washington - roles: - - producer - url: https://faculty.washington.edu/pmacc/LO/LiveOcean.html - license: "No constraints on data access or use." + license: "CC0" maintainers: - name: "Rich Signell" orcid: "0000-0003-0682-9613" From 6645efc0ea7252c98ea112dc9200befb9d787921 Mon Sep 17 00:00:00 2001 From: Rich Signell Date: Mon, 18 Jul 2022 06:26:14 -0400 Subject: [PATCH 3/5] Update meta.yaml --- recipes/liveocean/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/liveocean/meta.yaml b/recipes/liveocean/meta.yaml index bb9c0f57a8..9db9ed7e54 100644 --- a/recipes/liveocean/meta.yaml +++ b/recipes/liveocean/meta.yaml @@ -11,6 +11,7 @@ recipes: provenance: providers: - name: "Parker MacCready" + description: "Parker MacCready, Professor, University of Washington" orcid: "0000-0002-8070-8062" github: parkermac roles: From 5a4367b198622f45411f74804262061cb4063baf Mon Sep 17 00:00:00 2001 From: Charles Stern <62192187+cisaacstern@users.noreply.github.com> Date: Wed, 20 Jul 2022 10:59:25 -0700 Subject: [PATCH 4/5] downgrade recipes version for cloud environment --- recipes/liveocean/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/liveocean/meta.yaml b/recipes/liveocean/meta.yaml index 9db9ed7e54..a247bbed38 100644 --- a/recipes/liveocean/meta.yaml +++ b/recipes/liveocean/meta.yaml @@ -3,7 +3,7 @@ description: > Hourly ocean forecast fields of the NE Pacific, produced by a Regional Ocean Modeling System (ROMS) computer model, updated daily. This is an experimental product intended for research use only. For more information please visit the LiveOcean webpage: https://faculty.washington.edu/pmacc/LO/LiveOcean.html -pangeo_forge_version: "0.9.0" +pangeo_forge_version: "0.8.3" pangeo_notebook_version: "2022.07.13" recipes: - id: liveocean From 149521f3017c54cb4d4af6d4af1d9069bce3cf06 Mon Sep 17 00:00:00 2001 From: Charles Stern <62192187+cisaacstern@users.noreply.github.com> Date: Wed, 20 Jul 2022 13:11:17 -0700 Subject: [PATCH 5/5] bump back to 0.9.0 for dataflow --- recipes/liveocean/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/liveocean/meta.yaml b/recipes/liveocean/meta.yaml index a247bbed38..9db9ed7e54 100644 --- a/recipes/liveocean/meta.yaml +++ b/recipes/liveocean/meta.yaml @@ -3,7 +3,7 @@ description: > Hourly ocean forecast fields of the NE Pacific, produced by a Regional Ocean Modeling System (ROMS) computer model, updated daily. This is an experimental product intended for research use only. For more information please visit the LiveOcean webpage: https://faculty.washington.edu/pmacc/LO/LiveOcean.html -pangeo_forge_version: "0.8.3" +pangeo_forge_version: "0.9.0" pangeo_notebook_version: "2022.07.13" recipes: - id: liveocean