Open bbuzz31 opened 2 months ago
@bbuzz31 is this the checkContainment
function starting at line 775 or the checkContainment
method that is part of the WeatherModel
class?
I think the general fix for this is to just check whether the model bbox contains the world bbox and, if so, set the bbox to be the world and return True
. That should work in any case since the only thing checkContainment
does is pass back a True or False. I don't know if that will impact anything further down the line (e.g. how will the DEM download be affected if you download a whole-earth DEM? Setting the weather model bounds to be the world bbox could work for that I think
the latter; the method of the WeatherModel class (sorry for confusion)
Also, I am concerned that because the final result has NaN values. I think these may be in a narrow regions of cell padded beyond the global extent. I think setting the bbox as you proposed should fix that but we'll need to check.
Describe the bug when running on a global HRES file (e.g., bounding box: -90 90 -180 179.9296785) raider checkContainment fails on zenith. I suspect if fails on slants as well.
run_global.yaml.txt
Full error message
I am able to change line 92 in processWM.py to make it run by adding HRES to the exception (in addition to HRRR). There are
nans
in the result that need to be checked though.I also forced the interpolated cube datatype to float32 to conserve memory (line 200 in delay.py:
np.zeros(..., dtype=np.float32)
)Note that the giant processed weather model can be compressed as follows with xarray: