Hi, all
I want to output many time series to a new netcdf file, but meet some problem.
The error message is "fatal:File dimension conflict, dimension (time) has a size of (106) can not set it to requested size (190) "
And here below is the corresponding code :
" ...........
x = asciiread("./data/PDO/PDO_Mantua_Obs_1900-2005_ANN.MAM.dat",(/106,2/),"float")
pdo2 = x(:,1)
pdo2!0 = "time"
pdo2&time = ispan(1900,2005,1)*1.
pdo2@long_name = "PDO.MAM Obs"
pdo2@reference = "(Mantua et.al,1997)"
pdo2@output_name = "PDO.MAM.Obs_Mantua"
pdo2@time_domain = "1900-2005"
delete(x)
pdo3 = asciiread("./data/PDO/PDO.ANN.1790-1979.Darrigo2001.dat",-1,"float")
pdo3!0 = "time"
pdo3&time = ispan(1790,1979,1)*1.
pdo3@units = ""
pdo3@long_name = "PDO.ANN Recon"
pdo3@reference = "(Darrigo et.al,2001)"
pdo3@output_name = "PDO.ANN.Recon_Darrigo"
pdo3@time_domain = "1790-1979"
.......
system("rm ./ClimateIndices_201012.nc")
fout = addfile("./ClimateIndices_20101225.nc","c")
fout@creation_date = systemfunc("date")
; output variables directly
fout->pdo_ann_mantua = pdo1
fout->pdo_mam_mantua = pdo2
fout->pdo_ann_darrigo = pdo3
.........
......... "
Do I have to output them to many seperate nc file?
Thanks!
Leo
2010-12-26
leo.aries.g
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Dec 26 08:02:23 2010
This archive was generated by hypermail 2.1.8 : Tue Jan 04 2011 - 09:16:52 MST