We've determined that python can provide a more time-efficient means of retrieving the 10 Hz variometer data (see #392), and so we are pressing forward with a full adaption of "gmag_usgs_download_variometer_files.php"; in this case, I've dubbed the python version "gmag_retrieve_usgs_variometer.py", for conciseness.
We will need a script in /src/thmsoc (do we want to add a subdirectory?) which handles the actual retrieval, and a src/thmsoc/cli script which handles argument parsing.
We should determine which functions (if any) should be split into separate scripts, to make it easier to adapt other networks/use cases. For instance, an availability checker could be generalized
If we'd like to fold the "call_gmag_usgs_download_variometer_files.ksh" script into "gmag_retrieve_usgs_variometer.py", we'd need to add support for logging, possibly db_log, and enable it to send the database queries file to the mysql server.
Currently, "gmag_retrieve_usgs_variometer.py" is able to retrieve a file given the station name, a date, and a sampling rate. It as a function to construct USGS query URLs (which we might want to make part of a separate thmsoc/thmsoc_gmag url handling script, since USGS observatory magnetometers use a similar thing, but a different path, which could be handled as an argument.). It can also split the retrieval into segments, by default using 24 hour segments for 1 Hz data and 4 hour segments for 10 Hz data.
Additionally, "gmag_retrieve_usgs_variometer.py" will need to be able to:
We've determined that python can provide a more time-efficient means of retrieving the 10 Hz variometer data (see #392), and so we are pressing forward with a full adaption of "gmag_usgs_download_variometer_files.php"; in this case, I've dubbed the python version "gmag_retrieve_usgs_variometer.py", for conciseness.
We will need a script in /src/thmsoc (do we want to add a subdirectory?) which handles the actual retrieval, and a src/thmsoc/cli script which handles argument parsing.
We should determine which functions (if any) should be split into separate scripts, to make it easier to adapt other networks/use cases. For instance, an availability checker could be generalized
If we'd like to fold the "call_gmag_usgs_download_variometer_files.ksh" script into "gmag_retrieve_usgs_variometer.py", we'd need to add support for logging, possibly db_log, and enable it to send the database queries file to the mysql server.
Currently, "gmag_retrieve_usgs_variometer.py" is able to retrieve a file given the station name, a date, and a sampling rate. It as a function to construct USGS query URLs (which we might want to make part of a separate thmsoc/thmsoc_gmag url handling script, since USGS observatory magnetometers use a similar thing, but a different path, which could be handled as an argument.). It can also split the retrieval into segments, by default using 24 hour segments for 1 Hz data and 4 hour segments for 10 Hz data.
Additionally, "gmag_retrieve_usgs_variometer.py" will need to be able to: