[netcdfgroup] netcdfgroup Digest, Vol 32, Issue 1

David Brown dbrown at ucar.edu
Tue Nov 27 12:14:03 MST 2007


Hi Ben,

It sounds like ncl_filedump (a stand-alone script packaged with NCL)  
will do what you want:

$ ncl_filedump -v xxx,lat isscp.nc
  Copyright (C) 1995-2007 - All Rights Reserved
  University Corporation for Atmospheric Research
  NCAR Command Language Version 5.0.0
  The use of this software is governed by a License Agreement.
  See http://www.ncl.ucar.edu/ for more details.
Variable: f (file variable)

filename:       isscp
path:   isscp.nc
    file global attributes:
       description : ISSCP reduced grid
    dimensions:
       nodes = 6596
    variables:
       float lon ( nodes )
          units :        degrees east
          long_name :    longitude

       float lat ( nodes )
          units :        degrees north
          long_name :    latitude

       float topo ( nodes )
          units :        meters above sea level (I think)
          long_name :    topology


Variables:

${progname}: error: 'xxx' is not a variable in 'isscp.nc'.
      lat:

   -88.75      -88.75      -88.75      -86.25      -86.25      -86.25
   -86.25      -86.25      -86.25      -86.25      -86.25      -86.25
....

   -dave
  Dave Brown -- NCL development team

On Nov 27, 2007, at 12:00 PM, netcdfgroup-request at unidata.ucar.edu  
wrote:

> Send netcdfgroup mailing list submissions to
> 	netcdfgroup at unidata.ucar.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit:
>         http://www.unidata.ucar.edu/mailing_lists/
>
> or, via email, send a message with subject or body 'help' to
> 	netcdfgroup-request at unidata.ucar.edu
>
> You can reach the person managing the list at
> 	netcdfgroup-owner at unidata.ucar.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of netcdfgroup digest..."
>
>
> Today's Topics:
>
>    1. smart ncdump? (Ben Foster)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 27 Nov 2007 08:52:59 -0700 (MST)
> From: Ben Foster <foster at hao.ucar.edu>
> Subject: [netcdfgroup] smart ncdump?
> To: netcdfgroup at unidata.ucar.edu
> Cc: foster at jabba.hao.ucar.edu
> Message-ID: <200711271553.lARFqxx23445 at jabba.hao.ucar.edu>
> Content-Type: TEXT/plain; charset=us-ascii
>
>
>
> Netcdf group:
>
> I find it annoying when ncdump stops if a variable in the -v list
> is not found on the file. It would be better if it just printed a
> warning and continued. Because of this I have to customize ncdump
> commands for different project files.  I could certainly write my
> own ncdump code w/ IDL or some other language, but it might help
> others if ncdump could be improved in this way. Does anyone know
> if such a "smart" ncdump already exists?
>
> --Ben
>
> ---------------------------------------------------------------------- 
> -
> Ben Foster		      	High Altitude Observatory (HAO)
> foster at ucar.edu			phone: 303-497-1595  fax: 303-497-1589
> Nat. Center for Atmos. Res.     P.O. Box 3000 Boulder CO 80307 USA
> ---------------------------------------------------------------------- 
> -
>
>
>
>
> ------------------------------
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup at unidata.ucar.edu
> For list information or to unsubscribe,  visit: http:// 
> www.unidata.ucar.edu/mailing_lists/
>
>
> End of netcdfgroup Digest, Vol 32, Issue 1
> ******************************************



More information about the netcdfgroup mailing list