how to calculate the maximum consecutive dry days and wet days over time period?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Tomi Afrizal
il 9 Ago 2017
Modificato: Koyel Sur
il 21 Mag 2018
I have matrix (189x189) of daily precipitation in 20 years period (7300 files). I want to calculate the consecutive dry days and wet days in that period, where dry days is RR<1 and wet days is RR>1. can any one help me about this problem?
2 Commenti
Risposta accettata
AbhimanyuSingh
il 9 Ago 2017
RR=randi([-255,255],189,189); % Prepare a random precipitation data %Assumption that RR is matrices of 189x189 and containing precipitation data if this assumption is correct then below mentioned steps will work dryDays=RR<1; noOfDryDays=find(dryDays); noOfWetDays=find(~dryDays);
Or Else First you need to import data in a variable then use above code snippets
3 Commenti
AbhimanyuSingh
il 10 Ago 2017
Please find attached two '.m' files it will help you to find the maximum no. of the consecutive day.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Standard File Formats in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!