This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Daniel, > I am using ifort on a Ubuntu 8.04 LTS system. I compiled udunits-1.12.9 > successfully, but am getting the following error during run time. > --- > udunits(3): syntax error: > 0.01 > ^ > udunits(3): Couldn't decode "percent" definition "0.01" > udunits(3): Error occurred at line 34 > udunits(3): Couldn't read units-file "/var/local/udunits/etc/udunits.dat" > udunits(3): Package hasn't been initialized > Error in udunits function: UTDEC > Udunits package has not been initialized > > NOTE: You must call netop_init to use gridread, > gridreadx, dayread, and dayreadx > --- > I have attached the udunits that is on the system. I did compare this to > the one from > > http://www.unidata.ucar.edu/software/udunits/udunits-1/udunits.txt > > and they are identical. I just upgraded to Ubuntu/ ifort from mandrake/ > pgi compilers where this code I am trying to run worked very well. Does > this error have anything to do with the ifort compiler? The problem is, very likely, caused by the change in Fortran compilers. Did you compile the UDUNITS package on the Ubuntu 8.04 system with the C macro "pgiFortran" defined? > Thanks very much for your help, > > Daniel. Regards, Steve Emmerson Ticket Details =================== Ticket ID: NDS-204592 Department: Support UDUNITS Priority: Normal Status: Closed