Improve visibility API - #63
Merged
Merged
Conversation
added 20 commits
September 25, 2025 00:39
…tput in a table. TODO: Plot, Fermi
Closed
Closed
Merged
9 tasks
gabriele-panebianco-inaf
marked this pull request as ready for review
October 6, 2025 10:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close #12
Close #26
Close #62
Problem
The Off-axis angle of a source was computed in a confusing way with the "Engineering API", which is the ensemble of the following classes:
AGEngAgileOffaxisVisibility, with the goal to compute the AGILE off-axis angle. Issues:mjd=mjd_to_tt(tt)instead ofmjd=tt_to_mjd(tt)AGEngAgileFermiOffAxisVisibilityComparison, with the goal to compute the Fermi off-axis angle. Issues:agilepy/external_packages/apandagilepy/external_packages/offaxisdirectories.AGEngDisplayComparison: with the goal to "compare" AGILE and Fermi data. Issues:PlottingUtilsclass.APDisplayAGILEFermiComparisonwith the goal to "compare" AGILE and Fermi data. Issues:agilepy/external_packages/ap, not integrated with the rest of agilepy.AGEngDisplayComparison: mixing results of AP, off-axis and ratemeters time series with a common time axis.agilepy/external_packages/offaxis, with other duplicated methods on computing and plotting the AGILE and Fermi offaxis angles.None of this was tested. All tests were deactived due to calling files from a local archive (
/ASDC2/etc)Solution of this MR
AGVisibility:PlottingUtilsandplotlyas every other class.Advantages
ATTITUDE_RA_YandATTITUDE_DEC_Y, Fermi position fromRA_SCZ,DEC_SCZcolumns. The code is much less than before and much more clear..csv): table with time, spacecraft coordinates, off-axis angle.agilepy/external_packages/directory.AGRatemeters,AGAnalysis.aperturePhotometry(),AGVisibilityto obtain the time series, then create its own plotting function as most appropriate to their paper.