|
CX2SA > SATDIG 14.03.13 20:01l 260 Lines 7016 Bytes #999 (0) @ WW
BID : AMSATBB884
Read: GUEST
Subj: AMSAT-BB-digest V8 84
Path: IZ3LSV<IK2XDE<ON4HU<CX2SA
Sent: 130314/1901Z @:CX2SA.SAL.URY.SA #:4338 [Salto] FBB7.00e $:AMSATBB884
From: CX2SA@CX2SA.SAL.URY.SA
To : SATDIG@WW
Today's Topics:
1. Re: AMSAT-BB Digest, Vol 8, Issue 83 (Thomas Frey)
2. Re: Unix command line Kepler manager (Gus)
3. Re: Unix command line Kepler manager (Gus)
4. New Swiss Small Satellite Launch System (Trevor M5AKA)
----------------------------------------------------------------------
Message: 1
Date: Wed, 13 Mar 2013 23:09:40 +0100
From: Thomas Frey <th.frey@xxxxxxx.xx>
To: amsat-bb@xxxxx.xxx
Subject: [amsat-bb] Re: AMSAT-BB Digest, Vol 8, Issue 83
Message-ID: <5140F924.6010806@xxxxxxx.xx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
amsat-bb-request@xxxxx.xxx schrieb:
> Date: Tue, 12 Mar 2013 22:29:05 +0100
> From: PE0SAT | Amateur Radio<pe0sat@xxxxx.xx>
> To: Amsat bb<amsat-bb@xxxxx.xxx>
> Subject: [amsat-bb] Unix command line Kepler manager
> Message-ID:<7602b403b94b77259610495fa72177ac@xxxxx.xx>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Hi,
>
> Thanks for reading this message.
>
> Can somebody help me with a command line Kepler manager for Unix?
>
> The idea is to create my own TLE files where source files come from
> Celes-track and
> Space-track.
>
> I thought to give the list a try before if go the script way;)
>
> 73 Jan PE0SAT
>
>
Hello Jan
This is my script running under OS/2-eComStation:
/* begin of CMD file */
/* access with WGet */
'wget -i oscarkep.url -O kepler-w.txt'
/* file with URL's */
/* access with Curl */
'curl -c cookies.txt -b cookies.txt -k
https://www.space-track.org/ajaxauth/login -d
"identity=USER&password=Pa$$w0rd"'
/* login via cookie */
'curl --cookie cookies.txt -k
https://www.space-track.org/basicspacedata/query/class/tle_latest/favorites/al
l/ORDINAL/1/format/3le
-o kepler-c.txt'
'copy kepler-w.txt + kepler-c.txt kepler.txt'
/* end of CMD file */
May it help.
--
Mit freundlichen Gr?ssen, Regards, 73
Thomas Frey, HB9SKA
______________________________________________________________________
Thomas Frey, Holzgasse 2, CH-5242 Birr, Tel. + Fax: 056 444 93 41
http://home.datacomm.ch/th.frey/
------------------------------
Message: 2
Date: Thu, 14 Mar 2013 02:15:39 -0400
From: Gus <8p6sm@xxxx.xxx>
To: PE0SAT | Amateur Radio <pe0sat@xxxxx.xx>
Cc: Amsat bb <amsat-bb@xxxxx.xxx>
Subject: [amsat-bb] Re: Unix command line Kepler manager
Message-ID: <51416B0B.6070004@xxxx.xxx>
Content-Type: text/plain; charset=UTF-8; format=flowed
Here is a bash script that might be of help:
--------8<--------
#!/bin/bash
CAT=/usr/bin/cat
RM=/usr/bin/rm
WGET=/usr/bin/wget
GREP=/usr/bin/grep
VERBOSE=1
# change these to suit your taste
OUTPUT=${HOME}/MySatellites.tle
MATCH=${HOME}/Sats_I_Like.txt
# delete existing output file
if [ -f ${OUTPUT} ]; then
[[ $%{VERBOSE} ]] && echo "Deleting ${OUTPUT}"
${RM} ${OUTPUT};
fi
# heredoc contains URLs of interest. Edit to suit yourself
[[ $%{VERBOSE} ]] && echo "Fetching elements from www.celestrack.com"
${CAT} << EOF | while read URL
http://www.celestrak.com/NORAD/elements/amateur.txt
http://www.celestrak.com/NORAD/elements/weather.txt
http://www.celestrak.com/NORAD/elements/visual.txt
EOF
do
[[ $%{VERBOSE} ]] && echo "-- ${URL}"
${WGET} -q ${URL} -O - | ${GREP} -A 2 -f ${MATCH} >> ${OUTPUT}
done
[[ $%{VERBOSE} ]] && echo "Done."
-------->8--------
This will fetch one or more element files from celestrack (you say which
URLs to use in the heredoc) and pick out satellites of interest to you
by name, combining the results into a single output file. You specify
the satellites you want in a match-file (name defined at the top of the
script) and similarly the name of the file where you want the results put.
Two cautions: 1) be careful with your matches. "AO-7" matches with
"AO-71" too. And 2) if a satellite appears in more than one input file,
it will appear more than once in the output. (Example, ISS (ZARYA)
appears in amateur.txt and visual.txt.)
You could change a few things -- select by satellite number & designator
rather than name, for instance, or read URLs from an external file. Or
have the heredoc also specify the name of the output file for each input
URL. But for anything much fancier than this (like sorting the output
by satellite name, skipping duplicates, anything but the simplest of
command-line arguments, etc) I'd go with a perl script.
On 03/13/2013 03:00 AM, PE0SAT | Amateur Radio wrote:
> Hi Gus,
>
> As I mentioned "I thought to give the list a try before if go the
> script way"
>
> Do you have such a script?
>
> Make an input variable with the desired SATS read from input files and
> output to
> my own output file that I can use with my favorite tracking software.
>
>
> 73 Jan PE0SAT
>
> On 12-03-2013 23:22, Gus wrote:
>> What exactly do you need to do?
>>
>> Download the elements from celestrack with wget or Perl's
>> LWP::Simple. Use grep with the --files option to select satellites of
>> interest and write them out to whatever destination you want. What
>> else do you need?
>>
>> A modest Perl script would go a long way...
>>
>>
>>
>>
>> On 03/12/2013 05:29 PM, PE0SAT | Amateur Radio wrote:
>>> Hi,
>>>
>>> Thanks for reading this message.
>>>
>>> Can somebody help me with a command line Kepler manager for Unix?
>>>
>>> The idea is to create my own TLE files where source files come from
>>> Celes-track and
>>> Space-track.
>>>
>>> I thought to give the list a try before if go the script way ;)
>>>
>>> 73 Jan PE0SAT
>>>
>
--
73, de Gus 8P6SM
Barbados, the easternmost isle.
------------------------------
Message: 3
Date: Thu, 14 Mar 2013 02:26:41 -0400
From: Gus <8p6sm@xxxx.xxx>
To: PE0SAT | Amateur Radio <pe0sat@xxxxx.xx>
Cc: Amsat bb <amsat-bb@xxxxx.xxx>
Subject: [amsat-bb] Re: Unix command line Kepler manager
Message-ID: <51416DA1.8070308@xxxx.xxx>
Content-Type: text/plain; charset=UTF-8; format=flowed
Hmmm.
I don't know how or why, but all my VERBOSE shell variables seem to have
acquired an unnecessary percent sign.
The script will still run as-is, but please remove those unwanted %age
symbols if you decide to try this script.
Thanks...
--
73, de Gus 8P6SM
Barbados, the easternmost isle.
------------------------------
Message: 4
Date: Thu, 14 Mar 2013 15:22:14 +0000 (GMT)
From: Trevor M5AKA <m5aka@xxxxx.xx.xx>
To: amsat-bb@xxxxx.xxx
Subject: [amsat-bb] New Swiss Small Satellite Launch System
Message-ID:
<1363274534.40207.YahooMailClassic@xxxxxxxxx.xxxx.xxx.xxxxx.xxx>
Content-Type: text/plain; charset=utf-8
Good to see another new company hoping to provide small satellite launches,
this one is aiming at the 2017+ timeframe.
See http://www.amsat-uk.org/?p=14680
73 Trevor M5AKA
------------------------------
_______________________________________________
Sent via amsat-bb@xxxxx.xxx. Opinions expressed are those of the author.
Not an AMSAT member? Join now to support the amateur satellite program!
http://amsat.org/mailman/listinfo/amsat-bb
End of AMSAT-BB Digest, Vol 8, Issue 84
***************************************
Read previous mail | Read next mail
| |