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.
Unidata Support <address@hidden> writes: > ------- Forwarded Message > >>To: <address@hidden> >>From: "David Fitzgerald" <address@hidden> >>Subject: NetCDF to ascii table >>Organization: UCAR/Unidata >>Keywords: 200506272019.j5RKJpNi028612 > > This is a multi-part message in MIME format. > > ------_=_NextPart_001_01C57B55.92802919 > Content-Type: text/plain; > charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > Hi, > > =20 > > I have some data in NetCDF format that I need to convert to ascii. I am > aware of ncdump and ncks, but I don't see how they can help me in my > case. The data I have is from a WRF output and is for multiple times > and levels, and I need to pull out four variables for only one > time/level. Ideally I'd like to pull out , XLAT, XLONG, RAINNC and W > for each grid point in the file, and put the data in an ascii text file > in a tabular form such as: > > =20 > > XLAT(0) XLONG(0) RAINNC(0) W(0) > > XLAT(1) XLONG(1) RAINNC(1) W(1) > > XLAT(2) XLONG(2) RAINNC(2) W(2) > > Etc. > > =20 > > I can only get ncdump and ncks to print the variables out one at a time. > Is there a script/utility out there that can do this already, or do I > need to write my own code? And I HATE writing code! :-) > > =20 > > Thanks for any help you can give! > > =20 > > Dave > > =20 > > =20 > > ********************************************* > > David Fitzgerald > > Distributed System Specialist II > > Millersville University > > Millersville PA 17551 > > Phone: 717-871-2394 > > Fax: 717-871-4725 > > E-mail: address@hidden > > =20 > > Oh, so they have internet on computers now!=20 > > -- Homer Simpson Dave, For tool information I suggest you look at: http://www.gfdl.noaa.gov/products/vis/data/netcdf/index.html There's a much longer list here: http://www.unidata.ucar.edu/packages/netcdf/software.html If you hate programming, you really will want to get some tools besides ncdump/ncgen. Good luck! Let me know if you need more help. Ed -- Ed Hartnett -- address@hidden