netcdf to ascii conversion

From: Debasish Pai Mazumder <debasish_at_nyahnyahspammersnyahnyah>
Date: Sun, 3 Jun 2007 10:58:28 -0800

Hi all,

 

I have a netcdf file for air temperature. The dimension of air temperature
is given below,

 

Air_temp(time,lat,lon) where time=124, lat=16, lon=59

 

I am trying to convert this fie in to ascii file. I used the code provided
by Dennis Shea in website
http://www.ncl.ucar.edu/Support/talk_archives/2006/0113.html and the
program gave me different ascii files for lat, lon and temperature but all
those values in ascii file are written in a one column. I also used
write_matrix option but I guess it only works for two dimensional data.

 

I am trying to make a ascii file with different rows and columns like

 

lat lon time=0 time=1... time=123

41.5 25 260 262.6 267.8

41.5 27.5 261.2 262.3 264.5

 .

 .

 .

41.5 160 254.6 262.9 270.5

 

43 25 260.2 264.4 267.8

43 27.5 ..................

..........................

.........................

 

 

Is there any way to get ascii file with the given format from netcdf file in
NCL

 

Thanks

 

Debasish

 

 

 

----------------------------------------------------------------------------
-----

 

Debasish Pai Mazumder

Graduate Research Assistant
Geophysical Institute,University of Alaska Fairbanks,

903 Koyukuk Drive

Fairbanks, AK 99775

USA

 

Phone : +1 907 474 7618

Email : <mailto:debasish_at_gi.alaska.edu> debasish_at_gi.alaska.edu

 

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Jun 03 2007 - 12:58:28 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 05 2007 - 16:18:21 MDT