Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDP #186

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

GDP #186

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions recipes/gdp-drifters/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
title: 'Global Drifter Program'
description: >
This dataset includes hourly sea surface temperature and current data collected by satellite-tracked
surface drifting buoys ("drifters") of the NOAA Global Drifter Program. The Drifter Data Assembly Center (DAC)
at NOAA’s Atlantic Oceanographic and Meteorological Laboratory (AOML) has applied quality control procedures
and processing to edit these observational data and obtain estimates at regular hourly intervals.
The data include positions (latitude and longitude), sea surface temperatures (total, diurnal, and non-diurnal components)
and velocities (eastward, northward) with accompanying uncertainty estimates. Metadata include identification numbers,
experiment number, start location and time, end location and time, drogue loss date, death code, manufacturer, and drifter type.
pangeo_forge_version: '0.9'
recipes:
- id: gdp-hourly
object: 'recipe:recipe'
provenance:
providers:
- name: 'NOAA AOML'
description: 'National Oceanographic & Atmospheric Administration Atlantic Oceanographic and Meteorological Laboratory'
roles:
- producer
- licensor
url: https://www.aoml.noaa.gov/phod/gdp/hourly_data.php
license: 'Proprietary'
maintainers:
- name: 'Ryan Abernathey'
orcid: '0000-0001-5999-4917'
github: rabernat
bakery:
id: 'pangeo-ldeo-nsf-earthcube'
10 changes: 10 additions & 0 deletions recipes/gdp-drifters/recipe.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from pangeo_forge_recipes.patterns import pattern_from_file_sequence
from pangeo_forge_recipes.recipes import XarrayZarrRecipe

url = 'https://www.nodc.noaa.gov/archive/arc0199/0248584/1.1/data/0-data/gdp_v2.00.nc'

pattern = pattern_from_file_sequence([url], 'time')

recipe = XarrayZarrRecipe(
pattern, subset_inputs={'time': 100}, xarray_open_kwargs={'decode_coords': 'all'}
)