IMAP-Science-Operations-Center / imap-data-access

Package to download, query, and upload files from the IMAP Science Data Center.
MIT License
0 stars 7 forks source link

ENH: Allow SPICE file downloads/uploads #33

Closed greglucas closed 1 month ago

greglucas commented 2 months ago

Change Summary

Overview

This adds the ability to download and upload SPICE files to the SDC. There is a mapping based on the SPICE file extension to which subdirectory it will go to.

Also closes #23 because we are now always inferring the directory structure from the filename, even if a full path was given to the file.

# This for the new SPICE file
imap-data-access -v download imap_001.tf
# and this for issue 23
imap-data-access -v download imap_mag_l1a_burst-magi_20240314_v001.cdf

Testing

I added a test_science_file and test_science_path now because we require explicit science file paths or SPICE paths for download/upload now, so this makes it easier to re-use during tests.