Skip to content

extract_drm_positions_driver

extract_drm_positions_driver.sh: extract observer (etc) positions from DRM

This is a wrapper around the python script, extract_drm_positions.py It mainly handles annoying filename transformations, so you only need to supply the ensemble root directory.

Usage:

  extract_drm_positions_driver.sh [-D] DRM

to summarize the paths in the given directory DRMS. Note, the star-planet config file (SPC) corresponding to a DRM is also needed, as is the JSON script. These filenames are generated from the DRM filename, see "Conventions" below.

where:

 -D   signals to run python with the debugger turned on
 -p   signals to use the (old-style) explicit PYTHONPATH
      (typically you should be using a virtual environment, not relying on
      -p to tell this script to set PYTHONPATH)

Conventions: The script file (.json) is deduced from the DRM filename (directory component). The output CSV name is generated from the DRM. E.g.: drm = sims/HabEx_4m_TS_dmag26p0_20180206/drm/NNNN.pkl json = Scripts/HabEx_4m_TS_dmag26p0_20180206.json csv = sims/HabEx_4m_TS_dmag26p0_20180206/pos/NNNN-position.csv (output)

turmon oct 2018, updated 2023 for newer Sandbox conventions