psf¶
PSF tracking-data loading for JPL spacecraft optical observations.
This submodule contains functionality to load tracking data from PSF files of
the type distributed by the JPL Solar System Dynamics group as spacecraft
optical observations of planetary satellites
(https://ssd.jpl.nasa.gov/sats/obs_data.html). These files contain optical
image measurements, camera metadata, and image orientation information that can
be converted to pixel-line tracking data. The read_psf_data() function is
the main interface for loading the data and converting it to objects that Tudat
can process further; see also
tracking_data. All other functionality in this module is
reserved for better understanding what data is being loaded, and in some cases
manipulating it, before it is processed into Tudat-compatible objects.
- read_psf_data(psf_file_names: list[str], receiver_body_name: str = '', image_name_to_body_name: dict[str, str] = {}, use_raw_image_name_as_body_name_if_unmapped: bool = True, required_use_flag: int | None = None) tuple[list[tudatpy.kernel.data_input.tracking_data.TrackingData], list[tudatpy.kernel.data_input.tracking_data.TrackingSupplementaryData]]¶
Read PSF files and convert them to tracking-data containers.
This reader is intended for PSF files of the type distributed by the JPL Solar System Dynamics group as spacecraft optical observations of planetary satellites (https://ssd.jpl.nasa.gov/sats/obs_data.html). These files contain optical image measurements, camera metadata, and image orientation information. This reader converts the selected image records to pixel-line tracking data and corresponding supplementary data. The raw PSF contents can also be inspected with
read_raw_psf_file_contents();read_psf_data()applies the image-name mapping and optional use-flag filter before creating TudatTrackingDataandTrackingSupplementaryDataobjects. During conversion, deleted pictures and end-marker records are skipped, corrected pixel-line coordinates are used, and observation epochs are stored at mid-exposure.- Parameters:
receiver_body_name (str, default="") – Optional receiving body name.
image_name_to_body_name (dict[str, str], default={}) – Mapping from PSF image names to Tudat body names.
use_raw_image_name_as_body_name_if_unmapped (bool, default=True) – Whether unmapped image names are used as body names.
required_use_flag (int | None, default=None) – If not None, only measurements with this PSF
USEflag are converted.
- Returns:
Tracking data objects and supplementary data objects.
- Return type:
Supporting API¶
The functions and classes below expose the raw contents of PSF files in
dedicated containers. They are used internally by read_psf_data() and can
be used to inspect image records, measurements and camera metadata before they
are converted to Tudat pixel-line tracking data.
- read_raw_psf_file_contents(psf_file: str) tudatpy.kernel.data_input.tracking_data.psf.RawPsfFileContents¶
Read a PSF file without converting it to tracking data.
This is a supporting reader for inspecting raw PSF contents. In the typical Tudat workflow, call
read_psf_data()instead, so the file contents are converted to Tudat tracking-data objects.- Parameters:
psf_file (str) – Path to the PSF file.
- Returns:
Raw parsed PSF file contents.
- Return type:
- class RawPsfFileContents¶
Bases:
pybind11_objectRaw contents of a parsed PSF file.
- class RawPsfFileImageContents¶
Bases:
pybind11_objectRaw PSF contents for a single image.
- class RawPsfMeasurement¶
Bases:
pybind11_objectRaw PSF image measurement record.
- get_effective_pixel_line(self: tudatpy.kernel.data_input.tracking_data.psf.RawPsfMeasurement) numpy.ndarray[numpy.float64[2, 1]]¶
Return the corrected or effective pixel-line coordinates.
- Returns:
Effective pixel-line coordinates.
- Return type:
- class RawPsfStarMeasurement¶
Bases:
RawPsfMeasurementRaw PSF star measurement record.
- class OpticalImageType¶
Bases:
pybind11_objectImage-object type encoded in a PSF file.
Members:
star
planet
satellite
rock
end_marker
unknown