Skip to content

ENH: NETCDF4 in pandas #18

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

Closed
jreback opened this issue Feb 25, 2014 · 2 comments
Closed

ENH: NETCDF4 in pandas #18

jreback opened this issue Feb 25, 2014 · 2 comments

Comments

@jreback
Copy link

jreback commented Feb 25, 2014

see this related issue: pandas-dev/pandas#5487

this is actually not hard to do, and might allow you to push some of your backends to pandas.

@akleeman
Copy link
Contributor

@jreback I'll spend some time getting a better feel for how/if we could push some of the backend into pandas' HDFStore. Certainly, we'd like to leverage other more powerful packages (pandas, numpy) as much as possible. Thanks for the suggestion.

@shoyer
Copy link
Member

shoyer commented Apr 23, 2014

I'm going to close this, given that pandas doesn't currently have appropriate data structures for representing arbitrary dimensional NetCDF variables. These data structures (N-dimensional labeled arrays like xray.DataArray) are a major motivation for why we wrote xray.

You can represent higher dimensional arrays as a pandas.Series with a hierarchical index, but this representation has a much less directly connection to NetCDF datasets on disk. I think it makes more sense to make the objects in xray first (since our data models basically matches netCDF), and then convert xray Datasets into pandas DataFrames. We do in fact support this via the to_series and to_dataframe methods, e.g., xray.open_dataset('foo.nc').to_dataframe().

That said, I am not opposed to integrating some or all of xray into pandas -- but that's a much bigger discussion.

@shoyer shoyer closed this as completed Apr 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants