Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

[netcdfgroup] netcdf to csv

This must be a fairly common problem/question, but I wasn't able to find a
good solution after much googling.

I am about to run an R script that currently expects to read .csv. It was
easier for me to prepare the input data in netcdf, but now I'm finding it
difficult to convert to .csv. I could read the .nc files into R, but as I
understand it I would have to read in one variable at a time (20 variables)
and then rebuild them into a dataframe, whereas if I could convert to .csv,
they would all be read in.

My .nc files are ~80MB, not too huge for .csv. I have ncdumped them to text
files, and I'm planning to write a script to parse them - unless someone
has an easier/faster solution.

Actually, I'm *really* hoping someone has an easier/faster solution. My
data and models are on a Mac, but I have access to PC or linux.

Thanks in advance...

Elizabeth
____________________
Elizabeth Crisfield
Research Assistant
Geography Department
Penn State University
phone 814-777-3395
eac16@xxxxxxx
www.elizabethcrisfield.com
  • 2012 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: