[Wrf-users] Re: ungrib errors in WPS on Mac OS X with intel chips
(Jiming Jin)
Arnold Moene
arnold.moene at wur.nl
Thu Feb 8 14:29:28 MST 2007
Dear Jiming Min,
Somewhere (can't recall where, I think a WRF forum) I found the solution
to this problem. In the file WPS/ungrib/src/gribcode.F90 there is a
#ifdef missing that handles byteswapping.
On line 422 there is a correct one (surrounding the call to swap4). But
there is a second call to swap4 that does not have the correct #ifdef
BYTESWAP. Just replace the #ifdef that is there by the #ifdef BYTESWAP.
That does the trick.
Best regards,
Arnold Moene
> Hello Colleagues and Friends,
>
> I have installed the newest version of WPS on a Mac Pro (OS X)
> with Intel chips. The compiler I use is the Intel ifort. However,
> when I am running ungrib.exe with the WPS test data downloaded from
> the WRF web site(avn_0508*), I get the following message:
>
> Copen: File = GRIBFILE.AAA
>
> Fortran Unit = 12
> UNIX File descriptor: 5
>
> End-of-record mark (7777) not found 0
> Sec0(1) = 115389 0
> End-of-record mark (7777) not found 0
> Sec0(1) = 115389 1
> End-of-record mark (7777) not found 0
> Sec0(1) = 115389 2
> End-of-record mark (7777) not found 0
> Sec0(1) = 115389 3
> End-of-record mark (7777) not found 0
> Sec0(1) = 115389 4
> ......................................................................
>
> *** Found more than 10 consecutive bad GRIB records
> *** Let's just stop now.
>
>
> Perhaps the analysis file should have been converted
> from COS-Blocked format?
> ----------------------------------
>
> It seems to me that the ungrib package is unable to correctly decode
> the GRIB data. I also attach my configure.wps file with this email.
> Could someone help me straight out the problem? Any suggestions are
> also very welcome. Thanks!
>
> Jiming
--
------------------------------------------------------------------------
Arnold F. Moene tel: +31 (0)317 482604
Meteorology and Air Quality Group fax: +31 (0)317 482811
Wageningen University e-mail: Arnold.Moene at wur.nl
Droevendaalsesteeg 4 url: http://www.met.wau.nl
Wageningen
The Netherlands
Postal address: Postbus 47
6700 AA Wageningen
------------------------------------------------------------------------
Openoffice.org - Freedom at work
Firefox - The browser you can trust (www.mozilla.org)
------------------------------------------------------------------------
More information about the Wrf-users
mailing list