raster stack editing specific pixel values for all layers

Hi all,
I am currently working on a land use classification using a multitemporal dataset. I have stacked the 4 different raster layers in QGIS originating from 4 different dates. My problem is that I don´t know how I can put a NaN value to all 4 layers, if there was an NaN value for 2 or more dates in the scene.
I tried using the band math tool but I am quite new to snap and not sure about the expression. I would also appreciate other solution suggestions.

Thanks a lot in advance :slight_smile:

you can enter individial NoData values in each band’s properties (via right-click).

As an alternative, you can create a valid-pixel mask (e.g. importing a vector or defining a mask in the mask manager) and exclude all pixels from the classification (at least for the operators which allow the selection of a ROI mask grafik )