dsavransky / EXOSIMS

Simulator for exoplanet direct imaging space missions
BSD 3-Clause "New" or "Revised" License
27 stars 40 forks source link

Planets do not move forward between observations #120

Closed katjareichert closed 6 years ago

katjareichert commented 6 years ago

Hi,

I have an important issue. To be able to do orbit reconstruction for my master's thesis, I need EXOSIMS to visit those stars multiple times, around which it has succesfully detected an exoplanet. I could solve this problem only by using a star catalogue as input which contains just a small amount of stars (so that there's enough mission time left for revisits). I am not sure whether this is the way you intended to make EXOSIMS revisiting stars. However, another problem is, that the planet's position and velocity vectors are always the same for the first and any further visit. Do you have any idea why the planets do not move forward?

I would be very thankful for any answer!

Kind regards, Katja

My code to start the simulation is:

import EXOSIMS,EXOSIMS.MissionSim,os.path
import EXOSIMS.SimulatedUniverse
scriptfile = os.path.join(EXOSIMS.__path__[0],'Scripts','test.json')
sim = EXOSIMS.MissionSim.MissionSim(scriptfile)

sim.run_sim()
DRM = sim.SurveySimulation.DRM

print('--------------------------------------------------------- ')
print(' ')
print('RESULTS:')
print(' ')
print('--------------------------------------------------------- ')

for x in range(len(DRM)):
    if 1 in DRM[x]['det_status']:
        print(' ')
        print('STELLAR PARAMETER:')
        print(' ')
        print('Name: ' + sim.TargetList.Name[sim.SurveySimulation.DRM[x]['star_ind']])
        print('Coordinates: ')
        print(sim.TargetList.coords[sim.SurveySimulation.DRM[x]['star_ind']])
        print('Number of visits: ')
        print([sim.SurveySimulation.starVisits[sim.SurveySimulation.DRM[x]['star_ind']]]) 
        print(' ')
        print(' ')
        print('PLANETARY PARAMETER:')
        print(' ')
        print('Position vector: ')
        print(sim.SimulatedUniverse.r[sim.SurveySimulation.DRM[x]['plan_inds']][sim.SurveySimulation.DRM[x]['det_status'] == 1])
        print('Velocity vector: ')
        print(sim.SimulatedUniverse.v[sim.SurveySimulation.DRM[x]['plan_inds']][sim.SurveySimulation.DRM[x]['det_status'] == 1])
        print('--------------------------------------------------------- ')

print(' ')
print('SUMMARY:')
print(' ')
print('--------------------------------------------------------- ')
print(' ')
print('Number of observed stars:')
print(len(DRM))

print(' ')
print('Number of stars that have at least 1 planet detected:')
print(len([DRM[x]['star_ind'] for x in range(len(DRM)) if 1 in DRM[x]['det_status']]))

The output looks like:

python StartMission.py
Imported SurveyEnsemble (prototype module) from EXOSIMS.Prototypes.SurveyEnsemble
Imported SurveySimulation (prototype module) from EXOSIMS.Prototypes.SurveySimulation
Imported SimulatedUniverse (prototype module) from EXOSIMS.Prototypes.SimulatedUniverse
Imported TargetList (prototype module) from EXOSIMS.Prototypes.TargetList
Imported Test_Catalog3 (specific module) from EXOSIMS.StarCatalog.Test_Catalog3
Imported OpticalSystem (prototype module) from EXOSIMS.Prototypes.OpticalSystem
Imported ZodiacalLight (prototype module) from EXOSIMS.Prototypes.ZodiacalLight
Imported PostProcessing (prototype module) from EXOSIMS.Prototypes.PostProcessing
Imported BackgroundSources (prototype module) from EXOSIMS.Prototypes.BackgroundSources
Imported Completeness (prototype module) from EXOSIMS.Prototypes.Completeness
Imported PlanetPopulation (prototype module) from EXOSIMS.Prototypes.PlanetPopulation
Imported PlanetPhysicalModel (prototype module) from EXOSIMS.Prototypes.PlanetPhysicalModel
Imported Observatory (prototype module) from EXOSIMS.Prototypes.Observatory
Imported TimeKeeping (prototype module) from EXOSIMS.Prototypes.TimeKeeping
Numpy random seed is: 888907808
OB1: survey beginning.
  Observation #1, star ind 40 (of 52) with 5 planet(s), mission time: 0.0 d
OB2: previous block was 3.0 d long, advancing 0.0 d.
  Observation #2, star ind 8 (of 52) with 7 planet(s), mission time: 3.0 d
OB3: previous block was 3.0 d long, advancing 0.0 d.
  Observation #3, star ind 34 (of 52) with 4 planet(s), mission time: 6.0 d
OB4: previous block was 3.0 d long, advancing 0.0 d.
  Observation #4, star ind 49 (of 52) with 4 planet(s), mission time: 9.0 d
First algorithm error: Failed to converge on G, most likely due to divergence in continued fractions.
 Trying second algorithm.
OB5: previous block was 3.0 d long, advancing 0.0 d.
  Observation #5, star ind 11 (of 52) with 3 planet(s), mission time: 12.0 d
OB6: previous block was 3.0 d long, advancing 0.0 d.
  Observation #6, star ind 28 (of 52) with 8 planet(s), mission time: 15.0 d
OB7: previous block was 3.0 d long, advancing 0.0 d.
  Observation #7, star ind 36 (of 52) with 4 planet(s), mission time: 18.0 d
OB8: previous block was 3.0 d long, advancing 0.0 d.
  Observation #8, star ind 17 (of 52) with 6 planet(s), mission time: 21.0 d
OB9: previous block was 3.0 d long, advancing 0.0 d.
  Observation #9, star ind 50 (of 52) with 8 planet(s), mission time: 24.0 d
OB10: previous block was 3.0 d long, advancing 0.0 d.
  Observation #10, star ind 27 (of 52) with 8 planet(s), mission time: 27.0 d
OB11: previous block was 3.0 d long, advancing 0.0 d.
  Observation #11, star ind 22 (of 52) with 5 planet(s), mission time: 30.0 d
OB12: previous block was 3.0 d long, advancing 0.0 d.
  Observation #12, star ind 44 (of 52) with 4 planet(s), mission time: 33.0 d
OB13: previous block was 3.0 d long, advancing 0.0 d.
  Observation #13, star ind 6 (of 52) with 4 planet(s), mission time: 36.0 d
OB14: previous block was 3.0 d long, advancing 0.0 d.
  Observation #14, star ind 24 (of 52) with 4 planet(s), mission time: 39.0 d
OB15: previous block was 3.0 d long, advancing 0.0 d.
  Observation #15, star ind 38 (of 52) with 3 planet(s), mission time: 42.0 d
OB16: previous block was 3.0 d long, advancing 0.0 d.
  Observation #16, star ind 14 (of 52) with 3 planet(s), mission time: 45.0 d
OB17: previous block was 3.0 d long, advancing 0.0 d.
  Observation #17, star ind 29 (of 52) with 6 planet(s), mission time: 48.0 d
OB18: previous block was 3.0 d long, advancing 0.0 d.
  Observation #18, star ind 37 (of 52) with 3 planet(s), mission time: 51.0 d
OB19: previous block was 3.0 d long, advancing 0.0 d.
  Observation #19, star ind 23 (of 52) with 5 planet(s), mission time: 54.0 d
OB20: previous block was 3.0 d long, advancing 0.0 d.
  Observation #20, star ind 31 (of 52) with 2 planet(s), mission time: 57.0 d
OB21: previous block was 3.0 d long, advancing 0.0 d.
  Observation #21, star ind 3 (of 52) with 1 planet(s), mission time: 60.0 d
OB22: previous block was 3.0 d long, advancing 0.0 d.
  Observation #22, star ind 15 (of 52) with 2 planet(s), mission time: 63.0 d
OB23: previous block was 3.0 d long, advancing 0.0 d.
  Observation #23, star ind 45 (of 52) with 5 planet(s), mission time: 66.0 d
OB24: previous block was 3.0 d long, advancing 0.0 d.
  Observation #24, star ind 7 (of 52) with 3 planet(s), mission time: 69.0 d
OB25: previous block was 3.0 d long, advancing 0.0 d.
  Observation #25, star ind 1 (of 52) with 3 planet(s), mission time: 72.0 d
OB26: previous block was 3.0 d long, advancing 0.0 d.
  Observation #26, star ind 46 (of 52) with 1 planet(s), mission time: 75.0 d
OB27: previous block was 3.0 d long, advancing 0.0 d.
  Observation #27, star ind 13 (of 52) with 3 planet(s), mission time: 78.0 d
OB28: previous block was 3.0 d long, advancing 0.0 d.
  Observation #28, star ind 19 (of 52) with 7 planet(s), mission time: 81.0 d
OB29: previous block was 3.0 d long, advancing 0.0 d.
  Observation #29, star ind 20 (of 52) with 7 planet(s), mission time: 84.0 d
OB30: previous block was 3.0 d long, advancing 0.0 d.
  Observation #30, star ind 10 (of 52) with 4 planet(s), mission time: 87.0 d
OB31: previous block was 3.0 d long, advancing 0.0 d.
  Observation #31, star ind 18 (of 52) with 2 planet(s), mission time: 90.0 d
OB32: previous block was 3.0 d long, advancing 0.0 d.
  Observation #32, star ind 25 (of 52) with 7 planet(s), mission time: 93.0 d
OB33: previous block was 3.0 d long, advancing 0.0 d.
  Observation #33, star ind 48 (of 52) with 4 planet(s), mission time: 96.0 d
OB34: previous block was 3.0 d long, advancing 0.0 d.
  Observation #34, star ind 2 (of 52) with 5 planet(s), mission time: 99.0 d
OB35: previous block was 3.0 d long, advancing 0.0 d.
  Observation #35, star ind 16 (of 52) with 5 planet(s), mission time: 102.0 d
OB36: previous block was 3.0 d long, advancing 0.0 d.
  Observation #36, star ind 39 (of 52) with 5 planet(s), mission time: 105.0 d
OB37: previous block was 3.0 d long, advancing 0.0 d.
  Observation #37, star ind 32 (of 52) with 3 planet(s), mission time: 108.0 d
OB38: previous block was 3.0 d long, advancing 0.0 d.
  Observation #38, star ind 30 (of 52) with 2 planet(s), mission time: 111.0 d
OB39: previous block was 3.0 d long, advancing 0.0 d.
  Observation #39, star ind 41 (of 52) with 2 planet(s), mission time: 114.0 d
OB40: previous block was 3.0 d long, advancing 0.0 d.
  Observation #40, star ind 4 (of 52) with 4 planet(s), mission time: 117.0 d
OB41: previous block was 3.0 d long, advancing 0.0 d.
  Observation #41, star ind 42 (of 52) with 4 planet(s), mission time: 120.0 d
OB42: previous block was 3.0 d long, advancing 0.0 d.
  Observation #42, star ind 9 (of 52) with 5 planet(s), mission time: 123.0 d
OB43: previous block was 3.0 d long, advancing 0.0 d.
  Observation #43, star ind 43 (of 52) with 5 planet(s), mission time: 126.0 d
First algorithm error: Failed to converge on G, most likely due to divergence in continued fractions.
 Trying second algorithm.
OB44: previous block was 3.0 d long, advancing 0.0 d.
  Observation #44, star ind 51 (of 52) with 5 planet(s), mission time: 129.0 d
   - Detected planet inds [224] (1/5)
   - Charact. planet inds [224] (1/1 detected)
OB45: previous block was 5.15 d long, advancing 0.0 d.
  Observation #45, star ind 5 (of 52) with 5 planet(s), mission time: 134.15 d
OB46: previous block was 3.0 d long, advancing 0.0 d.
  Observation #46, star ind 0 (of 52) with 4 planet(s), mission time: 137.15 d
OB47: previous block was 3.0 d long, advancing 0.0 d.
  Observation #47, star ind 21 (of 52) with 5 planet(s), mission time: 140.15 d
OB48: previous block was 3.0 d long, advancing 0.0 d.
  Observation #48, star ind 47 (of 52) with 3 planet(s), mission time: 143.15 d
OB49: previous block was 3.0 d long, advancing 0.0 d.
  Observation #49, star ind 12 (of 52) with 7 planet(s), mission time: 146.15 d
OB50: previous block was 3.0 d long, advancing 0.0 d.
  Observation #50, star ind 33 (of 52) with 2 planet(s), mission time: 149.15 d
OB51: previous block was 3.0 d long, advancing 0.0 d.
  Observation #51, star ind 35 (of 52) with 10 planet(s), mission time: 152.15 d
   - Detected planet inds [155 159 162] (3/10)
   - Charact. planet inds [155 159 162] (3/3 detected)
OB52: previous block was 5.15 d long, advancing 0.0 d.
  Observation #52, star ind 26 (of 52) with 2 planet(s), mission time: 157.3 d
OB53: previous block was 3.0 d long, advancing 0.0 d.
  Observation #53, star ind 3 (of 52) with 1 planet(s), mission time: 160.3 d
OB54: previous block was 3.0 d long, advancing 0.0 d.
  Observation #54, star ind 9 (of 52) with 5 planet(s), mission time: 163.3 d
OB55: previous block was 3.0 d long, advancing 0.0 d.
  Observation #55, star ind 10 (of 52) with 4 planet(s), mission time: 166.3 d
OB56: previous block was 3.0 d long, advancing 0.0 d.
  Observation #56, star ind 33 (of 52) with 2 planet(s), mission time: 169.3 d
OB57: previous block was 3.0 d long, advancing 0.0 d.
  Observation #57, star ind 20 (of 52) with 7 planet(s), mission time: 172.3 d
OB58: previous block was 3.0 d long, advancing 0.0 d.
  Observation #58, star ind 35 (of 52) with 10 planet(s), mission time: 175.3 d
   - Detected planet inds [155 159 162] (3/10)
   - Charact. planet inds [155 159 162] (3/3 detected)
OB59: previous block was 5.15 d long, advancing 0.0 d.
  Observation #59, star ind 2 (of 52) with 5 planet(s), mission time: 180.45 d
OB60: previous block was 3.0 d long, advancing 0.0 d.
  Observation #60, star ind 49 (of 52) with 4 planet(s), mission time: 183.45 d
OB61: previous block was 3.0 d long, advancing 0.0 d.
  Observation #61, star ind 14 (of 52) with 3 planet(s), mission time: 186.45 d
OB62: previous block was 3.0 d long, advancing 0.0 d.
  Observation #62, star ind 4 (of 52) with 4 planet(s), mission time: 189.45 d
OB63: previous block was 3.0 d long, advancing 0.0 d.
  Observation #63, star ind 36 (of 52) with 4 planet(s), mission time: 192.45 d
OB64: previous block was 3.0 d long, advancing 0.0 d.
  Observation #64, star ind 29 (of 52) with 6 planet(s), mission time: 195.45 d
OB65: previous block was 3.0 d long, advancing 0.0 d.
  Observation #65, star ind 45 (of 52) with 5 planet(s), mission time: 198.45 d
First algorithm error: Failed to converge on G, most likely due to divergence in continued fractions.
 Trying second algorithm.
OB66: previous block was 3.0 d long, advancing 0.0 d.
  Observation #66, star ind 17 (of 52) with 6 planet(s), mission time: 201.45 d
OB67: previous block was 3.0 d long, advancing 0.0 d.
  Observation #67, star ind 38 (of 52) with 3 planet(s), mission time: 204.45 d
   - Detected planet inds [171] (1/3)
   - Charact. planet inds [171] (1/1 detected)
OB68: previous block was 5.15 d long, advancing 0.0 d.
  Observation #68, star ind 47 (of 52) with 3 planet(s), mission time: 209.6 d
OB69: previous block was 3.0 d long, advancing 0.0 d.
  Observation #69, star ind 22 (of 52) with 5 planet(s), mission time: 212.6 d
OB70: previous block was 3.0 d long, advancing 0.0 d.
  Observation #70, star ind 50 (of 52) with 8 planet(s), mission time: 215.6 d
OB71: previous block was 3.0 d long, advancing 0.0 d.
  Observation #71, star ind 12 (of 52) with 7 planet(s), mission time: 218.6 d
OB72: previous block was 3.0 d long, advancing 0.0 d.
  Observation #72, star ind 51 (of 52) with 5 planet(s), mission time: 221.6 d
   - Detected planet inds [224] (1/5)
   - Charact. planet inds [224] (1/1 detected)
OB73: previous block was 5.15 d long, advancing 0.0 d.
  Observation #73, star ind 37 (of 52) with 3 planet(s), mission time: 226.75 d
OB74: previous block was 3.0 d long, advancing 0.0 d.
  Observation #74, star ind 21 (of 52) with 5 planet(s), mission time: 229.75 d
OB75: previous block was 3.0 d long, advancing 0.0 d.
  Observation #75, star ind 5 (of 52) with 5 planet(s), mission time: 232.75 d
OB76: previous block was 3.0 d long, advancing 0.0 d.
  Observation #76, star ind 25 (of 52) with 7 planet(s), mission time: 235.75 d
OB77: previous block was 3.0 d long, advancing 0.0 d.
  Observation #77, star ind 40 (of 52) with 5 planet(s), mission time: 238.75 d
OB78: previous block was 3.0 d long, advancing 0.0 d.
  Observation #78, star ind 46 (of 52) with 1 planet(s), mission time: 241.75 d
OB79: previous block was 3.0 d long, advancing 0.0 d.
  Observation #79, star ind 41 (of 52) with 2 planet(s), mission time: 244.75 d
OB80: previous block was 3.0 d long, advancing 0.0 d.
  Observation #80, star ind 11 (of 52) with 3 planet(s), mission time: 247.75 d
OB81: previous block was 3.0 d long, advancing 0.0 d.
  Observation #81, star ind 0 (of 52) with 4 planet(s), mission time: 250.75 d
OB82: previous block was 3.0 d long, advancing 0.0 d.
  Observation #82, star ind 24 (of 52) with 4 planet(s), mission time: 253.75 d
OB83: previous block was 3.0 d long, advancing 0.0 d.
  Observation #83, star ind 39 (of 52) with 5 planet(s), mission time: 256.75 d
First algorithm error: Failed to converge on G, most likely due to divergence in continued fractions.
 Trying second algorithm.
OB84: previous block was 3.0 d long, advancing 0.0 d.
  Observation #84, star ind 34 (of 52) with 4 planet(s), mission time: 259.75 d
OB85: previous block was 3.0 d long, advancing 0.0 d.
  Observation #85, star ind 7 (of 52) with 3 planet(s), mission time: 262.75 d
OB86: previous block was 3.0 d long, advancing 0.0 d.
  Observation #86, star ind 1 (of 52) with 3 planet(s), mission time: 265.75 d
OB87: previous block was 3.0 d long, advancing 0.0 d.
  Observation #87, star ind 48 (of 52) with 4 planet(s), mission time: 268.75 d
OB88: previous block was 3.0 d long, advancing 0.0 d.
  Observation #88, star ind 43 (of 52) with 5 planet(s), mission time: 271.75 d
OB89: previous block was 3.0 d long, advancing 0.0 d.
  Observation #89, star ind 27 (of 52) with 8 planet(s), mission time: 274.75 d
   - Detected planet inds [120] (1/8)
   - Charact. planet inds [120] (1/1 detected)
OB90: previous block was 5.15 d long, advancing 0.0 d.
  Observation #90, star ind 32 (of 52) with 3 planet(s), mission time: 279.9 d
OB91: previous block was 3.0 d long, advancing 0.0 d.
  Observation #91, star ind 6 (of 52) with 4 planet(s), mission time: 282.9 d
OB92: previous block was 3.0 d long, advancing 0.0 d.
  Observation #92, star ind 16 (of 52) with 5 planet(s), mission time: 285.9 d
OB93: previous block was 3.0 d long, advancing 0.0 d.
  Observation #93, star ind 31 (of 52) with 2 planet(s), mission time: 288.9 d
OB94: previous block was 3.0 d long, advancing 0.0 d.
  Observation #94, star ind 28 (of 52) with 8 planet(s), mission time: 291.9 d
OB95: previous block was 3.0 d long, advancing 0.0 d.
  Observation #95, star ind 26 (of 52) with 2 planet(s), mission time: 294.9 d
OB96: previous block was 3.0 d long, advancing 0.0 d.
  Observation #96, star ind 42 (of 52) with 4 planet(s), mission time: 297.9 d
OB97: previous block was 3.0 d long, advancing 0.0 d.
  Observation #97, star ind 30 (of 52) with 2 planet(s), mission time: 300.9 d
OB98: previous block was 3.0 d long, advancing 0.0 d.
  Observation #98, star ind 8 (of 52) with 7 planet(s), mission time: 303.9 d
OB99: previous block was 3.0 d long, advancing 0.0 d.
  Observation #99, star ind 15 (of 52) with 2 planet(s), mission time: 306.9 d
OB100: previous block was 3.0 d long, advancing 0.0 d.
  Observation #100, star ind 44 (of 52) with 4 planet(s), mission time: 309.9 d
OB101: previous block was 3.0 d long, advancing 0.0 d.
  Observation #101, star ind 23 (of 52) with 5 planet(s), mission time: 312.9 d
OB102: previous block was 3.0 d long, advancing 0.0 d.
  Observation #102, star ind 18 (of 52) with 2 planet(s), mission time: 315.9 d
OB103: previous block was 3.0 d long, advancing 0.0 d.
  Observation #103, star ind 19 (of 52) with 7 planet(s), mission time: 318.9 d
OB104: previous block was 3.0 d long, advancing 0.0 d.
  Observation #104, star ind 13 (of 52) with 3 planet(s), mission time: 321.9 d
OB105: previous block was 3.0 d long, advancing 0.0 d.
  Observation #105, star ind 30 (of 52) with 2 planet(s), mission time: 324.9 d
OB106: previous block was 3.0 d long, advancing 0.0 d.
  Observation #106, star ind 51 (of 52) with 5 planet(s), mission time: 327.9 d
   - Detected planet inds [224] (1/5)
   - Charact. planet inds [224] (1/1 detected)
OB107: previous block was 5.15 d long, advancing 0.0 d.
  Observation #107, star ind 43 (of 52) with 5 planet(s), mission time: 333.05 d
OB108: previous block was 3.0 d long, advancing 0.0 d.
  Observation #108, star ind 12 (of 52) with 7 planet(s), mission time: 336.05 d
OB109: previous block was 3.0 d long, advancing 0.0 d.
  Observation #109, star ind 26 (of 52) with 2 planet(s), mission time: 339.05 d
OB110: previous block was 3.0 d long, advancing 0.0 d.
  Observation #110, star ind 11 (of 52) with 3 planet(s), mission time: 342.05 d
OB111: previous block was 3.0 d long, advancing 0.0 d.
  Observation #111, star ind 34 (of 52) with 4 planet(s), mission time: 345.05 d
OB112: previous block was 3.0 d long, advancing 0.0 d.
  Observation #112, star ind 8 (of 52) with 7 planet(s), mission time: 348.05 d
OB113: previous block was 3.0 d long, advancing 0.0 d.
  Observation #113, star ind 17 (of 52) with 6 planet(s), mission time: 351.05 d
OB114: previous block was 3.0 d long, advancing 0.0 d.
  Observation #114, star ind 13 (of 52) with 3 planet(s), mission time: 354.05 d
OB115: previous block was 3.0 d long, advancing 0.0 d.
  Observation #115, star ind 35 (of 52) with 10 planet(s), mission time: 357.05 d
   - Detected planet inds [155 159 162] (3/10)
   - Charact. planet inds [155 159 162] (3/3 detected)
OB116: previous block was 5.15 d long, advancing 0.0 d.
  Observation #116, star ind 36 (of 52) with 4 planet(s), mission time: 362.2 d
OB117: previous block was 3.0 d long, advancing 0.0 d.
Mission complete: no more time available.
Simulation duration: 1 s.
Results stored in SurveySimulation.DRM (Design Reference Mission).
--------------------------------------------------------- 

RESULTS:

--------------------------------------------------------- 

STELLAR PARAMETER:

Name: HIP 117473
Coordinates: 
<SkyCoord (ICRS): (ra, dec, distance) in (deg, deg, pc)
    ( 357.299774,  2.403577,  5.95)>
Number of visits: 
[3]

PLANETARY PARAMETER:

Position vector: 
[[-5.32649067 -2.49706363  0.54955693]] AU
Velocity vector: 
[[-0.00025566  0.00083141 -0.00444007]] AU / d
--------------------------------------------------------- 

STELLAR PARAMETER:

Name: HIP 54211
Coordinates: 
<SkyCoord (ICRS): (ra, dec, distance) in (deg, deg, pc)
    ( 166.383865,  43.524483,  4.86)>
Number of visits: 
[3]

PLANETARY PARAMETER:

Position vector: 
[[ 1.40224002  4.27909898  6.23007568]
 [ 0.30303763 -3.29503986  2.69710152]
 [-1.71409774 -2.52333948 -2.10382041]] AU
Velocity vector: 
[[ 0.00351415 -0.00185879 -0.00356664]
 [ 0.00345819 -0.00180763  0.00228296]
 [ 0.00578787  0.00274775 -0.00319769]] AU / d
--------------------------------------------------------- 

STELLAR PARAMETER:

Name: HIP 54211
Coordinates: 
<SkyCoord (ICRS): (ra, dec, distance) in (deg, deg, pc)
    ( 166.383865,  43.524483,  4.86)>
Number of visits: 
[3]

PLANETARY PARAMETER:

Position vector: 
[[ 1.40224002  4.27909898  6.23007568]
 [ 0.30303763 -3.29503986  2.69710152]
 [-1.71409774 -2.52333948 -2.10382041]] AU
Velocity vector: 
[[ 0.00351415 -0.00185879 -0.00356664]
 [ 0.00345819 -0.00180763  0.00228296]
 [ 0.00578787  0.00274775 -0.00319769]] AU / d
--------------------------------------------------------- 

STELLAR PARAMETER:

Name: HIP 58910
Coordinates: 
<SkyCoord (ICRS): (ra, dec, distance) in (deg, deg, pc)
    ( 181.203445, -62.002293,  5.52)>
Number of visits: 
[2]

PLANETARY PARAMETER:

Position vector: 
[[-2.32378953 -1.635161   -1.33960786]] AU
Velocity vector: 
[[-0.00172465  0.00046241  0.00398547]] AU / d
--------------------------------------------------------- 

STELLAR PARAMETER:

Name: HIP 117473
Coordinates: 
<SkyCoord (ICRS): (ra, dec, distance) in (deg, deg, pc)
    ( 357.299774,  2.403577,  5.95)>
Number of visits: 
[3]

PLANETARY PARAMETER:

Position vector: 
[[-5.32649067 -2.49706363  0.54955693]] AU
Velocity vector: 
[[-0.00025566  0.00083141 -0.00444007]] AU / d
--------------------------------------------------------- 

STELLAR PARAMETER:

Name: HIP 27628
Coordinates: 
<SkyCoord (ICRS): (ra, dec, distance) in (deg, deg, pc)
    ( 87.739807, -35.769291,  26.73)>
Number of visits: 
[2]

PLANETARY PARAMETER:

Position vector: 
[[-6.36218145  6.38856258 -2.95924228]] AU
Velocity vector: 
[[ 0.00313807 -0.00144132  0.00853049]] AU / d
--------------------------------------------------------- 

STELLAR PARAMETER:

Name: HIP 117473
Coordinates: 
<SkyCoord (ICRS): (ra, dec, distance) in (deg, deg, pc)
    ( 357.299774,  2.403577,  5.95)>
Number of visits: 
[3]

PLANETARY PARAMETER:

Position vector: 
[[-5.32649067 -2.49706363  0.54955693]] AU
Velocity vector: 
[[-0.00025566  0.00083141 -0.00444007]] AU / d
--------------------------------------------------------- 

STELLAR PARAMETER:

Name: HIP 54211
Coordinates: 
<SkyCoord (ICRS): (ra, dec, distance) in (deg, deg, pc)
    ( 166.383865,  43.524483,  4.86)>
Number of visits: 
[3]

PLANETARY PARAMETER:

Position vector: 
[[ 1.40224002  4.27909898  6.23007568]
 [ 0.30303763 -3.29503986  2.69710152]
 [-1.71409774 -2.52333948 -2.10382041]] AU
Velocity vector: 
[[ 0.00351415 -0.00185879 -0.00356664]
 [ 0.00345819 -0.00180763  0.00228296]
 [ 0.00578787  0.00274775 -0.00319769]] AU / d
--------------------------------------------------------- 

SUMMARY:

--------------------------------------------------------- 

Number of observed stars:
116

Number of stars that have at least 1 planet detected:
8
dsavransky commented 6 years ago

Planets are propagated to their positions at the 'current' mission time at the time of any observations. Each system is therefore at different times at the end of the simulation. The position and velocity vectors that are stored in the SurveySimulation object therefore represent the positions and velocities of the planets at the last time when they were observed (or at their initial points if never observed). Your code indexes these static arrays (sim.SimulatedUniverse.r and sim.SimulatedUniverse.v) after the simulation has ended, so the values are always the same, but during the simulation they are continuously being updated.

The DRM object encodes some values about the planetary systems at the time of their observation (the star-planet separation, angular separation, delta-mag) but not the full position/velocity states. If you need the full velocity/position states, you can do one of several things: 1) Create your own overloaded SurveySimulation implementation which also writes the position & velocity to the DRM object (easiest would be to modify the det_systemParams dictionary generated in method observation_detection 2) Just re-create the full pos/vel states based on the planets' known orbital elements and the time of observation. All the code to do this can be found in the SimulatedUniverse constructor where the position/velocities arrays are first created, and method propag_system where they are propagated in time.