Tom<div><br></div><div>Are u aware of netCDF4 Python from Jeff Whitaker? </div><div><br></div><div>Lou<br><br>On Monday, June 15, 2015, Tom Roche <<a href="mailto:Tom_Roche@pobox.com">Tom_Roche@pobox.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
For those who haven't heard already, xray[1] appears to be a "pythonic rewrite" (my characterization) of netCDF, both API and datastructures. Not sure how this relates/competes with the PyNIO/netCDF stack, but I have asked in the comments to this interesting blogpost[2] on xray+dask[3]. I'd like to know:<br>
<br>
1. Suppose a team is starting to work on netCDF-based earth-science data and planning to develop as much as possible in Python. Why should they base their code on PyNIO vs xray? What does PyNIO do better than xray?<br>
<br>
2. xray seems to be targeting pandas[4] integration, which seems compelling to me as someone seeking to migrate from a {bash, NCL, Python, R} stack to more/all-python. So (apologies for the corporate-speak) I'd like to know "what is NCAR's story" WRT PyNIO/pandas integration?<br>
<br>
3. IIUC (but ICBW, please correct where wrong) a major reason to choose R over Python/pandas for work on netCDF-based data is that pandas operations on dataframes (at least currently) don't conserve netCDF metadata the way R operations on dataframes do. (If I'm missing something, please lemme know.) If so, I'd appreciate knowing more about any plans "the netCDF folks" have for improving/extending pandas to solve this problem.<br>
<br>
Apologies if<br>
<br>
* I've lumped too much in one thread<br>
<br>
* I've asked questions here that should better be asked elsewhere. If so, please point me to the more appropriate channel.<br>
<br>
TIA, Tom Roche <<a href="javascript:;" onclick="_e(event, 'cvml', 'Tom_Roche@pobox.com')">Tom_Roche@pobox.com</a>><br>
<br>
[1]: <a href="http://xray.readthedocs.org/en/stable/" target="_blank">http://xray.readthedocs.org/en/stable/</a><br>
[2]: <a href="http://eng.climate.com/2015/06/11/xray-dask-out-of-core-labeled-arrays-in-python/" target="_blank">http://eng.climate.com/2015/06/11/xray-dask-out-of-core-labeled-arrays-in-python/</a><br>
[3]: <a href="http://dask.pydata.org/en/latest/" target="_blank">http://dask.pydata.org/en/latest/</a><br>
[4]: <a href="http://pandas.pydata.org/" target="_blank">http://pandas.pydata.org/</a><br>
_______________________________________________<br>
pyngl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br>
</blockquote></div><br><br>-- <br><div style="font-family:Helvetica;font-size:medium"><div>----------------------------------------------------------------------------</div><div>| Dr. Louis J. Wicker</div><div>| NSSL/FRDD Rm 4368</div><div>| National Weather Center<br><div>| 120 David L. Boren Boulevard, Norman, OK 73072</div><div>|</div></div><div>| E-mail: <a href="mailto:Louis.Wicker@noaa.gov" target="_blank">Louis.Wicker@noaa.gov</a></div><div>| HTTP: <a href="http://www.nssl.noaa.gov/~lwicker" target="_blank">www.nssl.noaa.gov/~lwicker</a></div><div>| Phone: (405) 325-6340</div><div>| Fax: (405) 325-6780</div><div>|</div><div><span style="border-collapse:separate;border-spacing:0px"><div style="word-wrap:break-word">| "...In fact the hardest part of research is always to </div><div style="word-wrap:break-word">| find a question that's big enough thats worth answering </div><div style="word-wrap:break-word">| but little enough that you actually can answer it." </div><div style="word-wrap:break-word">|</div><div style="word-wrap:break-word">| Professor Ed Witten (2012)</div><div><br></div></span></div><div>|</div><div></div><div>----------------------------------------------------------------------------</div></div><div style="font-family:Helvetica;font-size:medium"><div>|</div><div>| "The contents of this message are mine personally and </div><div>| do not reflect any position of the Government or NOAA."</div><div>|</div><div>----------------------------------------------------------------------------</div></div><br>