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.
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..
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
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..
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.
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
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.
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..
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..
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
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 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
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'
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
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..
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..
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
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...
@@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.
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.
I changed the path location and also changed the ending year and nothing but it's shows error how to slove this ???
Thanks for this information sir, it saved my project!
I am not able to extract temp data
Excellent 🎉 coding !
How do we match spatial resolution of temperature to that of rainfal (0.25 degree)?
Thanks for the informative video.
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.
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..
I am facing same problem..have you solved this error
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
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..
Getting IndexError: index 31 is out of bounds for axis 1 with size 31 when downloading tmax
really very useful. Thanks a lot.
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.
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
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.
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..
how to process .grd imd Rainfall data in Arcgis
Really helpful. Thank you.
Tutorial was excellent but unfortunately audio is not that clear. Sometime it was that low became unable to hear some typical terms
Sorry for that... I didn't have good microphone at that time.....My recent videos has clear audio now..
I am very new to coding. How can I open this code file and run?
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..
Thanks , it really works
Hello, very infomative video,
but what if i have downloaded daily gridded data, then how can we convert it into csv?
Sir, when you do for tmax, wouldnt it be needed to change grid resolution in the sequence?
Already condition is kept in code for that...
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
Manisha can u help in this
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.
how did you select only the points except the no data ones?
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
Thanks will work on this
Thank you,. it is helpfull
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,....
What is the error you are getting..??
@@OpenGeoLab Thnx a lot sir , actually yesterday it wasnt successful but now it is okay
how installation in jupyter is different
THANKS A LOT IT WORKED TYSM
thank you
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!
I think imdlib library is not installed ...first install the imdlib library..
@@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
i am using python 3.9 environment, imdlib is showing in the list of libraries still the error is showing
Imdlib can be installed in conda environment...check this..pypi.org/project/imdlib/
Great job👍
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'
You are great sir!
Sir the code gives me error
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
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..
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
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..
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
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...
@@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.
@@payelghosh2667 see this video
ua-cam.com/video/40Dvj6MwGTs/v-deo.html
it will download the data as well as convert to csv
Sir please share next vedio
Please màke video on adding marker on shapefile
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.
This is my email dassatyajit458@gmail.com
Code link is in description of the video...
Sir can u give me your email i have some issues