Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thenaomig committed Jan 13, 2023
1 parent 9b5d6ba commit f778a77
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 33 deletions.
44 changes: 15 additions & 29 deletions recipes/cmip6-wrf-wus/meta.yaml
Original file line number Diff line number Diff line change
@@ -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 <filename>:<object_name>
# <filename> is name of .py file where the Python recipe object is defined.
# For example, if <filename> is given as "recipe", Pangeo Cloud will expect a file named `recipe.py` to exist in your PR.
# <object_name> 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
7 changes: 3 additions & 4 deletions recipes/cmip6-wrf-wus/recipe.py
Original file line number Diff line number Diff line change
@@ -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')

Expand Down

0 comments on commit f778a77

Please sign in to comment.