ruithnadsteud / yt_georaster

A package for handling geotiff files and georeferenced datasets within yt.
1 stars 2 forks source link

remove step during selection of clipping window extent to primary raster bounds #61

Closed deastwoo closed 2 years ago

deastwoo commented 2 years ago

The step of clipping selections by the extent of the primary raster was suggested by me originally as a way to avoid returning arrays filled with nodata values when a selection is poorly defined through human error. Unfortunately this really limits the power of what yt/yt_georaster can do when it comes to creating mosaics of images from different scenes.

I have commented out the two lines of code which performed the clipping for now as we may want to re-introduce this as an option.

Now, the window selection is not limited to the domain of the dataset and will fill the selection outside the bounds of the dataset with zeros.