COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
atmParams.py
1 import json
2 import numpy as np
3 from shesha.util.writers import common
4 
5 def write_json_atm_param(sup, *, file_name="./atm-params.json"):
6 
7  """Return a json representation of the atmospheric parameters
8 
9  Args:
10  sup : (CompassSupervisor) : supervisor to get the json representation from
11  """
12  atm_json={
13  "notice" : common.atmos_json_notice(),
14  "profiles" : [ common.atmos_to_json(sup.config.p_atmos)]
15  }
16  f = open(file_name,"w")
17  f.write(json.dumps(atm_json,indent=4))
18  f.close()
def write_json_atm_param(sup, *file_name="./atm-params.json")
Return a json representation of the atmospheric parameters.
Definition: atmParams.py:10