Average hourly usgs data
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
HI,
I have a 15-minute dataset that I want to average hourly. The dataset contains 15 minute flow measurement from a USGS gage. There are some data missing so the time step is not consistent.
Thank you and happy labor day weekend!
SDH
2 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 1 Sep. 2013
Bearbeitet: Azzi Abdelmalek
am 1 Sep. 2013
You can do interpolation with interp1 function
2 Kommentare
Azzi Abdelmalek
am 1 Sep. 2013
%Example
%Example
t={'08:00' '08:15' '08:45' '09:15' '10:00'}
y=[10 20 30 40 50]
%-----------------------------------------------------------
ti=cellstr(datestr(datenum(0,0,0,8,(0:15:120),0),'HH:MM'))'
x=find(ismember(ti,t))
xi=1:numel(ti)
yi=interp1(x,y,xi)
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!