Closed javierggt closed 2 years ago
Looking at cases where there is more than one OBSID per catalog, I found OBSID 2983 and 2748, which one gets with:
get_observations(starcat_date='2002:063:15:12:55.566', scenario='flight')
and it turns out that OBSID 2983 has two separate catalogs:
get_observations(obsid=2983, scenario='flight')
The first one is not a real catalog. What's the deal with this one?
get_starcats(obsid=2983, starcat_date='2002:063:15:12:55.566', scenario='flight')
Description
The starcat_date is effectively the catalog's unique ID, so it would be convenient to be able to fetch a catalog given starcat_date. This PR does that: it adds a
starcat_date
argument toget_observations
,get_starcats
andget_starcats_as_table
.If the starcat_date argument is given, the start time defaults to starcat_date and the stop time defaults to starcat_date + 7 days.
I have not checked, but in principle one can have multiple observations with the same catalog, right? It would be nice to check in those cases.
Interface impacts
Add one optional argument to three functions. This should not affect any existing code.
Testing
A unit test was added to check this functionality on a simple case
Unit tests
Independent check of unit tests by [REVIEWER NAME]
Functional tests