make_stnloc: Make stnloc

Description Usage Arguments Details Examples

View source: R/make_stnloc.R

Description

Makes a station location file for the UW routing model

Usage

1
make_stnloc(r, gage_coords, basename, saveloc)

Arguments

r

raster with the same dimensions and coordinate system as the flow direction file (could just use flow direction direction file)

gage_coords

text file containing lon/lat data for gage coordinaates

basename

base name for the save file

saveloc

location to save the station location file

Details

Creates a station location file and saves it to the specified directory. Adapted from an earlier Matlab version with the same name

Examples

1
2
3
4
5
r = raster("/Volumes/HD3/SWOTDA/Calibration/TuoSub/fdir.tif")
gage_coords = "/Volumes/HD3/SWOTDA/Calibration/TuoSub/gage_coords.txt"
saveloc <- "/Volumes/HD3/SWOTDA/Calibration/TuoSub"
basename <- "tuosub"
make_stnloc(r, gage_coords, basename, saveloc)

jschap1/routR documentation built on July 19, 2020, 8:42 p.m.