bcgov / nr-rfc-climate-obs

Transition of the existiing climate observations data pipeline to enable running off prem
Apache License 2.0
1 stars 0 forks source link

Configure automatic run of XL based climate obs data prep #15

Open franTarkenton opened 1 year ago

franTarkenton commented 1 year ago

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.

franTarkenton commented 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

franTarkenton commented 1 year ago

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

franTarkenton commented 1 year ago

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

franTarkenton commented 1 year ago

file path hyperlinks now getting updated.

Tmrw work on surrounding data imports:

Next look into running as gha

franTarkenton commented 1 year ago

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

franTarkenton commented 1 year ago

Shift is stragegy:

  1. will pull the climate obs data down from their remote servers and do any transformations required.
  2. climate obs data prep spreadsheet will be pulled from object storage.
  3. update process will be run on the SS, which changes the default paths for where the input data is expected to come from
  4. update process will run the macro
  5. Run the coffee model (NOT PART OF THIS TICKET)

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

franTarkenton commented 1 year ago

On prem -> Object store sync

franTarkenton commented 9 months ago

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