Standardized Precipitation Index (SPI) | Drought & Flood Monitor | Build Your Function in Python

  Рет қаралды 9,840

Meteo Data

Meteo Data

Күн бұрын

Пікірлер: 47
@AliGhaffari-vf5nd
@AliGhaffari-vf5nd Жыл бұрын
Probably the best tutorial on SPI. Nice work!
@meteodata
@meteodata Жыл бұрын
Glad you found this helpful.
@dnyaneshwararjunmadane-swe9235
@dnyaneshwararjunmadane-swe9235 Жыл бұрын
Nice elaborate SPI. Thanks
@yazodaanaupdates
@yazodaanaupdates 3 жыл бұрын
Good one Dr Jeffrey.. Always grateful for the Assistance.
@meteodata
@meteodata 3 жыл бұрын
Thanks and Glad you found it useful.
@darylernestoayalasaavedra7578
@darylernestoayalasaavedra7578 Жыл бұрын
Thanks for your help! Very well explained
@davidragatoa7174
@davidragatoa7174 3 жыл бұрын
Another great one. Thanks Dr. Jeffrey
@meteodata
@meteodata 3 жыл бұрын
Welcome, David
@meteodata
@meteodata 3 жыл бұрын
Glad you found it useful.
@mortezaomidipor
@mortezaomidipor Жыл бұрын
Thanks.
@meteodata
@meteodata Жыл бұрын
Glad you found this helpful.
@lawrencenehemiah5945
@lawrencenehemiah5945 2 жыл бұрын
Can you use SPI to identify extreme rainfall events? if so how do you interpret this in term of what you have explained?
@meteodata
@meteodata 2 жыл бұрын
Sure, you can. Find more info here: public.wmo.int/en/resources/library/standardized-precipitation-index-user-guide
@simantverma7515
@simantverma7515 2 жыл бұрын
What is the x[9] for under 'Perform SPI Computation on Data at Varying times' ?
@meteodata
@meteodata 2 жыл бұрын
We built the function to return 10 different outputs that we can use later. The 10th variable is the SPI output. Python indexing starts from 0. So, in order to retrieve the SPI variable from the function, we select the 10th item of the function output, which is the x[9].
@simantverma7515
@simantverma7515 2 жыл бұрын
@@meteodata thanks so much!
@tuyenhavan7598
@tuyenhavan7598 2 жыл бұрын
Thanks Sir.
@meteodata
@meteodata 2 жыл бұрын
Most welcome
@shahanasp.v3634
@shahanasp.v3634 9 ай бұрын
Hi sir, when I am using R code for finding SPI values , i am getting different answer..why??
@srujananandam9407
@srujananandam9407 Жыл бұрын
why 9th index is considered x[9]
@meteodata
@meteodata Жыл бұрын
python indexing starts from zero, so the 10th element has an index of 9 hence the x[9] calls the 10th (final) element from the returned output.
@srujananandam9407
@srujananandam9407 Жыл бұрын
I mean to ask why not 8 or 11, why exactly 9th index(10 th element)
@thasweerah
@thasweerah 3 жыл бұрын
what if data are in netcdf format for several location
@meteodata
@meteodata 3 жыл бұрын
That'll be the next episode. Kindly watch out for it
@meteodata
@meteodata 2 жыл бұрын
kzbin.info/www/bejne/h5rOgmdtlqagbMU
@TheFalcon2016
@TheFalcon2016 2 жыл бұрын
how can we show only one plot if I have to show only SPI 12 how can I do that??
@meteodata
@meteodata 2 жыл бұрын
Without massively changing the code, you should make the needed SPI value the first in your times=[ ] array. Afterward, set nrows to 1 in the plt.subplots( ) part. Hope this is helpful?
@yungsieugenensungni2513
@yungsieugenensungni2513 3 жыл бұрын
Hello Sir, I have a problem writing a code that will characterize drought from a netcdf SPI file. I don't know of you have done any work in that direction please
@meteodata
@meteodata 3 жыл бұрын
Hello Eugene, We have covered that in the attached tutorial (URL shown below) kzbin.info/www/bejne/iaXJhqCjhZJnaqM Hope it proves helpful. Cheers!
@yungsieugenensungni2513
@yungsieugenensungni2513 3 жыл бұрын
@@meteodata thank you very much Sir.
@barandiaye5299
@barandiaye5299 3 жыл бұрын
Do you can use a netcdf file to calculate spi?
@meteodata
@meteodata 3 жыл бұрын
That'll be the next episode. Kindly watch out for it
@meteodata
@meteodata 3 жыл бұрын
kzbin.info/www/bejne/iaXJhqCjhZJnaqM
@infinity__beyond
@infinity__beyond 2 жыл бұрын
Hello Sir, I have calculated SPI through netcdf and now I want to Calculated Drought Intensity, Drought Frequency and Drought Duration. Kindly help me to find these values using python. Also, I want spatial plot of these stats. Thank you.
@yungsieugenensungni2513
@yungsieugenensungni2513 2 жыл бұрын
i need this too, kindly let me know if you find a way out
@selomotsakanigermina3578
@selomotsakanigermina3578 3 ай бұрын
where you able to find way out
@infinity__beyond
@infinity__beyond 3 ай бұрын
@@selomotsakanigermina3578 yes
@infinity__beyond
@infinity__beyond 3 ай бұрын
@@selomotsakanigermina3578 Yes I found it and my own code for calculating this.
@infinity__beyond
@infinity__beyond 3 ай бұрын
@@yungsieugenensungni2513 Yeah I found it and made my own code to calculated it.
@micha4355
@micha4355 3 жыл бұрын
I guess what your function does not account for is seasonality, right? You basically compare, say, MA of Jan, Feb and Mar to the mean of all MAs, covering also the other months. What you ideally like to have is a comparison with the MA of a particular year with the long-term mean of the MAs of the exact same period. I.e. compare the MA of the first three month of 2014 with the long term mean of the MAs of the same first three month for all years prior to 2014. Am I correct or am I missing somethng?
@meteodata
@meteodata 3 жыл бұрын
Not quite sure if I got the question fully, but for select seasons, you can extract those seasons from the data set before applying the function. The shortfall in that is, you need a continuous (cyclical), annual data spanning a period to rightly deduce the SPIs, especially for the longer-range SPIs.
@seongyeolpark219
@seongyeolpark219 9 ай бұрын
Hi, thank you for your great tutoring. However, I regret to say there seems a miscalculation in this video. Each period of a specific year, like Jan - Mar, when calculating SPI-3 must be compared with the same periods of other years. For example, Jan - Mar in 1959 must be compared with the Jan - Mar period in other years like 1960 - 1989. However, the method in this tutorial compares every three months' precipitation regardless of specific months. It means the typical wet period of the year always shows positive SPI even though it doesn't rain as usual. In the graph of SPI-3 and SPI-6 in Video, every year has positive data. It means it doesn't show historical drought in specific years. On the other hand, the reason SPI-12 and SPI-24 values show different anomalies for each year is their data range is a year and two years, including every 12 months of a year. So, they can show historical drought status regardless of the difference in calculation method whether separating calculation for basic month or not. I am sorry to raise this issue and bother you, but I hope you understand what I mean and revise this video.
@mohammedsalah1770
@mohammedsalah1770 10 ай бұрын
This tutorial doesn't follow the same steps as the reference Excel sheet.
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
Ful Video ☝🏻☝🏻☝🏻
1:01
Arkeolog
Рет қаралды 14 МЛН
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
Standardized Precipitation Index (SPI) Classification | SPI Time Scale
5:56
MATLAB: Analyze Rainfall Data - Standardized Precipitation Index (SPI)
13:16
Engineering with Dr. Kelsey Joy
Рет қаралды 1,2 М.
Automating Raster Data Extraction using Python
21:36
GeoDelta Labs
Рет қаралды 15 М.
How to Calculate SPEI and SPI Indices using SPEI Package in RStudio
15:27
Dr. Fitsum Teshome
Рет қаралды 30 М.
Calculating SPI index using R studio | Video Tutorial
17:17
Red Fish
Рет қаралды 23 М.
SPI Drought Index | Drought Index Calculator | Windows Tool
24:38
AgriMetSoft Team
Рет қаралды 9 М.
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН