Closed d-saikrishna closed 8 months ago
@tauseefsshah to solve where you got stuck:
raster.read(1)
Opens only one band/array - You have to loop across bands/arrays and take mean. Let me know if you get stuck again.
@d-saikrishna Still doesn't work. I have updated the code to have the average rainfall per month and saving that as tif
but when I read it, it's still showing ValueError: negative dimensions are not allowed
. When I check the tif
in qgis, it looks good.
Interesting issues that we can propose:
Edit: There is already a PR on rasterstats for the issue. Hopefully it gets merged :) https://github.com/perrygeo/python-rasterstats/pull/136
@tauseefsshah
Once you are done with the scripts, create a small ETL diagram that we use in the README section. You can refer to the diagrams used in SENTINEL, BHUVAN etc.
You can create a duplicate slide in the following Presentation and download the image in the docs
folder within IMD folder.
https://docs.google.com/presentation/d/1YQ4t21dduS18D9CLj6zddQ5v9KdEenzoqPSaZu2BhRo/edit#slide=id.g27c4711d02d_0_0
Feel free to detail things out in the README section :)
@d-saikrishna I have created a PR for merging the dev-rainfall
branch into main
, please review the code once and merge it. I'll create the etl diagram and README and push to the same branch so please don't delete it after merging
@tauseefsshah I have merged the code and made a few changes to suit the file naming convention. Every thing worked fine except for one issue.
The code is breaking when I run for 2023 year. Please check that once.
@tauseefsshah could you check it for 2023 year once?
Data is not available for 2023 yet. Source: Link
https://imdpune.gov.in/cmpg/Realtimedata/Rainfall/Rain_Download.html# -- for realtime data - need a way to integrate this
Data for 2023 is now available ad added
@tauseefsshah We have to write script(s):
Rainfall
data from IMD (Indian Meteorological Department)Resources:
Additional references: