Download and Convert CHIRPS Gridded Satellite Rainfall Data into Time Series using Python

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025

Комментарии • 84

  • @MegaVale1d
    @MegaVale1d 2 года назад +1

    Thank you very much for this wonderful video. We were dying of despair until we found your video. If heaven exists, you are going straight there. We have no words to thank you. Greetings from Colombia. Daniela & Valentina

  • @vinzogodo
    @vinzogodo 2 года назад +1

    How would one tweak this code to download rainfall for multi-points?

  • @theDfLopes
    @theDfLopes 4 года назад +1

    thank you so much!!! I'm starting the studies of geoprocessing using python and your video helped me a lot.

  • @mushfiqulislam7611
    @mushfiqulislam7611 4 года назад +1

    Super Thanks. Please make one showing the aggregation of monthly precipitation over an admin area/AOI Polygon.

  • @andyorestes9938
    @andyorestes9938 4 года назад +1

    Superb. very clear explanation.

  • @felix_12345
    @felix_12345 2 года назад

    Amazing video, exactly what I was looking for !

  • @elishasabacajan6326
    @elishasabacajan6326 Год назад

    Hello, sir. Does the code work if I use a polygon shapefile rather than the ground station point? Thank you in advance for your reply.

  • @prasadsonar7316
    @prasadsonar7316 4 года назад

    Extremely helpful , best wishesh to your channel and you 😍

  • @muhammadanjum524
    @muhammadanjum524 4 года назад

    Dear Sir , Thank you soooooooooooooo much . You are sooo nice and kind . You are sooo expert in GIS . I hope you will continue your help .Its really very very helpful for me . I actually want to do that one . Sir, you solved my problem . Once again THANK YOU soo much .

  • @MyIndia2100
    @MyIndia2100 2 года назад

    Can you please make a video on downscalling GCM data!
    Do you have any idea if All CMIP6 experiment has global coverage?

  • @michaelogolla9350
    @michaelogolla9350 3 года назад

    Thank you so much for your tutorial. If I want time series data for various points not a single point how do I do that?

  • @theDfLopes
    @theDfLopes 3 года назад

    In case we need the rain to all basin, to get the basin outflow?
    I must sum all rain values of the image, but what code to change in loop section?

  • @sinuheso
    @sinuheso Год назад

    Thank you very much for the video. How can I modify the python code if i have a lot of points to analyze at the same time?

  • @agirl3517
    @agirl3517 2 года назад

    My file is ready to download but when I click it to download a page opens that says "integer out of range
    " what should I do

  • @ajith9600
    @ajith9600 5 лет назад

    Appreciable . Thanks a loat. Waiting for next tutorial using python.

  • @samudralavenkatajagannadha3949
    @samudralavenkatajagannadha3949 2 года назад

    A great work indeed. Thanks on behalf of the community.Where can we get the shapefiles for India. Divagis shapefiles distort Indian geographical extent and trim Jammu &Kashmir.

    • @geodeltalabs
      @geodeltalabs  2 года назад

      Hi, I would suggest you may possibly reach out to your local authorities for the precise GIS files, as the free versions online might contain issues as what you have mentioned

  • @chintannanda
    @chintannanda 4 года назад

    thanks for the informative tutorial, if we have to extract for multiple coordinates, should we add row and column with x and y or any other option

    • @malequinn
      @malequinn 3 года назад

      Very good video, clear and precise. I am also interested in multiple stations, can we do multiple at once, should be possible I guess...?

  • @JAZZMAINAWABBS
    @JAZZMAINAWABBS 7 месяцев назад

    Awesome Tutorial .How Can you also get water levels from rivers ?

    • @geodeltalabs
      @geodeltalabs  7 месяцев назад +1

      remote sensing may not be the best tool for that, if you are after high accuracies

  • @sazzaduleanan4040
    @sazzaduleanan4040 2 года назад

    Though I put the lat, lon (station) from inside the area coverage of the downloaded raster, in time of running the code finally; I am receiving this error " IndexError: index -1277 is out of bounds for axis 0 with size 126 '' . How can I get rid of this?

  • @diaasarayreh
    @diaasarayreh 2 года назад

    Hallo, thanks for your video
    I applay your stips ,but the value rainfull(last stips) still gives zero on table
    How can solve this problems.???

  • @dipikakeshri1485
    @dipikakeshri1485 3 года назад

    Please tell me the temporal resolution of the data you used?

  • @farahnusrat5639
    @farahnusrat5639 5 лет назад +1

    Hi. Thank you for the extremely helpful tutorial. Do you know the resolution of the data you downloaded as zip? Is it 0.05 or 0.25? Nothing is mentioned here, so I am asking this question. I have tried to use the code for the global daily precipitation using the original tif file (not clipped according to my area of interest). But after processing 40 dates, the got stuck (showing that the code is running but did not show any output). Is it due to the large file size? If you know, please also let us know. Thank you.

    • @geodeltalabs
      @geodeltalabs  5 лет назад +2

      The resolution is 0.05 degrees
      (www.chc.ucsb.edu/data/chirps)
      You may try to reduce the selection area of the raster by narrowing it down to only your area of interest. The larger the raster is, the more time it requires for the code to open and read in the raster during each iteration.

  • @ladiran
    @ladiran 4 года назад

    Sorry, I have to ask question again. I am trying to follow the tutorial by practising it.
    I tried to do georeferencing with QGIS but the line "x,y = dataset(9.20,9.27)" throws up an error saying " 'DatasetReader' object is not callable".
    Please, any help fixing this?
    Thanks a lot.

  • @dipikakeshri1485
    @dipikakeshri1485 3 года назад

    Dear Sir, Which version of python do you recommend to do this conversion?

  • @botlhematlhodi5357
    @botlhematlhodi5357 3 года назад

    Thank you so much for this. Fantastic work

  • @Gachatony
    @Gachatony 5 лет назад +2

    Hello Sir. Thank you for the wonderful tutorial series.
    I have CHIRPS raster data that contains daily precipitation information for 39 years. The rasters are on a daily timestep for precipitation.On the other hand I have 2000 stations from where i would like to have a timeseries data in csv format for the precipitation data. I followed your guidance on creating a time series precipitation data for one station and it worked quite smoothely. The problem for me is creating a loop to extract timeseries precipitation in data in csv format for the 2000 stations from 1981 - 2018. Kindly help. Thank you once again.

    • @geodeltalabs
      @geodeltalabs  5 лет назад

      Hi Rich, do you have a point shapefile of the stations?

    • @Gachatony
      @Gachatony 5 лет назад

      Yes Sir, I have the Shapefile. I have also clipped the chirps raster to my Area of Interest. Can I share the shapefile with you please?

    • @geodeltalabs
      @geodeltalabs  5 лет назад

      Hi, can you send an email to deltaengineeringlabs[at]gmail.com (kindly replace the [at] with @). We will assist you on this.

    • @Gachatony
      @Gachatony 5 лет назад +1

      @@geodeltalabs Thank you for the assistance. I've sent to you the zipped shapefile together with the adopted code from your tutorial. Thanks

    • @Gachatony
      @Gachatony 5 лет назад

      Thanks GeoDelta labs for the assistance and for sharing the code. It worked quite efficiently. Thanks

  • @evansochieng8215
    @evansochieng8215 3 года назад

    How can one do the same thing when having binary data?

  • @efravzt
    @efravzt 4 года назад +1

    When I fill in the rainfall value appears this error: index 2819 is out of bounds for axis 0 with size 40. You know why?

    • @wellmanlake
      @wellmanlake 4 года назад +1

      Hi! I'm in the north hemisphere and I had the same problem, so I changed the order of the coordinates, instead of latitude, longitude I used longitude, latitude and worked perfectly. Still not sure why thou..

    • @anganaborah144
      @anganaborah144 3 года назад

      @@wellmanlake thank you!! saved me.

  • @ibnuahmed1740
    @ibnuahmed1740 4 года назад

    when i used it gives me error for import error DLL load failed: the specified procedure coundnot be found please help that issue as soon thanks

  • @shekharsaini7872
    @shekharsaini7872 3 года назад

    Commendable work done ....well appreciate...
    Sir, if I want to get extract subset of the chirps global daily rainfall data ? How do I get it?
    Suppose lat (28, 32N), long (77,80E) with 0.25 resolution.
    Convert it CSV format like
    Lat 28 28.25 28.5.......
    Long 78 78.25 78.5.....
    Date rainfall
    1. 1.5 0 1.6
    2
    So on...
    2
    2

  • @eurekanethio1510
    @eurekanethio1510 3 года назад

    Hallo. Thank for all the useful Python tutorials given by you.
    When I do this tutorial and rich at the conde converting array of RF data to a table -- table['Rainfall (mm)'].loc[i] = data_array[int(row), int(col)] -- I countered the following error :
    File "C:\Users\pc\anaconda3\lib\site-packages\pandas\core\dtypes\cast.py", line 2215, in np_can_hold_element
    if is_float(element) and element.is_integer():
    AttributeError: 'numpy.float32' object has no attribute 'is_integer'
    Would you please help in locating this problem?

  • @inzakuroku7015
    @inzakuroku7015 4 года назад

    can it be applied to chirps monthly data?

  • @ladiran
    @ladiran 4 года назад

    Hello, GeoDelta.
    I must say that I have been enjoying your series of tutorials and I have learnt greatly.
    Please, can you do this same tutorial but using QGIS instead of ARCGIS?
    I am using QGIS because it is free and I am very sure that very many people will also be using QGIS for the same reason.
    Thank you very much for your efforts.

    • @geodeltalabs
      @geodeltalabs  4 года назад

      Hi, thanks for your comment. Actually in this tutorial the usage of ArcGIS is very minimal (only for displaying purposes of the raster) , and the core is on the application of the python script. However I agree with your suggestion. Lately we have started launching qgis related videos , stay tuned for the coming tutorials :)

    • @georgen9755
      @georgen9755 2 года назад

      geodelta

  • @idreesattar
    @idreesattar 7 месяцев назад

    Hello sir, can you make a tutorial on how to make a rainfall dss file for 5 year rainfall using python

  • @S06paths
    @S06paths 3 года назад

    I'm getting the following error:
    AttributeError: 'numpy.float32' object has no attribute 'is_integer'

  • @andypirie82
    @andypirie82 4 года назад

    Fantastic! Much appreciate!!

  • @geo.yaflman
    @geo.yaflman 4 года назад

    very good video thanks

  • @mdmasroor3494
    @mdmasroor3494 5 лет назад

    Thank you so much 😍

  • @hafezahmad3747
    @hafezahmad3747 4 года назад

    This is great Video, would you like show how to draw polygon and extract data for the polygon?

    • @geodeltalabs
      @geodeltalabs  4 года назад

      There will be a tutorial on this soon, stay tuned :)

    • @melaniestammler4119
      @melaniestammler4119 3 года назад

      @@geodeltalabs ohhh I would very much enjoy such a tutorial as well. However, I have only found the multi-point data extraction vieo (which btw is alo amazing!). Will you still be doing one with focus on polygons?

  • @ibnuahmed1740
    @ibnuahmed1740 4 года назад

    i had that problem please share with me idea

  • @rishitagarg5410
    @rishitagarg5410 3 года назад

    Where can we find the code? Can anyone help please?

  • @kashifsattar7540
    @kashifsattar7540 4 года назад

    Fantastic

  • @salimmohemad360
    @salimmohemad360 4 года назад

    Thanks very much

  • @muhammadanjum524
    @muhammadanjum524 4 года назад

    Dear Sir , Your videos are excellent . Please help me a video that How can I do in QGIS , to take the spatial average of all the pixels from the climate data (like maximum temperature or minimum temperature or rainfall) that lie inside of the boundary of each district using 'Zonal Statistics as Table' to calculate the average of the given climate variable within each boundary.

    • @geodeltalabs
      @geodeltalabs  4 года назад

      There will be a tutorial on this soon, stay tuned :)

    • @muhammadanjum524
      @muhammadanjum524 4 года назад

      @@geodeltalabs Thank you soooo much sir , I am waiting for my requested
      video .

    • @geodeltalabs
      @geodeltalabs  4 года назад

      Here's the requested tutorial ruclips.net/video/VIr-pejky6E/видео.html

  • @piyushkumar-ms8xi
    @piyushkumar-ms8xi 4 года назад

    where can i download monthly chirps data?

    • @geodeltalabs
      @geodeltalabs  4 года назад +1

      Once you extract the daily data, to can use the pandas groupby to generate monthly cumulative values

  • @kuntheanuon8723
    @kuntheanuon8723 15 дней назад

    In case I have 10000 points, how do I do?

  • @piyushkumar-ms8xi
    @piyushkumar-ms8xi 4 года назад

    Can you please show it on Google Earth Engine?

    • @geodeltalabs
      @geodeltalabs  4 года назад

      Hi, thanks for your comment.
      We do have a plan to launch a tutorial series on GEE, however it might take a while :)

  • @kewalpandit9893
    @kewalpandit9893 5 лет назад +1

    Sir how can I extract time series data for different ground station at once using python code.

    • @geodeltalabs
      @geodeltalabs  5 лет назад

      Hi, if it's just one station you can simply replace the lat, lon values and re-run.
      But if you have multiple stations, I suggest you to follow the method explained in the following tutorial to extract all the stations at once:
      ruclips.net/video/6zzneGT4mkg/видео.html

  • @theDfLopes
    @theDfLopes 3 года назад

    #PythonCode
    import rasterio
    import numpy as np
    import pandas as pd
    os.chdir('FOLDER PATH')
    getcwd()
    #Uper limit of table in np.arrange: number of images +1
    table = pd.DataFrame(0, index = np.arange(1,2192), columns=['Date','Rainfall(mm)'])
    i = 0
    for files in os.listdir(r'FOLDER PATH'):
    #verify if files are read correctly: print(files)
    #read file extension and read only ".tif"
    if files [-4:] == '.tif':
    i = i + 1
    dataset = rasterio.open(r'FOLDER PATH'+'\\'+files)
    #in Linux, don't use "r" letter before the path
    # cordinates of your point of interest (city, rain gage, wheater station, etc)
    x,y=(21.781631, -31.384303)
    row, col = dataset.index(x,y)
    data_array = dataset.read(1,2101)
    #Copy the date on filename to the 'Date' columm in table (created in panda dataframe) during each iteraction
    #[:-4] ignore the last 4 characters
    table['Date'].loc[i] = files[:-4]
    #Fill the rain value from sattelite image in the 'Rainfall' columm
    table['Rainfall(mm)'].loc[i] = data.array{int(row), int(col)]
    #Export the table file into a csv
    table.csv(r'FOLDER PATH/Rainfall.csv')

  • @muhammadanjum524
    @muhammadanjum524 4 года назад

    Dear Sir , as a student , you know , I have to understand many things. One more favor please, NOT last , but least ! Here (data.ceda.ac.uk/badc/cru/data/cru_ts/cru_ts_4.02/data/) in this website gridded weather data ( Maximum temperature , Minimum temperature , Precipitation etc) is given from 1901-2017 on monthly basis time steps. Sir, Please explain in a video, " I want to prepare a "Geo tiff " file or "tiff" from 1980 -2017 of any climate variable like ( Maximum Temperature or Minimum Temperature , or Precipitation etc) according to my province . In case of province , I have name of districts, their latitude and longitude values" . Further that file can be used for "Zonal statistics as Table' to calculate the average of the given climate variable within each boundary / district. So again my questions is , please explain in a video "how to prepare that "Geo tiff " file or "tiff" file from 1980-2017 of any climate variable like ( Maximum Temperature or Minimum Temperature , or Precipitation etc) according to my province . In case of province , I have name of districts, their latitude and longitude values" . If you do not mind and with great apologized , I can provide you the name of my province , its districts, their latitude and longitude values (to understand how to prepare that "Geo tiff" file or "Tiff file" from 1980-2017 by a video ) at your email or any other link whatever where you feel comfortable! Waiting for your kind reply With Best wishes and stay healthy