ArcticSnow / TopoPyScale

TopoPyScale: a Python library to perform simplistic climate downscaling at the hillslope scale
https://topopyscale.readthedocs.io
MIT License
39 stars 9 forks source link

check elevation of highest pressure level in initialization #56

Open ArcticSnow opened 1 year ago

ArcticSnow commented 1 year ago

In the case the user misses pressure level high enough in the climate forcing dataset, the problem is identified only at the downscaling step. We can add a small check in the topoclass object initialization checking we have sufficient pressure levels.

for task 1: check the $min(Z{highest plevel} (x,y,time)) > max(Z{dem}(x,y))$

ealonsogzl commented 1 year ago

I suppose that optionally the necessary pressure levels could even be obtained automatically from the DEM? It would avoid having to wait twice for the CDS queue if by mistake the right levels are not set.