Skip to content

update getanc to support additional rule schemes

Currently getanc (via anc_utils.py) drops unrecognized parameters returned by the API. We need it to work with what it is given 😄

Additionally, there are changes planned to the API to allow the available rule schemes to be queried and to have a user input for overriding the mission default rule scheme (currently what the API returns). This should be supported by getanc (obviously the API changes need to happen first).

  • Add option --list-schemes This will call this web API using the mission_id from the input file or --mission parameter and list the short names followed by the description. ie:

https://oceandata.sci.gsfc.nasa.gov/dev/api/anc/options?mission_id=42

  • Add option --scheme This will be added to the API call if it is supplied. ie:

https://oceandata.sci.gsfc.nasa.gov/dev/api/anc_data_api?filename=PACE_OCI.20260105T133227.L1B.V3.nc&scheme_name=OCI_L2

  • Make getanc silently ignore "DEFEPH1" that is returned for OCI
Edited by Donald Shea