Raster handler#
Some functions to manipulate raster files#
|
Opening a raster with gdal. |
|
Reading a raster file with gdal and return a np.ndarray storing the different data bands according the SMASH model boundingbox. |
|
Reproject the dataset raster accoding a new resolution in the x and y directions |
|
Read the raster bands from gdal object and crop the array according the window |
|
Read the raster bands from gdal object and crop the array according the window |
|
write a gdal object to a new file |
|
Getting the GeoTransform coeficients from a gdal object |
Compute the dataset array window (from the geotransform) according the Smash mesh |
|
|
Function which compute the bounding boxes union of 2 input bbox. |
|
Function to get the bbox from a raster dataset opened with Gdal |
|
Function to get the bbox of a defined window of a dataset |
|
Function to get the window of a defined bbox of a dataset |
|
Function to crop an array according a window |