Commit b21d09b2322608c9d606f1a4a14fe6b79952dd37
1 parent
2f79a842
Exists in
master
and in
109 other branches
mercury coord modifs
Showing
1 changed file
with
6 additions
and
5 deletions
Show diff stats
php/RemoteDataCenter/makeOrbitsArgs.php
... | ... | @@ -35,16 +35,17 @@ |
35 | 35 | { |
36 | 36 | if (file_exists(RemoteData."$target.json")) |
37 | 37 | unlink(RemoteData."$target.json"); |
38 | - | |
38 | + | |
39 | 39 | $targetMain = $target['TargetMain']; |
40 | 40 | $coordImpex = $target['CoordName']; |
41 | 41 | |
42 | - // Mecrury double definition | |
43 | - if ($coordImpex == "HSM") $coordImpex == "MSM"; | |
44 | - | |
42 | + // Mercury double definition | |
43 | + if ($coordImpex == "HSM") $coordImpex = "MSM"; | |
44 | + if ($coordImpex == "MESO") $coordImpex = "MSO"; | |
45 | + | |
45 | 46 | // general case |
46 | 47 | $params = $xpath->query('//orbites[@target="'.$target.'" and @coordinate_system="'.$coordImpex.'" and @units="'.$unitsImpex.'"]'); |
47 | - | |
48 | + | |
48 | 49 | // case of targetImpex = Jupiter.Magnetosphere; targetAmda = Jupiter |
49 | 50 | if ($params->length == 0) |
50 | 51 | $params = $xpath->query('//orbites[@target="'.$targetMain.'" and @coordinate_system="'.$coordImpex.'" and @units="'.$unitsImpex.'"]'); |
... | ... |