Re: METAR Decoder Question

NOTE: The decoders mailing list is no longer active. The list archives are made available for historical reasons.


Sorry to bother you again.. Quick question:

I have seen a problem where Albany won't update for hours at a time. When piping the output through by hand (instead of using it with ldm) i noticed that it would only convert the first METAR:
^C^A^M^M
252 ^M^M
SAUS80 KWBC 121900 RRA^M^M
METAR^M^M
KLBF 121856Z VRB04KT 10SM CLR 04/M04 A3011 RMK AO2 SLP227^M^M
    T00391044=^M^M
KSHV 121856Z VRB05KT 10SM CLR 06/M07 A3057 RMK AO2 SLP354^M^M
    T00561072=^M^M
KERI 121854Z 28016G21KT 4SM -SN FEW020 BKN025 OVC037 M04/M09 A3034^M^M
    RMK AO2 PK WND 27027/1827 SNB08 SLP286 P0000 T10391089=^M^M
KALB 121856Z 30018G25KT 10SM BKN039 M08/M16 A3017 RMK AO2 PK WND^M^M
    30032/1816 SNB28E37 SLP220 P0000 T10781161=^M^M


---------------

I think the culprit is this line of code:
                }
                # undefine vars
                undefinevars() ;
-->  #       &atexit( "eof" ) if( eof( STDIN ) ) ;
        } # end foreach report
} # end while( 1 )

-----
I am not the best of perl hackers (perl book in hand) but I think this would be that it checks STDIN each time through the loop of reports even tho there are another 3 reports in the '@report' array, and of course since it is a pipe it is quick and already read all of the data and is at EOF. Does this make sense? Also could this be my problem with LDM?
Alan



  • 1998 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the decoders archives: