Skip to content

NERC-CEH/sli_visualTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developer guide to adding new datasets to the JNCC visual tool

Overview of app data handling

Steps to add new datasets.

Download data from source. If you have the link to the dataset and working from a linux machine, create a folder for the dataset, navigate to it, and then run the following in the terminal: wget <link_to_dataset>

For each new dataset or dataset groups,

  1. Add a new slider UI function *_sliders for that dataset in modules/slider_UI.R
  2. Add a new data handling function data_process_* in data_fun.R
  3. For map data, add map_fun_* in map_fun.R
  4. Add option to switch to that dataset in switch_map in map_fun.R.

Then in data_modules.R. Add call to these functions in the appropriate places.

  1. Add the new dataset as an option in dat_choices in the module datselect_mod_ui
  2. Add call to *_sliders in output$ui_placeholder in the module datselect_mod_server.
  3. Add call to data_process_ in filtered_data in the module datselect_mod_server.
  4. Add call to map_fun_* at ... (work in progress)