Mambo_5

Description

Mambo_5 is a Python code that creates polar plots showing azimuth and zenith angles of the sun and spacecraft with respect to a specified position on a body surface. The user should note that this code was made to support those that support Bob Gaskell's SPC code and as such uses inputs taken from the SPC code.

Inputs

In order for this code to work, it must be ran in a directory containing the following text files (all textiles are a column):

lmrkname.txt: name of the landmark being analyzed (only one landmark) NUMBERPIC.txt: # of pictures taken of landmark RESOLUTION.txt: resolution of each picture PICTIMES.txt: UTC time of each picture LAT.txt: latitude of landmark LON.txt: west longitude of landmark SCOBJ1.txt: x component of space craft to object center vectors (BF frame) SCOBJ2.txt: y component of space craft to object center vectors (BF frame) SCOBJ3.txt: z component of space craft to object center vectors (BF frame) SZ1.txt: x component of object center to sun unit vectors (BF frame) SZ2.txt: y component of object center to sun unit vectors (BF frame) SZ3.txt: z component of object center to sun unit vectors (BF frame) VLM1.txt: x component of object center to landmark vectors (BF frame) VLM2.txt: y component of object center to landmark vectors (BF frame) VLM3.txt: z component of object center to landmark vectors (BF frame)

Outputs

When this code is run it makes a sun polar plot, sc polar plot, and a text file of parameters in the same directory the code is run.

How to use mambo5.py

type "python <path>/mambo5.py" in the mamboOutput directory.

How to make the text files

Make a directory called mamboOutput in a SPC working directory. Then within LMRK_SUN_SC_POS_TXTFILES make a textfile named lmrkname.txt with just the name of the one landmark to be analyzed. Next, make sure RESIDUALS has been used so that MAPINFO.TXT and PICINFO.TXT are in the working directory. Then type "sh buildMambo5.sh" in the SPC working directory.

The Codes