Data inspectionΒΆ

Data can be plotted like usual, using the xarray or matplotlib routines:

import numpy as np
import xarray as xr
from matplotlib import pyplot as plt
# Load data
data = xr.open_dataset("data/oberschelden.nc")
plt.figure(figsize=(18,18))
plt.imshow(np.array([data.red,data.green,data.blue]).transpose(1,2,0))
plt.imshow(np.where(data.buildings_mask==1,1,np.nan),cmap="autumn_r",interpolation="None",alpha=0.5)
plt.show()
../../../_images/02_inspection_4_0.png