NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Gordon, The Ferret program (http://www.ferret.noaa.gov/) can do this. It's not a "basic utility" -- rather a full analysis and visualization application -- but with two commands it can do the conversion. With another couple of commands it can capture and use the column headings as the variable names. You can also go the next steps to create a proper CF-conformant netCDF file by capturing one of the variable (typically time or depth) as the netCDF "coordinate" variable of the file. - Steve ============================================= Gordon Keith wrote:
Is there a program available to convert CSV files to netcdf format? We are finding netcdf a useful format for accessing data and it would be good to be able to convert data that arrives in CSV (Comma Separated Variable) format to basic netcdf files. I'm thinking a basic utility that reads a CSV file, uses the first row as variable names, uses the second row to determine data types, and puts the data from the file into a CSV file. It occurs to me that such a utility shouldn't be too hard to write, so someone has probably done it. Regards Gordon -- Gordon Keith Programmer/Data Analyst Marine Acoustics CSIRO Marine and Atmospheric Research http://www.cmar.csiro.au Machines running Windows are by far the most popular, with about 90% machines in use worldwide. Linux users, on the other hand, may note that cockroaches are far more numerous than humans, and that numbers alone do not denote a higher life form. _______________________________________________ netcdfgroup mailing list netcdfgroup@xxxxxxxxxxxxxxxx For list information or to unsubscribe, visit:
http://www.unidata.ucar.edu/mailing_lists/
-- Steve Hankin, NOAA/PMEL -- Steven.C.Hankin@xxxxxxxx 7600 Sand Point Way NE, Seattle, WA 98115-0070 ph. (206) 526-6080, FAX (206) 526-6744 "The only thing necessary for the triumph of evil is for good men to do nothing." -- Edmund Burke
netcdfgroup
archives: