Instrument
- class erwans3.Instrument_class.Instrument(telescope: SatCoord, spec_mode: Optional[str] = None)
Bases:
objectMain class used to run instrumental simulations. It contains: - the antennas true trajectory (position, velocity, attitude over time) - the instrument properties (specifications) - a list of acquisition request (to simulate) - a list of true acquisition (output of simulation)
the antennas knwown trajectory (with error)
a list of knwown acquisition (with error)
Usage: 1) define the instrument - trajectories as |SatCoord| - properties as |SpecificationParameters| 2) define the aquisition request as |AcquisitionRequest| 3) run method ‘simulate_acq’ run perform the simulation. 4) optional: add errors ((method to be defined))
Parameters:
- telescope
SatCoord The true trajectory of the antennas (position, velocity, attitude over time).
- spec_mode:obj:str, optional
Mode for instrument specifications.
Methods:
change_spec():Change a value in the Specs of the instrument.
add_acquisition_request():Add an acquisition request to the request_list of the instrument.
remove_acquisition_request():Remove an acquisition request from the request_list of the instrument.
clear_acquisition_list():Empty the request_list of the instrument.
Attributes Summary
Get the Swarm object representing antennas' true trajectory.
Methods Summary
add_acquisition_request(Acq_req)Add an acquisition request to the request_list of the instrument
change_spec(name, val)Change a value in the Specs of the instrument
Empty the request_list of the instrument
remove_acquisiton_request(idx_acq_req)Remove an acquisition request to the request_list of the instrument
simulate_acq(sky_simu[, idx_acq])Main method to run simulations Run the acquisitions requested in the attribute 'request_list' Add the result in the attribute 'acquisition_list
simulate_single_acq(skysimu, acqreq)Run the simulation associated with a single acquisition request.
Attributes Documentation
- Swarm
Get the Swarm object representing antennas’ true trajectory.
Returns:
SatCoordThe antennas’ true trajectory (position, velocity, attitude over time).
Methods Documentation
- add_acquisition_request(Acq_req: AcquisitionRequest)
Add an acquisition request to the request_list of the instrument
Parameters:
- Acq_req
AcquisitionRequest The type of acquisition request to add.
- Acq_req
- change_spec(name: str, val: Any)
Change a value in the Specs of the instrument
Parameters:
- name
str The name of the specification parameter to change.
- valAny
The new value for the specification parameter.
Returns:
InstrumentThe Instrument object after changing the specification.
- name
- clear_aquisition_list()
Empty the request_list of the instrument
- remove_acquisiton_request(idx_acq_req: int)
Remove an acquisition request to the request_list of the instrument
Parameters:
- idx_acq_req
int The index of the acquisition request to remove.
- idx_acq_req
- simulate_acq(sky_simu: SkyModel, idx_acq: Optional[Union[str, int, ndarray]] = None)
Main method to run simulations Run the acquisitions requested in the attribute ‘request_list’ Add the result in the attribute ‘acquisition_list
- simulate_single_acq(skysimu: SkyModel, acqreq: AcquisitionRequest)
Run the simulation associated with a single acquisition request.
Parameters:
- skysimu
SkyModel The sky model used for simulation.
- acqreq
AcquisitionRequest The type of acquisition request to simulate.
Returns:
- Any
The measurement set resulting from the simulation.
- skysimu