Skip to content
New issue

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

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

Already on GitHub? # to your account

add Aaron's tweet example to docs #37

Closed
raybellwaves opened this issue Jun 9, 2021 · 2 comments · Fixed by #40
Closed

add Aaron's tweet example to docs #37

raybellwaves opened this issue Jun 9, 2021 · 2 comments · Fixed by #40

Comments

@raybellwaves
Copy link
Contributor

I added a minor tweak here to use cfVarName which matches the name of the returned DataArray.

url = "simplecache::https://www.ncei.noaa.gov/thredds/catalog/model-gefs-003/202008/20200831/catalog.xml"
intake.open_thredds_merged(
    url,
    path=["NCEP gens-a Grid 3 Member-Forecast *-372 for 2020-08-31 00:00*"],
    driver="netcdf",
    concat_kwargs={"dim": "member"},
    xarray_kwargs=dict(
        engine="cfgrib",
        backend_kwargs=dict(
            filter_by_keys={"typeOfLevel": "heightAboveGround", "cfVarName": "t2m"}
        ),
    ),
).to_dask()
@aaronspring
Copy link
Collaborator

please go ahead and open a PR adding this example. then afterwards we can release IMO

@aaronspring
Copy link
Collaborator

even better to use concat_kwargs={"dim": "number"}, # because thats the coord name already

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants