Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

ncdump dates

Hi All,

     A version of ncdump by Hoop used to be able to convert ncdump dates into
dates that can be read easily.  I lost that functionality recently, and the
cdcncdump was hard to compile using a newer version of netCDF.  I wrote a
short program that filters the output of ncdump and replaces the dates using
udunits.  It seems to work for NCEP Reanalysis data files.  A perl script
illustrates how it could be used on multiple NetCDF files:

#!/usr/bin/perl -w
for ($a = 0; $a < scalar(@ARGV); $a++) {
  $command = "ncdump -c $ARGV[$a] | read.ncdump\n";
  system($command);
}

In case there are others in the same boat, the "read.ncdump.c" is available
in the contributed netCDF software catalog:

  http://www.unidata.ucar.edu/packages/netcdf/Contrib.html

Cheers,                                   
Rick Danielson

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690