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

Improved as-run db management #113

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

MJWeberg
Copy link
Collaborator

Improved tools for locating, downloading, and searching the EIS as-run catalog

Summary of changes

  • Created new db submodule
  • Added eispac.db.find_eis_cat() function for automatically locating the user's local copy of the as-run catalog
  • Added eispac.db.get_remote_db_modtime() function for checking the modification date of the catalog on a remote server
  • Added eispac.db.EISAsRun() class. Updated version of the eispac.download.EIS_DB() class with cleaner search results (now returns an Astropy Table!) and methods for locating and updating the catalog itself.
  • Small changes to the doc strings in the eispac.download module.

This is phase 1 of a larger project to refactor the search and download functions in EISPAC. Future changes include:

  • Moving all functions in eispac.download to the db and net submodules and adding depreciation warnings and passthrough functions for anyone using the old download submodule (these functions are mostly used internally by the eis_catalog GUI, but it is possible some users have been calling them directly).
  • Replacing EIS_DB with EISAsRun in the eis_catalog GUI
  • Expanding the sunpy Fido client to use the as-run database (if available). This will allow users to search by any of the metadata in the catalog (e.g. study ids, raster xcen/ycen, wavelengths, etc...) rather than just date_obs.

@MJWeberg MJWeberg added the enhancement New feature or request label Feb 13, 2025
@MJWeberg MJWeberg self-assigned this Feb 13, 2025
@MJWeberg MJWeberg merged commit 237051e into USNavalResearchLaboratory:main Feb 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant