Questions tagged [hydrotsm]

12 questions
4
votes
1 answer

how to solve this error: attempt to set 'rownames' on an object with no dimensions

I have a csv file with daily streamflow. I need to combine the daily values into monthly. I am trying to use the "daily2monthly" function of "hydroTSM" package. sample data from the BRPT2.csv: _date,_time,_value,_flag 10/2/1959,0:00:00,0,2 …
Reza Ahmad
  • 95
  • 2
  • 2
  • 6
2
votes
2 answers

Flow duration curve using facet_wrap of ggplot in R?

I am using fdc of hydroTSM package. I have three data.frame and i would like to construct Flow duration curves (FDC) of the data.frame using facet_wrap functionality of ggplot to have the plots in three rows and one column. the following will…
Hydro
  • 1,057
  • 12
  • 25
2
votes
0 answers

Issue in kriging some rainfall records using hydrokrige function in hydroTSM package

I have been trying to use hydrokrige function (hydroTSM package) to interpolate rainfall data. For some data it seems to be working fine while I can't make sense of result I am getting for some records. Below are two reproducible examples with and…
1
vote
1 answer

Errors related to zoo package and dates

I started getting an error with a data and code that was working fine and now does not. The work is regarding rainfall data and the hydroTSM package which requires zoo. When I get to a part in the code, a simple function included in the hydroTSM…
Rachel Rotz
  • 101
  • 9
1
vote
3 answers

Data organization precipitation

I have a precipitation database, where it is structured as follows. Season; YEAR; MONTH; DAY 01; DAY 02; DAY 03 ..... DAY 31 data here At first I wanted to calculate the accumulated in each month (I did it using the precintcon), but only for one…
1
vote
1 answer

R - average of monthly sums of time series

I have a long time series (zoo) of precipitation data, I know how to obtain the monthly average of the values: library(hydroTSM) ma= monthlyfunction(data, mean, na.rm=TRUE) I also know how to obtain the monthly sum of the values: su=…
Davido
  • 121
  • 4
  • 12
1
vote
2 answers

Compute daily, month and annual average of several data sets

I have a data frame: MS_NR SS_NR DATE HOUR VALUE 1 13095010 68 1/01/2014 0:00:00 9,8 2 13095010 68 1/01/2014 1:00:00 8,0 3 13095010 68 1/01/2014 2:00:00 NA 4 13095010 68 1/01/2014 3:00:00 7,5 5 13095010 68…
0
votes
0 answers

How can I calculate annual average temperature from a daily timeseries datasets of multiple stations for different hydrological year separately in R?

I have a daily time series data sets in the following format: df <- data.frame(Date = c("01/01/1950", "01/02/1950", "12/31/1975"), MeanTempStn1 = c(13, 4.6, 9.8), MeanTempStn2= c(9.5, 3.8, 8.2), …
0
votes
1 answer

Annual Time Series Data Plotting

I have about 60 flow gauging stations with the following time series…
Massive44
  • 29
  • 5
0
votes
1 answer

How to solve error kriging with external drift in R?

I am trying to use kriging with external drift using hydrostm and hydrokrige. While, trying to interpolate, I can not interpolate well. I am using dem 30 m data. The code is following…
0
votes
0 answers

Interpretation of hydroplot in R (package: "hydroTSM")

I want to analyze mean daily runoff data by means of a hydroplot. I was able to write the code for the hydroplot. plot(MeteoZ,main="Runoff (m³/s) for Bad Aibling, Glonn station",xlab="Time") However, I am not very sure how to interpret it. I have…
M95
  • 61
  • 6
0
votes
1 answer

Error generated from hydroplot in hydroTSM R package: no applicable method for 'time<-' applied to an object of class "zoo"

I am trying use hydroplot from package hydroTSM, but i get the following error: Error in UseMethod("time<-") : no applicable method for 'time<-' applied to an object of class "zoo" I have used this code: td<-seq(as.Date("2009/02/12"),…
Jesinsky
  • 71
  • 2
  • 9