writing nc file

From: Dorita Rostkier-Edelstein <drostkier_at_nyahnyahspammersnyahnyah>
Date: Sun, 22 Mar 2009 01:39:06 -0700 (PDT)


I am trying to write an netCDF file as follows:

      ncdf = addfile(all_files(nf)+"_00.nc" ,"c") ; open output
netCDF file
    ; output variables directly
        ncdf->RRATE = data1

Although it nicely writes the data when I do an "ncdump -h" to the netCDF file it shows o record:

        time = UNLIMITED ; // (0 currently)
        lat = 1649 ;
        lon = 4948 ;
        float RRATE(lat, lon) ;
                RRATE:_FillValue = -1.f ;

I can plot from this file, but I want to average a couple of them using "ncea", and in such case it complains about the 0 record:

ncea: ERROR nco_lmt_sct_mk() reports record variable exists and is size
zero, i.e., has no records yet.
ncea: HINT: Perform record-oriented operations only after file has valid
ncea: cnt < 0 in nco_lmt_sct_mk()

Can anybody help me?



ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Sun Mar 22 2009 - 02:39:06 MDT

This archive was generated by hypermail 2.2.0 : Mon Mar 23 2009 - 12:30:31 MDT