Skip to content

Enable FDSN/IRIS data and metadata services

To Do:

  • Update the back-end /ws/data endpoint to retrieve ASL variometer data from IRIS
  • Update the back-end to support new endpoint /ws/variometers

---DETAILS---

First: the /ws/data endpoint does not currently return ASL variometer data from IRIS (for example: ANMO). This is because "ANMO" is not in the list of observatories checked in geomagio/api/ws/DataApiQuery.py. We need to import ASL_OBSERVATORY_INDEX and use it for validation in the validate_id() function. Feel free to update svariable names, etc., for clarity.

Second: The /geomagio/api/ws/data.py file currently uses the IRISFactory to pull in ASL data. This should be changed to FDSNFactory.

Third: the /ws/observatories endpoint needs to be replicated as /ws/variometers in order to return geojson metadata for the ASL variometers. This will include adding app.include_router(variometers.router) to app.py.

(mentioning @nshavers since he will be waiting on these changes to test his related front-end changes)

Edited by Wilbur, Spencer Franklin