Hi, I'm trying to learn to use crds for various queries about reference files, and have ran into a small issue with example code from the docstring. This is quite likely due to some ignorance or missed step on my part, so I'll be grateful for any pointers. Here's what I'm trying, from the docstring:
>> get_symbolic_mapping("jwst-miri-flat-2015-01-01T00:20:05")
ReferenceMapping('jwst_miri_flat_0012.rmap')
When I try that, I get a FileNotFound error that that rmap is not in my local cache:
FileNotFoundError: [Errno 2] No such file or directory: 'crds_cache/mappings/jwst/jwst_miri_flat_0012.rmap'
The error persists even if I change the hard-coded date in the example code to some more recent date (e.g. after launch and commissioning). It only works if I use a mapping name chosen such that the relevant rmap file is already in my local cache.
What would be the necessary sequence of steps to ask crds to download the past rmap file, if it's not already in the cache?
The task I'm ultimately trying to do is going to involve scripting checks for changes in reference files over time, so being able to say e.g. "what was the active reference file for instrument X, mode Y, on date Z" is exactly what I'd like to be able to do. Thanks in advance for any tips!
Hi, I'm trying to learn to use
crdsfor various queries about reference files, and have ran into a small issue with example code from the docstring. This is quite likely due to some ignorance or missed step on my part, so I'll be grateful for any pointers. Here's what I'm trying, from the docstring:When I try that, I get a FileNotFound error that that rmap is not in my local cache:
The error persists even if I change the hard-coded date in the example code to some more recent date (e.g. after launch and commissioning). It only works if I use a mapping name chosen such that the relevant rmap file is already in my local cache.
What would be the necessary sequence of steps to ask crds to download the past rmap file, if it's not already in the cache?
The task I'm ultimately trying to do is going to involve scripting checks for changes in reference files over time, so being able to say e.g. "what was the active reference file for instrument X, mode Y, on date Z" is exactly what I'd like to be able to do. Thanks in advance for any tips!