Convert IMD gridded (.GRD) binary weather data to csv/excel using python and QGIS

Поділитися
Вставка
  • Опубліковано 29 січ 2025

КОМЕНТАРІ • 65

  • @ayandas9946
    @ayandas9946 3 роки тому +3

    I changed the path location and also changed the ending year and nothing but it's shows error how to slove this ???

  • @kayodeajewole8348
    @kayodeajewole8348 2 роки тому

    Thanks for this information sir, it saved my project!

  • @EliteGamerofficial01
    @EliteGamerofficial01 3 роки тому +2

    I am not able to extract temp data

  • @arunborgohain1500
    @arunborgohain1500 4 місяці тому

    Excellent 🎉 coding !

  • @Explore-00
    @Explore-00 8 місяців тому

    How do we match spatial resolution of temperature to that of rainfal (0.25 degree)?

  • @princethangadurai1273
    @princethangadurai1273 2 роки тому

    Thanks for the informative video.

  • @payeldutta698
    @payeldutta698 3 роки тому +1

    sir ,can you please help me out in one thing. In the QGIS shell when i running the command 'py3_env', there always pops up that 'py3_env' is not recognised as an command or operator and i also added the path of python file in system settings. But nothing is working.

    • @OpenGeoLab
      @OpenGeoLab  3 роки тому

      You can check this link...
      landscapearchaeology.org/2018/installing-python-packages-in-qgis-3-for-windows/
      Try second option given in the above link..if first is not working for you...
      But first option sholud work...if it is not working it means there problem with python..

    • @aekeshkumar3905
      @aekeshkumar3905 2 роки тому

      I am facing same problem..have you solved this error

  • @mrigendutta4118
    @mrigendutta4118 2 роки тому

    I tried installing imdlib using qgis, but i am not being able to install it. The output it displays is "no module named pip". Could you please help me out with it

    • @OpenGeoLab
      @OpenGeoLab  2 роки тому

      you can use vscode IDE also...it is very light and easy to use..
      1. Download and install python from this link..www.python.org/downloads/windows/
      2. Download and install vscode...from this link..code.visualstudio.com/download
      3. Then open vscode and create new file and select python language..
      4. In the bottom left of vscode there will be option for selecting python interpretor...click and select the python which you have installed...if more than one python version is installed.
      4. Then in the vscode terminal type... pip install imdlib.......and press enter....imdlib will be installed
      5. Then copy Nd run the script in the vscode..

  • @nishantsaxena1976
    @nishantsaxena1976 2 роки тому

    Getting IndexError: index 31 is out of bounds for axis 1 with size 31 when downloading tmax

  • @akashsain5030
    @akashsain5030 2 роки тому

    really very useful. Thanks a lot.

  • @anayak62
    @anayak62 3 роки тому

    Can you pl let me know how to download the data only for a particular river basin e.g. all the gridded data of Krishna river basin. I am clueless about it. Pl help me.

    • @OpenGeoLab
      @OpenGeoLab  3 роки тому

      what you can do download and convert data for whole country after that you can follow following steps:
      First you can convert your csv data into point shapefile in QGIS..many videos are available on youtube for that...you can check this link also.
      hatarilabs.com/ih-en/how-to-import-spreadsheet-data-into-qgis
      2. then clip your point shapefile data using your study area shapefile in QGIS...using clip tool under vector menu....
      Finally if you want data in excel or csv data...you can export data in csv or just open the .dbf file associated with shapefile in excel and save it as excel file

  • @subhrajitdas1167
    @subhrajitdas1167 2 роки тому

    How to add those codes script that you have attached in the description. You are showing in this video it's directly opened while you are opening pyCharm. You please tell how to open the file.

    • @OpenGeoLab
      @OpenGeoLab  2 роки тому

      Just copy paste the code in the pycharm IDE...or you can use vscode IDE also...it is very light and easy to use..
      1. Download and install python from this link..www.python.org/downloads/windows/
      2. Download and install vscode...from this link..code.visualstudio.com/download
      3. Then open vscode and create new file and select python language..
      4. In the bottom left of vscode there will be option for selecting python interpretor...click and select the python which you have installed...if more than one python version is installed.
      4. Then in the vscode terminal type... pip install imdlib.......and press enter....imdlib will be installed
      5. Then copy Nd run the script in the vscode..

  • @ffmdirectoratecwc8807
    @ffmdirectoratecwc8807 Рік тому

    how to process .grd imd Rainfall data in Arcgis

  • @kingwai5748
    @kingwai5748 3 роки тому

    Really helpful. Thank you.

  • @subhrajitdas1167
    @subhrajitdas1167 2 роки тому

    Tutorial was excellent but unfortunately audio is not that clear. Sometime it was that low became unable to hear some typical terms

    • @OpenGeoLab
      @OpenGeoLab  2 роки тому

      Sorry for that... I didn't have good microphone at that time.....My recent videos has clear audio now..

    • @subhrajitdas1167
      @subhrajitdas1167 2 роки тому

      I am very new to coding. How can I open this code file and run?

  • @OpenGeoLab
    @OpenGeoLab  2 роки тому

    you can use vscode IDE also...it is very light and easy to use..
    1. Download and install python from this link..www.python.org/downloads/windows/
    2. Download and install vscode...from this link..code.visualstudio.com/download
    3. Then open vscode and create new file and select python language..
    4. In the bottom left of vscode there will be option for selecting python interpretor...click and select the python which you have installed...if more than one python version is installed.
    4. Then in the vscode terminal type... pip install imdlib.......and press enter....imdlib will be installed
    5. Then copy Nd run the script in the vscode..

  • @RiteshKumar-gy6gc
    @RiteshKumar-gy6gc Рік тому

    Thanks , it really works

  • @khetbook
    @khetbook 3 роки тому

    Hello, very infomative video,
    but what if i have downloaded daily gridded data, then how can we convert it into csv?

  • @manishamallick2853
    @manishamallick2853 3 роки тому

    Sir, when you do for tmax, wouldnt it be needed to change grid resolution in the sequence?

    • @OpenGeoLab
      @OpenGeoLab  3 роки тому +1

      Already condition is kept in code for that...

    • @manishamallick2853
      @manishamallick2853 3 роки тому

      Yes, sorry for the question. I noticed it. I tried using QGIS but in the text file after opening OSgeo4wshell, some problem I am facing. Now trying using pycharm

    • @AmanGupta-lx7qu
      @AmanGupta-lx7qu 2 роки тому

      Manisha can u help in this

  • @nikjs
    @nikjs 2 роки тому +1

    To the folks in comments: pls switch to linux. Half the problems you're getting stuck with are because of some weird thing happening in windows.

  • @ssafal1634
    @ssafal1634 2 роки тому

    how did you select only the points except the no data ones?

    • @OpenGeoLab
      @OpenGeoLab  2 роки тому

      I had imported the csv file in QGIS and based on day 1 data just sorted the column and and then selected the -9999 values and inverted the selection

  • @rajneeshdwevedi3141
    @rajneeshdwevedi3141 3 роки тому

    Thanks will work on this

  • @vijaysuryawanshi1374
    @vijaysuryawanshi1374 3 роки тому

    Thank you,. it is helpfull

  • @nbrahmareddy7690
    @nbrahmareddy7690 3 роки тому

    excuse me, sir, I am trying the code by changing path and year and all but not getting CSV files how to get it, sir?
    please help me sir thank you,....

    • @OpenGeoLab
      @OpenGeoLab  3 роки тому

      What is the error you are getting..??

    • @nbrahmareddy7690
      @nbrahmareddy7690 3 роки тому

      @@OpenGeoLab Thnx a lot sir , actually yesterday it wasnt successful but now it is okay

  • @mayankupadhyay6058
    @mayankupadhyay6058 2 роки тому

    how installation in jupyter is different

  • @shubhambhadoriya8346
    @shubhambhadoriya8346 2 місяці тому

    thank you

  • @dharti_doctor
    @dharti_doctor 3 роки тому

    Traceback (most recent call last):
    File "E:\pycharmcode\main.py", line 24, in
    data = imd.open_data(variable, start_yr, end_yr,'yearwise', file_dir) # this will open the data downloaded and saved in the location mentioned in previous line
    NameError: name 'imd' is not defined
    Hi, PyCharm
    Process finished with exit code 1
    why is it showing this error, pls help!

    • @OpenGeoLab
      @OpenGeoLab  3 роки тому

      I think imdlib library is not installed ...first install the imdlib library..

    • @dharti_doctor
      @dharti_doctor 3 роки тому

      @@OpenGeoLab Dear Sir, it is installed, is there any change in that command?, can I run this code in any other environment as I'm not finding the imdlib for conda, and as u said i think the imdlib isnt getting installed on other environments

    • @dharti_doctor
      @dharti_doctor 3 роки тому

      i am using python 3.9 environment, imdlib is showing in the list of libraries still the error is showing

    • @OpenGeoLab
      @OpenGeoLab  3 роки тому

      Imdlib can be installed in conda environment...check this..pypi.org/project/imdlib/

  • @nandhini2079
    @nandhini2079 3 роки тому

    Great job👍

  • @mothernature1992
    @mothernature1992 Рік тому

    not able to download rainfall data with latest QGIS software . can someone help me with it ?
    sir, also in pycharm error shown ,
    File "C:\Users\pawar\PycharmProjects\pythonProject\main.py", line 16, in
    data = imd.open_data(variable, start_yr, end_yr,'yearwise', file_dir) # this will open the data downloaded and saved in the location mentioned in previous line
    File "C:\Users\pawar\PycharmProjects\pythonProject\venv\lib\site-packages\imdlib\core.py", line 672, in open_data
    with open(fname, 'rb') as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'E:/imd_data//2015.grd'

  • @vishalchauhan9832
    @vishalchauhan9832 3 роки тому

    You are great sir!

  • @ayandas9946
    @ayandas9946 3 роки тому

    Sir the code gives me error

  • @sheelaprasad6949
    @sheelaprasad6949 2 роки тому

    run o-help for a list of available commands
    C:\Program Files\QGIS 3.24.0>py3_env
    'py3_env' is not recognized as an internal or external command,
    operable program or batch file.
    C:\Program Files\QGIS 3.24.0>
    I am facing an error while using Qgis. Can you please guide me through this

    • @OpenGeoLab
      @OpenGeoLab  2 роки тому

      you can use vscode IDE also...it is very light and easy to use..
      1. Download and install python from this link..www.python.org/downloads/windows/
      2. Download and install vscode...from this link..code.visualstudio.com/download
      3. Then open vscode and create new file and select python language..
      4. In the bottom left of vscode there will be option for selecting python interpretor...click and select the python which you have installed...if more than one python version is installed.
      4. Then in the vscode terminal type... pip install imdlib.......and press enter....imdlib will be installed
      5. Then copy Nd run the script in the vscode..

  • @NEHAGUPTA-fo3ny
    @NEHAGUPTA-fo3ny 3 роки тому

    i used your code but getting very different excel file, in in days rows I am getting more than 365/ 366 days its approx 3000 days. how to fix this

    • @OpenGeoLab
      @OpenGeoLab  3 роки тому

      This code is for yearly IMD 0.25 deg rainfall and 1 deg min and max temperature data only I have written code using the control file given on imd website...if your data is from some other source..it will not give proper result..
      Can u mail me one or two of your files..I will try to run on my side..

  • @payelghosh2667
    @payelghosh2667 2 роки тому

    Hello sir, i am getting this error continuously. Can u tell me what's wrong?
    C:\Python310\python.exe C:/Users/APART/Downloads/imd_data_csv.py
    Traceback (most recent call last):
    File "C:\Users\APART\Downloads\imd_data_csv.py", line 18, in
    data = imd.open_data(variable, start_yr, end_yr, 'yearwise',
    File "C:\Python310\lib\site-packages\imdlib\core.py", line 314, in open_data
    with open(fname, 'rb') as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'I:/paper/imd_data//rain/2018.grd'
    Process finished with exit code 1

    • @OpenGeoLab
      @OpenGeoLab  2 роки тому

      There is double // after imd in the path...just remove one / and it may work
      Code is not able to find the downloaded files...please download data and put them in the folder as shown in the video ...variable wise create folder and put files and rename to year.grd...

    • @payelghosh2667
      @payelghosh2667 2 роки тому

      @@OpenGeoLab :Sir I have already done all that has been shown exactly in the video (deleted the download data line and also saved the data with year name). // disappeared after i omitted the / at the end of my path file. However still this error is coming
      Traceback (most recent call last):
      File "C:\Users\APART\Downloads\imd_data_csv.py", line 18, in
      data = imd.open_data(variable, start_yr, end_yr, 'yearwise', file_dir) # this will open the data downloaded and saved in the location mentioned in previous line
      File "C:\Python310\lib\site-packages\imdlib\core.py", line 314, in open_data
      with open(fname, 'rb') as f:
      FileNotFoundError: [Errno 2] No such file or directory: 'E:/imd_data/rain/2018.grd'
      I am not able to understand why it is not finding the file.

    • @OpenGeoLab
      @OpenGeoLab  2 роки тому

      @@payelghosh2667 see this video
      ua-cam.com/video/40Dvj6MwGTs/v-deo.html
      it will download the data as well as convert to csv

  • @krishnabarman6381
    @krishnabarman6381 2 місяці тому

    Sir please share next vedio

  • @DeepakKumar-pm7ie
    @DeepakKumar-pm7ie 3 роки тому

    Please màke video on adding marker on shapefile

  • @satyajitdas1811
    @satyajitdas1811 3 роки тому

    Sir please share the full code for data extraction by pycharm in ward format through comments. If you share me the code I would be great full to sir .please.

    • @satyajitdas1811
      @satyajitdas1811 3 роки тому

      This is my email dassatyajit458@gmail.com

    • @OpenGeoLab
      @OpenGeoLab  3 роки тому

      Code link is in description of the video...

  • @AmanGupta-lx7qu
    @AmanGupta-lx7qu 2 роки тому

    Sir can u give me your email i have some issues