Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concatenated receiver/transmitter names from observation collection. #121

Open
tristandijkstra opened this issue Oct 30, 2023 · 0 comments

Comments

@tristandijkstra
Copy link
Contributor

Hi,

This is in relation to tudat-team/tudatpy-examples#28. I want to do some analysis on the residuals per observatory. Currently, I have a convoluted way of receiving this list:

residuals_observatories = observation_collection.concatenated_link_definition_ids
unique_observatories = set(residuals_observatories)


observatory_link_to_mpccode = {
    idx: observation_collection.link_definition_ids[idx][
        observation.LinkEndType.receiver
    ].reference_point
    for idx in unique_observatories
}

concatenated_receiving_observatories = np.array(
    [observatory_link_to_mpccode[idx] for idx in residuals_observatories]
)

We currently have a concatenated times, and concatenated_link_definition_ids, but it would be nice if we could have a similar concatenated receiver and transmitter. In this case I could use the receiver to identify the observatories per observation more easily. In a future example, where I use multiple targets for one observation collection, the concatted_transmitters list would be useful to identify which target an observation belongs to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: tudatpy
Development

No branches or pull requests

1 participant