Masks the base_layer when initially reading it in the DataProcessor to ensure all datasets have the same dimensions at the end.
Changes the raster_to_dataframe method from sample to read as the GHS layer should already been aligned with the base_layer
When calling the mask method for the RasterLayer class, it first reprojects the mask_layer to the same crs of the RasterLayer.
The order of the alignment and the masking in the notebook should change, to be aligning first and then masking, and the masking is only needed for the vector layers (i.e. mv lines). This I will do in #339.
This PR fixes #352, it implements:
base_layer
when initially reading it in theDataProcessor
to ensure all datasets have the same dimensions at the end.raster_to_dataframe
method fromsample
toread
as the GHS layer should already been aligned with thebase_layer
mask
method for theRasterLayer
class, it first reprojects themask_layer
to the same crs of theRasterLayer
.