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.
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