BenjMy / pycathy_wrapper

A Python wrapper for CATHY (Catchment Hydrology) - [Camporese et al., 2010]
https://benjmy.github.io/pycathy_wrapper/
Boost Software License 1.0
7 stars 1 forks source link

DEM with lat/long coordinates #28

Open BenjMy opened 2 months ago

BenjMy commented 2 months ago

Issue when creating a mesh from a DEM with the specification of xll_corner and yll_corner. The returns mesh does not have the same dimension as the dimension of the raster DEM.

Also need to check if the mesh is correctly updated once produced/after modifying prepro inputs i.e.;

Try to reproduce it with Weil et al example

simu.update_prepo_inputs(
    DEM=dem_mat,
    xllcorner=1e4,
    yllcorner=4e3,
    nstr=20,
    zratio=zr,
    base=max(zb),
)

simu.update_parm(TRAFLAG=0)
simu.create_mesh_vtk(verbose=True)