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

Interpolation Skymap Method #22

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

CassandraAuri
Copy link
Contributor

@CassandraAuri CassandraAuri commented May 14, 2024

PR summary

This pull request implements a new skymap method for "unofficial altitudes". During discussions during DASP, it was made known to me that the skymap's monotonically increase with height so a simple interpolation is all that is required to find intermediate skymap altitudes. In the skymap test we use the themsis skymap altitudes at 90km and 110km to perfectly recreate the 150km skymap (official).

PR checklist

  • [ N/A] "closes #0000" is in the body of the PR description to link the related issue
  • [ yes] New and changed code is tested
  • [N/A ] Plotting related features are demonstrated in an example.
  • [yes ] Changes are recorded in CHANGELOG.md and formatted.
  • [ Can document but don't know where, should create new file?] Except bugfies, the changes are documentated.

@mshumko mshumko changed the base branch from skymap to main May 26, 2024 15:41
Copy link
Owner

@mshumko mshumko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR @CassandraAuri!

It will be very helpful if you implement the few things that I've suggested. It shouldn't be too difficult to implement.

I've left comments regrading custom_alt in the themis.py module only, but those minor edits should also be applied to the TREx and REGO loaders as well.

If True, asilib will calculate (lat, lon) skymaps assuming a spherical Earth. Otherwise, it will use the official skymaps (Courtesy of University of Calgary).
custom_alt: str, default None
When selected, there are two options for skyma's between official sky maps:
If 'Geodetic', asilib will calculate (lat, lon) skymaps assuming a spherical Earth. Otherwise, it will use the official skymaps (Courtesy of University of Calgary).
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change 'Geodetic' to 'geodetic'? If I pass 'Geodetic' into this function it will raise an error.


.. note::

The spherical model of Earth's surface is less accurate than the oblate spheroid geometrical representation. Therefore, there will be a small difference between these and the official skymaps.

If 'Interp', asilib will calculate the (lat,lon) sky maps assuming that the interpolation between official maps is linear. This was supported by personal conversations with Dr. Eric Donovan of the University of Calgary
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with changing 'Interp' lowercase. This should be also edited in the REGO and TREx functions.

asilib/asi/themis.py Outdated Show resolved Hide resolved
asilib/asi/themis.py Outdated Show resolved Hide resolved
Comment on lines +12 to +17
@matplotlib.testing.decorators.image_comparison(
baseline_images=['test_interp_skymap'],
tol=20,
remove_text=True,
extensions=['png'],
)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@matplotlib.testing.decorators.image_comparison(
baseline_images=['test_interp_skymap'],
tol=20,
remove_text=True,
extensions=['png'],
)

asilib/tests/test_skymap.py Show resolved Hide resolved
@CassandraAuri
Copy link
Contributor Author

Hey Mike, I will implement and fix this Wednesday, currently just running a bit behind on research.

@CassandraAuri
Copy link
Contributor Author

Havent forgotten about this, just crunch time.

@mshumko
Copy link
Owner

mshumko commented Jun 7, 2024

No worries, I also have half-made changes to asilib that I'm having trouble finishing.

CassandraAuri and others added 3 commits June 23, 2024 16:15
Co-authored-by: Mykhaylo Shumko <[email protected]>
Co-authored-by: Mykhaylo Shumko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants