adam.batch module¶
batch.py
-
class
adam.batch.
Batch
(propagation_params, opm_params)¶ Bases:
object
-
__init__
(propagation_params, opm_params)¶ Initialize self. See help(type(self)) for accurate signature.
-
get_calc_state
()¶
-
get_opm_params
()¶
-
get_propagation_params
()¶
-
get_results
()¶
-
get_state_summary
()¶
-
get_uuid
()¶
-
set_results
(results)¶
-
set_state_summary
(state_summary)¶
-
-
class
adam.batch.
PropagationResults
(parts)¶ Bases:
object
-
M2KM
= 0.001¶
-
class
Part
(part)¶ Bases:
object
-
__init__
(part)¶ Requires a json response as returned from the server representing a batch part state (e.g. from /batch/batch_uuid/part_index)
- Raises
KeyError if the given object does not include 'part_index' and –
'calc_state' –
-
get_calc_state
()¶
-
get_ephemeris
()¶
-
get_error
()¶
-
get_part_index
()¶
-
-
__init__
(parts)¶ Should be called with a list of json responses from the server representing the parts_count parts of a batch propagation result.
-
get_end_state_vector
()¶ Get the end state vector as a 6d list in [km, km/s]
This function first grabs the STK ephemeris from the final part The final state entry is returned as an array
Args:
- Returns
- state_vector (list) - an array with 6 elements [rx, ry, rz, vx, vy, vz]
[km, km/s]
-
get_final_ephemeris
()¶
-
get_parts
()¶
-
get_state_vector_at_time
(target_epoch)¶ Get the state vector at the given time as a 6d list in [km, km/s]
This function grabs the STK ephemeris from the final part. It parses the epoch given in the ephemeris in order to determine the times of all the state vectors given in the file.
If a time is requested that does not have an explicit state vector, None will be returned. This will not interpolate.
- Parameters
target_epoch (datetime) –
- Returns
- state_vector (list) - an array with 6 elements [rx, ry, rz, vx, vy, vz]
[km, km/s]
-
-
class
adam.batch.
StateSummary
(json)¶ Bases:
object
-
__init__
(json)¶ Requires a json response as returned from the server representing a batch state summary (e.g. from /batch/uuid or in bulk from batch/project_id)
- Raises
KeyError if the given object does not include 'uuid' and 'calc_state' –
-
get_calc_state
()¶
-
get_complete_time
()¶
-
get_create_time
()¶
-
get_execute_time
()¶
-
get_parts_count
()¶
-
get_project_uuid
()¶
-
get_step_size
()¶
-
get_uuid
()¶
-