NOTE: The decoders
mailing list is no longer active. The list archives are made available for historical reasons.
On Thu, 5 Feb 2004, Unidata Support wrote:
------- Forwarded Message >To: support-gempak@xxxxxxxxxxxxxxxx >From: jimmyc@xxxxxxxxxxx >Subject: metar decode >Organization: UCAR/Unidata >Keywords: 200402050558.i155wgp1020034 Hi- Thanks for the help with radar processing and plotting (works great!) Can dcmetr decode metar with the remarks? In particular I am looking for the PRESFR, PRESRR, and PKWIND comments. I have tried using some perl scripts to run over the raw data, however the .sao files I have sometimes lack the equal sign that indicate the metar has ended. Thanks for the help!
James, There's a Unidata decoders package that has a metar2nc perl script to extract the information that you need. You might have to hack out the netcdf code part, the purpose is to convert metars into a netCDF file. At this point, I'm modifying the script and fixed the bug that you noted but the code has not be releases yet. So you could change the code to reflect the fix. Change lines that splits bulletins into reports to: # Separate bulletins into reports if( /=\n/ ) { s#=\s+\n#=\n#g ; @reports = split( /=\n/ ) ; } else { s#\n# #g ; next if( /\d{4,6}Z.*\d{4,6}Z/ ) ; $reports[ 0 ] = $_ ; } The url to the decoders page is: http://my.unidata.ucar.edu/content/software/decoders/index.html Robb...
-- James Correia Jr. Ph.D. Candidate in Agricultural Meteorology Dept. of Agronomy, Iowa State University ********************************************* Email: jimmyc@xxxxxxxxxxx Phone: 515-294-5587 Web: http://www.mesoscale.iastate.edu/jimmyc/ ********************************************* "Imagination is more important than knowledge." -Einstein "There is a difference between knowing the path and walking the path" -"Morpheus" NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publically available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us. -- ------- End of Forwarded Message
============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/ ==============================================================================
decoders
archives: