[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #WLD-888937]: can I suppress printing of the variables block
- Subject: [netCDF #WLD-888937]: can I suppress printing of the variables block
- Date: Fri, 07 Mar 2008 13:29:53 -0700
Hi Rahul,
Sorry it has taken so long to anser your question.
There is currently no way to do what you want just using ncdump, but here's a
trick that
uses sed that is a relatively easy way to suppress the header information:
ncdump -v varname foo.nc | sed '1,/^data:/d'
You could define an alias for this or a little shell script such as "myncdump"
that
could look like this:
#!/bin/sh
ncdump -v $1 $2 | sed '1,/^data:/d'
which you invoke like
myncdump var filename
or
myncdump var1,var2,...,varn filename
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: WLD-888937
Department: Support netCDF
Priority: Normal
Status: Closed