Description Usage Arguments Author(s) Examples
After all rasters (DEM, land cover, and soil) are loaded, users may use this function to load precipitation data. Precipitation data can come from multiple weather stations or gridded remote sensing data.
1 2 | FM.readPrecip(datatype = 0, txtfile, startdatetime, enddatetime,
interval, idwpower = 2)
|
datatype |
0 = weather stations, 1 = raster data from NWP models, reanalysis datasets, or other remote sensing datasets. |
txtfile |
full file path of the text file required for precipitation data. If the data comes from multiple weather stations, the format of this text file should be given as follows: |
startdatetime |
start datetime of precipitation records, should be formated as "YYYY-MM-DD hh:mm:ss". E.g., "2016-06-09 12:00:00". |
enddatetime |
end datetime of precipitation records, should be formated as "YYYY-MM-DD hh:mm:ss". E.g., "2016-06-09 13:00:00". |
interval |
interval of precipitation records, unit: seconds. For example, 1 hr = 60 min * 60 sec = 3600 sec. |
idwpower |
(OPTIONAL) the power of IDW method, default: 2, suggested options: 1, 2, or 3. |
Xander Wang <xiuquan.wang@gmail.com>
1 2 3 4 5 | ## Load FloodMapper package
library(FloodMapper)
## Refer to Step 6 in the sample code of FM.start():
## Step 6. Load precipitation data from one weather station
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.