Example notebook to download weather case studies
Posted: Mon Dec 22, 2025 3:45 pm America/New_York
Here is a notebook that downloads many MERRA-2 fields and IMERG data for weather case studies (lat/lon/time boxes) specified by the user in a structured list. It was written largely by Google Gemini but with plenty of debugging needed, so I am posting here.
It uses THREDDS aggregations by month, which unfortunately do not pass the user's credentials properly when multiple such URLs are opened via xarray open_mfdataset(). Hours and hours wasted learning this of course. The authentication regime is hell.
https://mpocanes.github.io/M2_IMERG_MERGIR_downloader_Gemini.html
It uses THREDDS aggregations by month, which unfortunately do not pass the user's credentials properly when multiple such URLs are opened via xarray open_mfdataset(). Hours and hours wasted learning this of course. The authentication regime is hell.
https://mpocanes.github.io/M2_IMERG_MERGIR_downloader_Gemini.html