[aprssig] Programming Language Advice

Ray Wells vk2tv at exemail.com.au
Thu Jan 15 02:59:12 EST 2009


Thanks, Scott. I think I'll leave C alone for now. I'll climb the 
Himalayas first and then tackle something higher:-)

Ray vk2tv

Scott Miller wrote:
> I'm sure one really ugly line of perl will do it, though you may never 
> be able to figure out HOW when you go back and look at it again later.
>
> Python seems to be a lot less ugly, but I'm not familiar enough with it 
> to know how to set this one up.
>
> I'd probably just do it in C, but that's because I wouldn't have to 
> think about how to do it, not because it's the best language (or even a 
> very good one) to do it in.
>
> Come to think of it, I could do that in PL/SQL (the decode function 
> would handle the compass directions) but that doesn't do you much good 
> unless you're working with Oracle.
>
> Scott
> N1VG
>
> Ray Wells wrote:
>   
>> I'm seeking advice from members of the list as to which would be the 
>> best programming language to use to massage a string of data so that 
>> it's suitable to upload as aprs weather info.
>>
>> This is the data string I have to work with from a nearby professional 
>> weather station that posts the data to the internet.
>>
>>     
>>> 15/05:30pm 29.4 29.4 19.7 56 6.3 E 19 26 10 14 1008.3 - 0.0
>>>       
>> Using cut I can extract the fields of interest - 2, 5, 7, 8, 9, 12 and 
>> 14 which are temperature, humidty, course, speed, gust, barometer and 
>> total rainfall since 9.00am (that's the standard we use).
>>
>> I have a shell script to convert course in compass points to degrees, 
>> and I have a perl script to convert the metric figures to imperial, and 
>> round up/down.
>>  
>> I'd like to be able to handle the lot with a single programming language 
>> and end up with a line I can feed to xastir.
>>
>> The question is, what should I be using, perl or awk? Armed with the 
>> answer I can devote my time in that direction.
>>
>> Ray vk2tv
>>
>>
>>
>>
>> _______________________________________________
>> aprssig mailing list
>> aprssig at tapr.org
>> https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
>>
>>
>>     
>
>
> _______________________________________________
> aprssig mailing list
> aprssig at tapr.org
> https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
>
>   





More information about the aprssig mailing list