Open franTarkenton opened 1 year ago
Had a thought that it may be possible to run the original XL code more easily.
Idea:
stack exchange post on running macros from python: https://stackoverflow.com/questions/19616205/running-an-excel-macro-via-python
Created the following branch with the xl code in it. Its looking entirely possible. Potentially can re-use this pattern for all the input spreadsheets that go into the coffee model.
Branch with the code is: https://github.com/bcgov/nr-rfc-climate-obs/tree/feat/15-xl-ingestion
Latest commit now updates the paths to the source data, however it does not update the hyperlink for the cell... Need to figure that out.
Also now updated the export models now get trimmed to only coffee and ensemble V
file path hyperlinks now getting updated.
Tmrw work on surrounding data imports:
Next look into running as gha
working on getting the preparation of the wildfire weather stations (F_WX) data working and into directories / formats / file names that work with the xl injestion process. Currently running into issues with getting the pulled data and the R script to work together
Shift is stragegy:
In order to enable this all to take place a sync process needs to be setup that watches the on prem versions of the spreadsheet and pulls that version of the SS. Currently setting up a sync process that will copy updates of the SS from on prem to object storage so that that data is available for this process. The process will be deployed using the GIS jenkins server
On prem -> Object store sync
the work associated with this ticket has been merged with main (https://github.com/bcgov/nr-rfc-climate-obs/pull/59), however the github action that was intended to run the climateobs xl macro is not enabled. the GHA is https://github.com/bcgov/nr-rfc-climate-obs/blob/main/.github/workflows/run_climate_obs.yaml however none of the triggers will fire.
Moving this ticket to cancelled as we have pivoted our approach to try to re-create logic in the xl macro as a python script
an R based shiny app has been created to review / fix / the climate observations data. Need to:
Significant amount of work to accomplish this task. Another task will also be defined that will port the existing R based Shiny app to run on openshift.