Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

GPS website calcs

 [1/3] from: meekerdb::rain::org at: 23-Oct-2001 12:18


It seems that Rebol may be a solution to a programming problem I have. I'm not really a great programmer - I generally just do throw-away scientific progs for myself - and I'm new to Rebol, so I'm looking for someone to tell me whether or nor Rebol is the way to go. What I need to do is display GPS satellite positions in the sky at a given date/time/position overlaid on a graphic showing which ones will be masked. I think Rebol will simplify this if I can take advantage of websites that will do the satellite part of the calculation for me. For example, if I can get Rebol to send data into http://sirius.chinalake.navy.mil/satpred/satpred_query.cgi and then activate the 'Predict Satellites' and then capture and parse out the satellite positions from http://sirius.chinalake.navy.mil/satpred/satpred.cgi then all I'd have to do is overlay them on a view of the mask. Does Rebol have commands to use a website in this way? thnx, Brent Meeker There are two ways to write error-free programs. Only the third one works.

 [2/3] from: norsepower:uswest at: 23-Oct-2001 19:59


This should be simple enough. You can view source on the page and discover all of the input variables (e.g. <INPUT NAME = "latmin">) and just send the input to the URL using the query string (e.g. http:// sirius.chinalake.navy.mil/satpred/satpred.cgi?latmin=12&latsec=55 ). Use 'read to read the result: gps: read http://sirius.chinalake.navy.mil/satpred/satpred.cgi?latmin=12& latsec=55 and then just parse out the result. This is cake for REBOL. -Ryan

 [3/3] from: mario:cassani:icl at: 24-Oct-2001 10:43


Hi Brent,
> example, if I can get Rebol to send data into > http://sirius.chinalake.navy.mil/satpred/satpred_query.cgi and then
<<quoted lines omitted: 4>>
> mask. Does Rebol > have commands to use a website in this way?
if you go in Graham Chiu Compkarori site using the /View desktop you can find some interesting scripts to handle cookies and forms. Graham also kindly sent me a sample script to use http-tools.r (that I think is what you need), if he agrees I can send the sample script to you too... Best regards Mario Cassani

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted