How should one use a cloud mask on Google Earth Engine (GEE)/R for the MODIS FireMask data? The mask should address the cloud, QA (quality band), and other unnecessary bands of the "MODIS/006/MOD14A2" dataset (link given below).
https://developers.google.com/earth-engine/datasets/catalog/MODIS_006_MOD14A2
Thank you.