upForcing: Upload Forcings

Description Usage Arguments Details Value Author(s)

View source: R/upForcing.R

Description

This function loads the precipitation and evapotranspiration estimates that will be used to run or force the DWB model (DWBCalculator). If files are in raster format, it saves a variable cointaining the inputs in table format.

Usage

1
2
3
4
5
6
upForcing(
  path_p = tempdir(),
  path_pet = tempdir(),
  file_type = "raster",
  format = "GTiff"
)

Arguments

path_p

is a character string that specifies the directory where the precipitation rasters or the csv file are stored. The csv file must have nrows = N° of cells and ncol= N° of time steps.

path_pet

is a character string that specifies the location of the potential evapotranspiration rasters or the csv file are stored. The csv file must have nrows= N° of cells and ncol= N° of time steps.

file_type

Character string that specifies the forcing file formats, it should be "raster" or "csv", the default value is "raster".

format

Character string that specifies the format file of the Rasters, possible values are "GTiff" and "NetCDF". Default value is "GTiff".

Details

The character strings that control the location of the forcing files are as default "./precip/" and "./pet/" for precipitation and potential evapotranspiration, but can be change to other directories. However, if one's intention is to upload them from NetCDF files, the strings must be completely changed to a complete path that includes the name and extension of the file.

Value

a list containing the two objects (P and PET).

Author(s)

Nicolas Duque Gardeazabal <nduqueg@unal.edu.co>
Pedro Felipe Arboleda <pfarboledao@unal.edu.co>
Carolina Vega Viviescas <cvegav@unal.edu.co>
David Zamora <dazamoraa@unal.edu.co>

Water Resources Engineering Research Group - GIREH Universidad Nacional de Colombia - sede Bogota


dazamora/DWBmodelUN documentation built on Aug. 29, 2020, 11:41 a.m.