[Met_help] MET v1.1 test case error
John Halley Gotway
johnhg at rap.ucar.edu
Wed Jul 16 08:49:51 MDT 2008
Steve,
Thanks for the info.
Have you tried running the cwordsh tool (http://www.nco.ncep.noaa.gov/sib/decoders/BUFRLIB/toc/cwordsh/) to "unblock" the file, and then "reblock" it?
For example, the following commands in a C-Shell would do that:
cd METv1.1
foreach file (`ls data/sample_obs/prepbufr/* | cut -d' ' -f9`)
/path/to/cwordsh unblk ${file} ~/tmp.unblk
/path/to/cwordsh block ~/tmp.unblk ${file}
end
rm ~/tmp.unblk
Where "/path/to/cwordsh" points to your version of cwordsh.
We're still trying to figure out all of the variants with these PREPBUFR files. If unblocking and then reblocking the PREPBUFR files doesn't work, then we should include the unblocked files in the
sample data.
Please let me know how it goes. And if you have any questions, we can talk this afternoon after the MET presentation.
Thanks,
John Halley-Gotway
johnhg at ucar.edu
Masters.Steve wrote:
> I downloaded the METv1.1 code to a 32-bit Red Hat Linux system. I was able to successfully compile the code using the gnu g77, gcc, and g++ compilers. I ran through the test suite calling the test_all.sh script. The tests ran sucessfully until it tried to read the sample prepbufr data. The log from the test is attached. The error is found in line 400 of the log and says that the BUFR file is not valid.
>
> I looked at the data file using the od command and the output is attached. It appears the prepbufr file has an 8-byte header before the BUFR string. On my 32-bit machine, the BUFR-reading programs will not read this file. (I tried to read the file using readpb and got the same error.)
>
> I did a quick check of a couple of prepbuf files on the NCEP web site. The "blocked" files have four-byte headers, and the unblocked files have no header.
>
> I speculate that either the sample data was blocked twice, or was blocked on a 64-bit machine (which makes files unreadable on at least 32-bit machines and maybe all of them). I had similar issues when I first tried to get MET to run on a 64-bit machine.
>
> I am at the WRF tutorial in Boulder this week and can show you my setup if desired.
>
> Steve Masters masters.steve at ensco.com
> ENSCO, Inc.
> Melbourne, FL
>
> ......................................................................
> The information contained in this email message is intended only for the use of the individuals to whom it is
> addressed and may contain information that is privileged and sensitive. If the reader of this message is not
> the intended recipient, you are hereby notified that any dissemination, distribution or copying of this
> communication is strictly prohibited. If you have received this communication in error, please notify the
> sender immediately by email at the above referenced address. Thank you.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Met_help mailing list
> Met_help at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/met_help
More information about the Met_help
mailing list