Suppose you are an amateur astronomer and you want to track a satellite or know when it will be visible over a certain spot? Or you want to calculate the location of the moon on a certain night? If you have a Mac or Unix/Linux box, then wonder no more.
I installed John A. Magliacane's Predict program on my MacBook Pro and wrote down a few notes in case anyone else wants to try it.
- Install Xtools if it is not already installed.
- Make sure you have the ncurses library. (Do a "man ncurses" to check. It should be part of the Xtools package.)
- Make sure you have a c compiler. (Do a "which cc" to check.)
- Download the latest predict tar file from http://www.qsl.net/kd2bd/predict.html
- Untar the package. cd into the predict-2.2.X directory.
- For a Mac running OS X, the soundcard library can trip you up. Delete the "#include
" line from installer.c - type "./configure" (don't ask why typing "configure" doesn't work)
- If you want to track a satellite that is not in the standard file, create a *.tle file using default/predict.tle as a template. You can download two elements (TLE) for a variety of satellites at www.celestrak.com. For the uninitiated, they even explain what a two line element is.
- Create a custom ground station site *.qth using default/predict.qth as a template. Remember that predict uses degrees west.
- Invoke predict and your non-default files (using your filenames): "predict -q losangeles.qth -t dmsp.tle"
- Invoke logging by typing L to toggle logging on/off. Your logfile will appear in SATNAME.txt
Grace,
ReplyDeleteThe which cc command does not report a location for cc so I assume I have no c compiler loaded on my machine. Where can get a c compiler besided the $500 developers kit sold by Apple?
Jim
gcc is included in XcodeTools.mpkg, on the DVD that came with your Mac. It should install automatically.
ReplyDeleteIf not, you can download the sourceforge gcc package that also includes a g95 compiler that is backwards compatible with g77 and g90.
See OS X for Astronomers at:
http://www.ociw.edu/~jrigby/osx.html
for more info and links.
I have both the Apple default gcc and the sourceforge version installed on all my Macs. Do keep the Apple-provided gcc as the default and alias the sourceforge one to something else. Apple OS X updates will sometimes use gcc and it is important to keep your default gcc pointing to the one they expect.
Did you look in /usr/bin?
ReplyDeleteI found
/usr/bin/cc and /usr/bin/gcc.
Thanks for the help. I got cc loaded from the Mac install disk. I had to use the commend ./configure to get predict to compile. Predict is working OK. Maybe I'll hear you on one of the FM birds.
ReplyDeleteJim
I tried it but it didn't worked
ReplyDelete@ GoVT
ReplyDeleteCan you be more specific? What part didn't work for you? If the problem was with the predict program, then contact John Magliacane. If there is an error in my instructions, please let me know.