[ncl-talk] Time, lat and lon information is missing in created file

amit timilsina timilsinaamit87 at huskers.unl.edu
Tue May 19 10:03:04 MDT 2015


Hello all,

I have tried to clip required domain data set and created new .nc file but there is not time co-ordinate information. Is there other code need to write while creating file??? Here is the code I have used.


ncl 0> f = addfile("tasmax_Amon_MPI-ESM-LR_decadal1980_r1i1p1_198101-201012.nc","r")
ncl 1> tasmax =f->tasmax(:,{25:50},{235:285})
ncl 2> b = tasmax
ncl 3> ncdf = addfile("tasmax_Amon_MPI-ESM-LR_decadal1980_r1_USA.nc","c")
ncl 4> filedimdef(ncdf,"time",-1,True)
ncl 5> ncdf->tasmax = b

I could not have access to any co-rodinates using following codes:

a= addfile ("tasmax_Amon_MPI-ESM-LR_decadal1980_r1_USA.nc","r")
b=a->time               /*output: there is no time dimension on file a
c=a->lon                  /*output: there is no lon dimension on file a
d=a->lat                  /*output: there is no lat demotion on file a


Thank you in advance

Regards,
Amit



More information about the ncl-talk mailing list