get_metdataforfloods: Title Extract catchment average precipitation, rain,...

Description Usage Arguments Value Examples

Description

The catchment averages are extracted from the SeNorge data. This dataset is available upon request. Need to run the function'grid_cell_list' in order to extract the catchment id of each grid cell. All results are written to files, one set of file for daily averages and one for long term mothly averages

Usage

1
2
3
4
5
get_metdataforfloods(gridid = "inst/Example_data/GISData/CID.txt",
  first_day = as.Date("1961/1/1"), last_day = as.Date("1990/12/31"),
  station_file = "inst/Flooddata/Table_stations_periods.csv",
  metfolder = "U:/metdata/", snowfolder = "U:/snowsim/",
  hbvfolder = "Z:/gwbsim/", outfolder = "inst/Excample_data/Flooddata/")

Arguments

gridid

File with gridIDs of SeNorge grids for each catchment. Created by the function 'gridcell_list'

first_day

The first day of the time sequence

last_day

The last day of the time sequence

station_file

List of stations if only a subset from the gridid-list is needed

metfolder

folder where SeNorge Met-grids are stored

snowfolder

folder where the SeNorge snow grids are stored

hbvfolder

folder where the SeNorge water balance modellin grids are stored

outfolder

folder for witing the results

snr_translation

Translation to GIS-station numbers if necesessary

Value

list with tables of daily and average monthly values

Examples

1
2
3
get_metdataforfloods(gridid='inst/Example_data/GISData/CID.txt',first_day=as.Date("1961/1/1"),last_day=as.Date("1961/12/31"),
station_file="inst/Excample_data/Flooddata/Table_stations_periods.csv",
metfolder="U:/metdata/",snowfolder="U:/snowsim/",hbvfolder="Z:/gwbsim/",outfolder="inst/Excample_data/Flooddata/")

NVE/NVEHYDROTOOLS documentation built on May 7, 2019, 6:04 p.m.