Hey guys,
having a problem with my script using the above mentioned code (class ECConcatDataRepository, function get_forecasts). I'm using the bbox of our model polygons from GIS-database and it seems to fail for some catchments.
The coordinate system is the same for the data source and GIS-data, and all bboxes are within the dataset extent. The code crashes at line 274 (return statement) because xy_inds is empty.
I'm wondering if the xy_mask assignment in the case of bbox might not work for all cases? That's line 254; xy_mask = ((x_mask)&(y_mask)). That at least seem to yield a mask with just False for the catchments that works causes the error.
Example of catchments that fails; 'LTM1-Atnasjø-002.032', 'LTMS-Gimdalsby-0097'.
We can either look at it at Vang or the week after, will try commit and paste the link to the repo here soon if someone wants to download and try to run the code