Fwd: Re: [RegCNET] CRU problem

Guangyu Wu wgy1972 at yahoo.com
Fri Jan 27 23:28:42 CET 2006


--- Jason Bell <jbell at pmc.ucsc.edu> wrote:

> Date: Fri, 20 Jan 2006 18:13:48 -0800
> From: Jason Bell <jbell at pmc.ucsc.edu>
> To: Guangyu Wu <wgy1972 at yahoo.com>
> Subject: Re: [RegCNET] CRU problem
> 
> Hi Guangyu,
> 
> The problem appears to be with some of the netCDF
> function calls. Much 
> of the netCDF calls are in old netcdf-2 format
> instead of the newer 
> netcdf-3 format. There are three lines that you need
> to change which 
> should eliminate the error messages.
> 
> In subroutine WRITECDFI2 change:
>       idtest =
>
ncvid(cdfid,varnam(strbeg(varnam):strend(varnam)),it)
> To:
>       it =
>
NF_INQ_VARID(cdfid,varnam(strbeg(varnam):strend(varnam)),idtest)
> 
> In subroutine putdefCOARDS change 2 lines:
> 1:
>       did(ik)=ncdid(cdfid,'time',ierr)
> to:
>       ierr = NF_INQ_DIMID(cdfid,'time',did(ik))
> and 2:
>       idtime=ncvid(cdfid,'time',ierr)
> to:
>       ierr = NF_INQ_VARID(cdfid,'time',idtime)
> 
> Hope this helps,
> Jason
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the RegCNET mailing list