Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basin_index data #178

Closed
Safa136 opened this issue May 11, 2023 · 8 comments
Closed

Basin_index data #178

Safa136 opened this issue May 11, 2023 · 8 comments
Labels
datasets supporting new datasets documentation Improvements or additions to documentation

Comments

@Safa136
Copy link

Safa136 commented May 11, 2023

I wonder where I can download the merit_hydro_index, as I am using merit-hydro for hydrography function and require data for basin-index corresponding to merit hydro data.

@DirkEilander
Copy link
Contributor

DirkEilander commented May 15, 2023

The basin index file is basically a vector representation of (the bounding box of) your basins. This file is (only) needed to be able to load only the required area when delineating a subbasin.

I recommend using the IHU upscaled 30 arcsec (~1km) resolution MERIT Hydro which includes a 30sec_basins.gpkg basin index file. You can download this data from Zenodo . Alternatively, you create you're own basin index file by vectorizing a grid with unique IDs per basin obtained using e.g. the pylfwdir.basins method.

Not also this issue #156 to make the index an optional argument.

@Safa136
Copy link
Author

Safa136 commented May 16, 2023

Thank you DirkEilander.

@Safa136
Copy link
Author

Safa136 commented May 16, 2023

What about era5_orography data? I believe this is the elevation data! but I cant find it to download.

@hboisgon
Copy link
Contributor

The orography data for ERA5 is actually geopotential and because it’s a ERA5 input rather than output, you can download it from the documentation: https://confluence.ecmwf.int/display/CKB/ERA5%3A+data+documentation#ERA5:datadocumentation-Table1
In that table, it is line 9 geopotential.

@Safa136
Copy link
Author

Safa136 commented May 21, 2023

Thank you very much Hboisgon.

@Safa136
Copy link
Author

Safa136 commented May 22, 2023

Please help with this error:

build - main - ERROR - Geotransform and/or shape do not match.
xarray.core.merge.MergeError: Geotransform and/or shape do not match
Error1

@hboisgon
Copy link
Contributor

Hi @Safa136 how did you preapre your merit_hydro/{variable}.tif file? Note that for hydromt to consider a dataset has the same data source (data catalog entry), all variables must have exactly the same grid definition (CRS, resolution, x, y coordinates). If you merge several tif files together (for example in QGIS), you may easily make mistake and get merged tif variables in slightly different grid. This is why we recommend to use the vrt format espeically for Merit Hydro. You can learn more here how to produce a vrt file based on several tifs: https://deltares.github.io/hydromt/latest/user_guide/data_types.html#multi-variable-virtual-raster-tileset-vrt

@hboisgon hboisgon added documentation Improvements or additions to documentation datasets supporting new datasets labels May 23, 2023
@hboisgon
Copy link
Contributor

By the way, input data related issues are reported in issue #157. I'll now close this one to have one single issue on the topic. If you find something else related to input data, please post there and for new issue, just open a new one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasets supporting new datasets documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants