Size: 2118
Comment:
|
← Revision 3 as of 2016-07-15 15:10:39 ⇥
Size: 1136
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
version 4 now |
|
Line 4: | Line 6: |
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. | 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 code also outputs a text file showing more information. Users 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. |
Line 7: | Line 9: |
In order for this code to work, it must be ran in a directory containing the following text files (all textiles are a column): | In order for this code to work, it must be ran in a SPC home directory containing the following text files: |
Line 9: | Line 11: |
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) |
* PICINFO.TXT * MAPINFO.TXT * LMKFILES/<lmrk_name>.TXT * SUMFILES/<picture>.SUM |
Line 26: | Line 18: |
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. | 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: * <lmrk_name>_viewing.txt * <lmrk_name>_sun_plot.png * <lmrk_name>_sc_plot.png |
Line 29: | Line 25: |
type "python <path>/mambo5.py" in the mamboOutput directory. | Simply type "python <path>/mambo5.py" in the SPC home directory. Then enter in the landmark to be analyzed |
Line 32: | Line 28: |
== 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 == |
== The Code == |
Line 38: | Line 31: |
* [[buildMambo5.sh]] |
Mambo_5
version 4 now
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 code also outputs a text file showing more information. Users 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 SPC home directory containing the following text files:
- PICINFO.TXT
- MAPINFO.TXT
LMKFILES/<lmrk_name>.TXT
SUMFILES/<picture>.SUM
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:
<lmrk_name>_viewing.txt
<lmrk_name>_sun_plot.png
<lmrk_name>_sc_plot.png
How to use mambo5.py
Simply type "python <path>/mambo5.py" in the SPC home directory. Then enter in the landmark to be analyzed