diff --git a/recipes/cmip6-wrf-wus/meta.yaml b/recipes/cmip6-wrf-wus/meta.yaml index 1d950d7098..f738db65ec 100644 --- a/recipes/cmip6-wrf-wus/meta.yaml +++ b/recipes/cmip6-wrf-wus/meta.yaml @@ -1,43 +1,29 @@ -# Name for dataset. User chosen. -title: 'CMIP6 GCMs downscaled using WRF' -description: 'Downscaling of CMIP6 GCMs conducted at UCLA for the western US over 45km and 9km grid-spacing, and over California and Wyoming for 3km grid-spacing in some cases.' - -# The recipes section tells Pangeo Cloud where to find the recipes within your PR. -# Many recipe PRs will have just 1 recipe, in which case this section will look similar to the example below. -# If your PR contains multiple recipes, you may add additional elements to the list below. +title: CMIP6 GCMs downscaled using WRF +description: >- + Downscaling of CMIP6 GCMs conducted at UCLA for the western US over 45km and + 9km grid-spacing, and over California and Wyoming for 3km grid-spacing in some + cases. recipes: - # User chosen name for recipe. Likely similiar to dataset name, ~25 characters in length - id: cmip6-wrf-wus - # The `object` below tells Pangeo Cloud specifically where your recipe instance(s) are located and uses the format : - # is name of .py file where the Python recipe object is defined. - # For example, if is given as "recipe", Pangeo Cloud will expect a file named `recipe.py` to exist in your PR. - # is the name of the recipe object (i.e. Python class instance) _within_ the specified file. - # For example, if you have defined `recipe = XarrayZarrRecipe(...)` within a file named `recipe.py`, then your `object` below would be `"recipe:recipe"` object: 'recipe:recipe' provenance: - # Data provider object. Follow STAC spec. - # https://github.com/radiantearth/stac-spec/blob/master/collection-spec/collection-spec.md#provider-object providers: - - name: 'UCLA Center for Climate Science' + - name: UCLA Center for Climate Science description: 'University of California, Los Angeles Center for Climate Science' roles: - producer + - processor - licensor - - processor - url: https://dept.atmos.ucla.edu/alexhall/downscaling-cmip6 - - name: 'AWS' - description: 'AWS Sustainability Data Initiative' + url: 'https://dept.atmos.ucla.edu/alexhall/downscaling-cmip6' + - name: AWS + description: AWS Sustainability Data Initiative roles: - host - url: https://registry.opendata.aws/wrf-cmip6/ - # This is a required field for provider. Follow STAC spec - # https://github.com/radiantearth/stac-spec/blob/master/collection-spec/collection-spec.md#license - license: 'CC BY-SA 4.0' + url: 'https://registry.opendata.aws/wrf-cmip6/' + license: CC BY-SA 4.0 maintainers: - # Information about recipe creator. name and github are required - - name: 'Naomi Goldenson' - orcid: '0000-0003-0656-4168' + - name: Naomi Goldenson + orcid: 0000-0003-0656-4168 github: thenaomig - bakery: - id: 'pangeo-ldeo-nsf-earthcube' + id: pangeo-ldeo-nsf-earthcube diff --git a/recipes/cmip6-wrf-wus/recipe.py b/recipes/cmip6-wrf-wus/recipe.py index c8a24eba7c..a71c72bc74 100644 --- a/recipes/cmip6-wrf-wus/recipe.py +++ b/recipes/cmip6-wrf-wus/recipe.py @@ -1,10 +1,9 @@ -from pangeo_forge_recipes.recipes import HDFReferenceRecipe, setup_logging +from pangeo_forge_recipes.recipes import HDFReferenceRecipe from pangeo_forge_recipes.patterns import ConcatDim, FilePattern import pandas as pd -import xarray as xr -import fsspec -URL_FORMAT = 's3://wrf-cmip6-noversioning/downscaled_products/gcm/cesm2_r11i1p1f1_ssp370/hourly/{Time:%Y}/d02/auxhist_d01_{Time:%Y-%m-%d_%X}' +URL_FORMAT = ('s3://wrf-cmip6-noversioning/downscaled_products/gcm/cesm2_r11i1p1f1_ssp370/' + 'hourly/{Time:%Y}/d02/auxhist_d01_{Time:%Y-%m-%d_%X}') times = pd.date_range('2014-09-01', '2100-08-31 23:00', freq='H')