This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Martin, > To: address@hidden > From: Martin Vill <address@hidden> > Subject: netCDFPerl > Organization: UCAR/Unidata > Keywords: 200009281313.e8SDDJb03929 The above message contained the following: > Hello Steve > I am an austrian student and currently working in my master's thesis > with aircraft data (NCAR Electra aircraft - MAP SOP 1999). This data I > have available in a net CDF format (you can view the original > 803rf04.cdf file at the URL > http://raf.atd.ucar.edu/Projects/MAP/ftp_log.html, I didn't dare to send > you such a huge file). I am only interested in a few parameters and with > those parameters I only can work under MATLAB if they are organised in > rows and lines (each row another parameter, each line another value > measured the following second). For this purpose I first of all cut the > header (manually scrolling and pasting and deleting) where all the > parameter information is listed. The result was a netCDF file with data > only. From this file I extracted (with a Perl Program) all the > parameters I intend to use and organised them as described in lines and > rows (see the attachment file data_only.form as the result). Today I > fell on the > URL http://www.unidata.ucar.edu/packages/netcdf-perl/README and read > about netCDFPerl and asked myself if with its help there isn't a much > simplier possibility reaching my aim (a file organised like > data_only.form). > > Please could you try to answer my questions: > a) Which method (more automatically I did) I can use to cut the header > from the data only part having the data only part left? > > b) Is there a simplier procedure than writing a whole Perl program to > have the data (or only a few selctable parameters) organised in rows and > lines as I described earlier? I suggest that you look into using the MATLAB interface for netCDF. It's available at the following URL http://crusty.er.usgs.gov/mexcdf.html Regards, Steve Emmerson <http://www.unidata.ucar.edu>