Hi all,
I encountered the following problem when trying to create new files:
file: NclNewFile.c, line: 6839
Could not get varnode->name: <month>
file: NclNewFile.c, line: 6839
Could not get varnode->name: <day>
file: NclNewFile.c, line: 6839
Could not get varnode->name: <level>
file: NclNewFile.c, line: 6839
Could not get varnode->name: <lat>
Segmentation fault
The new file I want to create contains only 1 data (newco2), which has 5
dimensions (month, day, level, lat, lon).
Could you help me with this error? Many thanks!
Best regards,
Yiqi
The major part of my code is as follows:
    newco2 = new( (/N_Months, 31, nlevel, nlat, nlon/), "float")
    newco2!0 = "month"
    newco2&month = ispan(MonthBegin, MonthEnd, 1)
    newco2!1 = "day"
    newco2&day = ispan(1,31,1)
    do M=0, 11
        do D=0, 30
            Infilename = ****
            f = addfile(Infilename, "r")
            co2 = f->co2
            newco2(M,D,:,:,:) = dim_avg_n_Wrap(co2, 0)
        end do
    end do
    system("/bin/rm -f " + Outfilename)
    ncdf = addfile( Outfilename, "c" )
    ncdf->newco2 = newco2
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jan  3 21:37:36 2013
This archive was generated by hypermail 2.1.8 : Fri Jan 04 2013 - 15:34:10 MST