8000 Add xray.save_mfdataset by shoyer · Pull Request #450 · pydata/xarray · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add xray.save_mfdataset #450

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

Merged
merged 2 commits into from
Jul 6, 2015
Merged

Add xray.save_mfdataset #450

merged 2 commits into from
Jul 6, 2015

Conversation

shoyer
Copy link
Member
@shoyer shoyer commented Jul 2, 2015

This function allows for saving multiple datasets to disk simultaneously, which
is useful when processing large datasets with dask.array. For example, to save
a dataset too big to fit into memory to one file per year, we could write:

>>> years, datasets = zip(*ds.groupby('time.year'))
>>> paths = ['%s.nc' % y for y in years]
>>> xray.save_mfdataset(datasets, paths)

This function allows for saving multiple datasets to disk simultaneously, which
is useful when processing large datasets with dask.array. For example, to save
a dataset too big to fit into memory to one file per year, we could write:

	>>> years, datasets = zip(*ds.groupby('time.year'))
    >>> paths = ['%s.nc' % y for y in years]
    >>> xray.save_mfdataset(datasets, paths)
@shoyer shoyer changed the title Add xray.save_mfdataset Add xray.store_mfdataset Jul 2, 2015
@shoyer shoyer changed the title Add xray.store_mfdataset Add xray.save_mfdataset Jul 6, 2015
@shoyer shoyer added this to the 0.5.2 milestone Jul 6, 2015
shoyer added a commit that referenced this pull request Jul 6, 2015
@shoyer shoyer merged commit bf55bfd into pydata:master Jul 6, 2015
@shoyer shoyer deleted the save_mfdataset branch July 6, 2015 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0