Dear Members,we want to read netcdf file containing wind (U10 and V10) and write to grid and xyz format. we could read and write the file but we see some errors in writing.
The original data is at 0.25 deg grid with an extent ( long 29.9E to 120.1E and Lat 60.1S to 30.1 N) and we would like to get ascii data for the region ( long 60Eto 90Eand Lat -6 to 26 N) at 0.25 deg. The output file gives long at 1 deg and Lat at 0.25 deg . The *.jnl file and data file , we used is enclosed.
Could you suggest how to get the data at 0.25 deg for both longand lat and to write the data in marix format .
Thanks in advance. N.T.Reddy
Attachment:
501.nc
Description: Binary data
set data 501.nc let xg=x[gx=U10] let yg=y[gy=U10] set reg/x=60:90/y=-6:26 repeat/x=60:90:0.25 (list/format=(3F10.3)/file=text.dat/nohead/append xg[x=`x`],yg[x=`x`],U10[x=`x`,l=1])
************************************************** M.V. RAMANA MURTHY, Scientist-E ICMAM Project Directorate, Department of Ocean Development, Ministry of Earth Sciences, NIOT campus, Pallikaranai, Chennai 601 302, INDIA Tel: (91) 44-22460992 (Direct), 22460276 (Office) Mobile: 9444403371 Fax: (91) 44-22460657 http: www.icmam.gov.in **************************************************