Skip to content

Repository contains methods and modules for accessing api's for regObs, The forecasting-api and The chart server which provides charts to seNorge and xGeo. All these products are a part of the Varsom-family; products used in forecasting at NVE.

Notifications You must be signed in to change notification settings

kmunve/varsomdata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Varsom data repository

Repository contains methods and modules for accessing api's for regObs, The forecasting-api and The chart server which provides charts to seNorge and xGeo. All these products are a part of the Varsom-family; products used in forecasting at NVE.

Repository content - source files:
fencoding.py: Handles removing and adding of norwegian letters. In general æ, ø and å are removed from data on retrieval from the api's and added when plotted or written to file.
getdangers.py: Contains classes and methods for retrieving avalanche danger regardless source (regObs or forecastAPI or version/year the data is from.)
getforecastapi.py: Contains methods for accessing data on the forecast api.
getkdvelements.py: Contains methods for accessing KDV-elements used in regObs. In regObs, xKDV elements contain the link between an element ID and its name and description. This is also the contents of dropdown choices in regObs. It is useful to have a local copy of these tables.
getobservations.py: Contains classes and methods for accessing all on the regObs OData api.
getproblems.py: Contains classes and methods for retrieving avalanche problems regardless source (regObs or forecastAPI or version/year the data is from.)
getregobs.py: Contains methods for accessing avalanche problems on the regObs OData api (sub module of getproblems.py)
makepickle.py: Handles pickling and unpickling for storing data.
readfile.py: Where a read method is generic and can be utilized across modules, the method is placed here.
setenvironment.py: Contains environment variables such as api versions and folder-paths.

Repository content - "run" files:
runallforecasteddangerlevels.py: Saves to Datafiles all forecasted danger levels in all regions winter 2014/15. Includes method for saving danger levels and problems if needed.
runavalancheactivity.py: Plots all avalanche activity compared to forecasted danger level.
runavalancheproblems.py: Retrieves all avalanche problems (both forecasted and observed) since 2012.
runlevelanddangersign.py: Plots all danger signs in regObs on the all forecasted danger level. runmainmessage.py: Retrieves all main messages used in forecasts the winter 2014/15. Both norwegian and english. The main messages are sorted according to the danger levels and avalanche problems they appear. There is also a count of occurrences. .csv file is saved to output.
runmatrix.py: Plots histograms of forecasted danger levels on different avalanche problems the winter 2014/15. Plots saved in plots.
runmplotdangerandproblem.py: Plots forecasted and observed danger levels and a second plot comparing forecasted and observed avalanche cause for all regions.

Repository content - folders:
input: Configuration- or other files used in running scripts.
localstorage: Mostly .pickle files. For offline work or to save time when debugging data is stored locally.
output: All products from scripts except plots are saved to this folder.
plots: All plot files produced are saved to tis folder.

About

Repository contains methods and modules for accessing api's for regObs, The forecasting-api and The chart server which provides charts to seNorge and xGeo. All these products are a part of the Varsom-family; products used in forecasting at NVE.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PLSQL 61.8%
  • Python 29.4%
  • HTML 8.2%
  • Jupyter Notebook 0.6%