Link to home
Start Free TrialLog in
Avatar of AndyC1000
AndyC1000

asked on

Convert NETCDF to CSV

Dear all,

I've been looking into this for a while, I'm wondering if anyone has used the netCDF java library or python to read a NETCDF file and convert it to CSV. I haven't used python before, I've downloaded Anaconda.

Would you also have any examples and how difficult would it be to output the data into the table described below.

The data in the NETCDF file is time (date), longitude, latitude and value.  

Longitude,  Latitude,  Date1, Date2 etc
** Values **
** Values **

We can't use Netcdf4excel our machines are 2010 64 bit, also tried nc2text,
http://www.narccap.ucar.edu/data/ascii-howto.html it won't work for us either, each variable would be in a separate file (wrote the VB script to combine them) then when it comes to outputting the *values* it isn't  in a form we can use (comma delimited in a single cell).

I've also looked into these options without success  https://www.unidata.ucar.edu/software/netcdf/software.html#Java interface

I'm using ArcMap however not all the users will have access to the software.

Thanks
SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Walter Ritzel
Walter Ritzel
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AndyC1000
AndyC1000

ASKER

Thanks, I will look into it after I can't go further with Java.

Does anyone have experience using the java netcdf library?



I've opened the file, I'm having troubles finding the data within the object model.
Here's the link for the netcdf java library I'm using.
http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/documentation.htm
None of that helps. You need Linux to run NCL or CDO. Cygwin may or may not work.