In the case of rasters, perhaps we would want to make a utils.gridded_export that takes the site_mask and a list of rasters, and warps them into an all-no-data file (created from the site mask), and then masks the image.
man gdalwarp skrev:
Mosaicing into an existing output file is supported if the output file
already exists. The spatial extent of the existing file will not be
modified to accommodate new data, so you may have to remove it in that
case, or use the -overwrite option.
In the case of rasters, perhaps we would want to make a
utils.gridded_export
that takes thesite_mask
and a list ofrasters
, and warps them into an all-no-data file (created from the site mask), and then masks the image.man gdalwarp
skrev: