-
Notifications
You must be signed in to change notification settings - Fork 0
Change MODIS QA settings
YaraSarrouh edited this page Aug 2, 2024
·
2 revisions
In the WorldPeatland code, there are two versions of the QA settings:
-
QA_settings: This 'strict' option retains only the highest quality data, ensuring minimal contamination.
-
QA_settings_v1: This less restrictive option allows for some cloud contamination in the images. It provides more timesteps, which might include non-contaminated pixels that can be useful, particularly in very cloudy areas.
You can customize your own QA settings by creating a folder that contains separate JSON files for each QA setting, organized by data product. To do this, follow these steps:
- Create a directory (folder) for your QA settings.
- Inside this directory, add JSON files for each variable within the data product. For example, have a separate JSON file for LST day and LST night. The QA application processes each variable individually, so each variable should have its own JSON file, rather than one JSON file per MODIS data product. Ensure that the JSON files are named consistently with the ones provided in the template versions (e.g., QA_settings and QA_settings_v1).
- How to choose the QA settings inside each json.
To apply these QA settings, run the apply_qa function with the path to your QA settings folder as the second argument.