[Thread Prev][Thread Next][Index]

Re: Is this a bug?



Bob,

I believe the problem has to do with your definition of the units.  A 'dncdump -h' of your file shows:

        long time(time) ;
                time:long_name = "Time" ;
                time:units = "months since 1950-1-15 00:00:0.0" ;
                time:delta_t = "0000-01-00 00:00:00" ;

'months' are a really bad unit to use because there are so many kinds of months.  You've got calendar months w/ leap years, calendar months w/o leap years, 1/12 of 365 days, 1/12 of 365.2524 days, 30 days, etc. etc. etc. for as many different models as exist.  Please use units of seconds, minutes, hours or days for the time axis.

I'll fix the code so that folks will get a more helpful error message in the future.
 

-- Jon
 

Bob Yu wrote:

Hi all,

I am not sure if it is error or bug:

Prompt> ../xml/perl/addXml.pl -out_inc las_master.xml yy.xml "http://iprcdata.soest.hawaii.edu/cgi-bin/nph-nc/data/soda7/sln/soda_sln_1950.cdf"
**File: http://iprcdata.soest.hawaii.edu/cgi-bin/nph-nc/data/soda7/sln/soda_sln_1950.cdf
Use of uninitialized value in division (/) at ../xml/perl/LASNetCDF.pm line 560.
Illegal division by zero at ../xml/perl/LASNetCDF.pm line 560.

The cdf file has not problem when I checked it using ferret.

Anyone could tell me how to fix this error?

Thanks.

Bob Yu
 


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement