Cube-to-CSV?

195 views
Skip to first unread message

Ag Stephens

unread,
Apr 5, 2017, 3:36:09 AM4/5/17
to scitoo...@googlegroups.com
Hi all,

Some of my/our users like to work with CSV files and Excel as their data management tool. I know it is an age-old issue that there is no standard for CSV (other than "do use commas") so it is not possible to provide a generic cube-to-csv converter.

However, I suspect that some Iris users have produced libraries to formalise some conversions between cubes and specific CSV outputs. Please share any experience you have on this.

Many thanks,

Ag

Andrew Dawson

unread,
Apr 5, 2017, 4:51:35 AM4/5/17
to Iris
I suspect the easiest route to this is to convert a cube to a pandas dataframe and use the CSV writing capabilities of pandas to write the required output.

http://scitools.org.uk/iris/docs/latest/iris/iris/pandas.html

Ag Stephens

unread,
Apr 5, 2017, 7:18:10 AM4/5/17
to Andrew Dawson, Iris
Thanks Andrew,

I will take a look at the interface between Iris and Pandas - looks like a good starting point.

Cheers,

Ag

On 5 April 2017 at 09:51, Andrew Dawson <ajd...@gmail.com> wrote:
I suspect the easiest route to this is to convert a cube to a pandas dataframe and use the CSV writing capabilities of pandas to write the required output.

http://scitools.org.uk/iris/docs/latest/iris/iris/pandas.html

--
You received this message because you are subscribed to the Google Groups "Iris" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scitools-iris+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages