[gembud] dcrdf dcgmos on tgftp.nws.noaa.gov files

Daniel Fuka drf28 at cornell.edu
Sun Jan 27 23:08:00 MST 2008


Howdy All,

I am having problem decoding historical (and current) pfm/rdf and gfs  
mos bulletins that I am downloading off of tgftp (ftp:// 
tgftp.nws.noaa.gov/data/raw/fo/*[pfm,mav]*). I imagine I am just  
making a stupid mistake. For some reason, I keep getting the Invalid  
time error, which appears should only occur if the date string is  
less than 6 chars, day is outside of 0-31 range, or time is outside  
of 0-2359 range.

I am using dcrdf and dcgmos, with and without the -c option to set  
the date and I have added the header and trailer to the bulletin as  
described previously in the lists.

echo 'AMML' | tr 'AMLC' '\001\015\012\003' > header
echo 'MMLC' | tr 'AMLC' '\001\015\012\003' > trailer
cat header pfmfile_from_tgftp trailer > junk
dcrdf -v 2 -c 080127/2359 -b 3 -d junk.log -m 100 junk.sfc < junk

[weather at wi00-00 pfm_ccf]$ cat junk.log
[19582] 080128/0427[DC 3]  Starting up. Version 5.10.2
[19582] 080128/0427[DC 2]  read 17174/102399 bytes strt 0 newstrt 17174
[19582] 080128/0427[DC -16]  Invalid time
[19582] 080128/0427[DCRDF 2]  FOUS54 KBMX 272359 PFMBMX POINT  
FORECAST MATRICES NATIONAL
[19582] 080128/0427[DC 2]  read 0/85226 bytes strt 17174 newstrt 17174
[19582] 080128/0427[DC -9]  End of input data file.
[19582] 080128/0427[DC 5]  Normal termination.
[19582] 080128/0427[DC 2]  Number of bulletins read and processed: 1
[19582] 080128/0427[DC 6]  Shutting down.

[weather at wi00-00 pfm_ccf]$ head junk
^A^M^M      #These are added for  the email.. the real tags don't  
show in head
FOUS54 KBMX 272359
PFMBMX
POINT FORECAST MATRICES
NATIONAL WEATHER SERVICE BIRMINGHAM AL
559 PM CST SUN JAN 27 2008
ALZ018-281045-
  ADSDEN-ETOWAH AL


I get the same errors for the same series of commands for the dcgmos  
program.

Any help would be greatly appreciated.

Thanks!
dan


More information about the gembud mailing list