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.
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.
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.