question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Functions/examples on converting DCPP output to xarray/netCDF structure

See original GitHub issue

This was mentioned by @aaronspring in the scope document. It would be great to have some functions to convert raw DCPP output into climpred-friendly xarray format. I’m not sure if this could be a simple function, since it takes order tens of minutes with dask jobqueue even to do this. Perhaps a few utility functions and a well-written example notebook would be a good start.

@emaroon at NCAR made a notebook using dask to convert our raw CESM-DPLE into a single merged netCDF here: https://gist.github.com/bradyrx/4db8c35f3239f91dc17185441c730137. I could clean this up and make utility functions and test it out on some arbitrary DCPP output from CMIP6. I think we have some sitting on tape on either Cheyenne or Cori.

Any thoughts?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
aaronspringcommented, Nov 6, 2019

https://nbviewer.jupyter.org/github/aaronspring/pymistral/blob/master/notebooks/intake_DCPP.ipynb

We should add a notebook like this to the docs (once the output is available)

0reactions
bradyrxcommented, Feb 28, 2020

This will be added to the docs once we address the bootstrap issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reading and writing files - Xarray
As netCDF files correspond to Dataset objects, these functions internally convert the DataArray to a Dataset before saving, and then convert ...
Read more >
Handling NetCDF Files using XArray for Absolute Beginners
Quick guide to manipulate NetCDF data.
Read more >
The NetCDF NCZarr Implementation
Specifically the XArray ''_ARRAY_DIMENSIONS'' attribute is one such. There are two other, secondary assumption: The actual storage format in which the dataset ...
Read more >
Exploring netCDF Datasets Using the xarray Package
This notebook provides discussion, examples, and best practices for working with netCDF datasets in Python using the xarray package. Topics include: The xarray...
Read more >
Serialization and IO - xarray - Read the Docs
The recommended way to store xarray data structures is netCDF, ... these functions internally convert the DataArray to a Dataset before saving, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found