Ecostress
No description available
Install / Use
/learn @trangthuyvo0109/EcostressREADME
DECODING CLOUD MASK product from ECOSTRESS Level-2
A tutorial how to use the code ecostress_preprocessing.py to decode the Cloud Mask product from ECOSTRESS Level-2 Documentation of ECOSTRESS L-2: https://ecostress.jpl.nasa.gov/downloads/userguides/2_ECOSTRESS_L2_UserGuide_06182019.pdf
General description
ECOSTRESS L-2 CloudMask is a separate file that could be downloaded besides ECOSTRESS LST & Emissivity products. Information of how to download CloudMask could be found here: https://lpdaac.usgs.gov/products/eco2cldv001/
ECOSTRESS L-2 CloudMask is an 8-bit flag of cloud mask and cloud tests. The general information of each bit could be found in Table 7 of this file: https://ecostress.jpl.nasa.gov/downloads/userguides/2_ECOSTRESS_L2_UserGuide_06182019.pdf
The procedure to decode the 8-bit: (from right- to left)
- Read the first bit to determine if cloud mask was calculated or not. The cloud mask will not be calculated for pixels with bad or missing radiance data.
- Read the second bit to determnine if cloud was deteced or not in either of tests 1 and 2
- If test 1 and 2 fail, final cloud mask could be outcomes of cloud test in bits 1-3
- If test 1 - 3 fail, using final test in bit 4 is the land/water mask
Instructions
Example data is uploaded in /example/ . The folder contains two files:
ECO2LSTE.001_SDS_LST_doy2019278182133_aid0001.tif : ECOSTRESS LST
ECO2CLD.001_SDS_CloudMask_doy2019278182133_aid0001.tif : ECOSTRESS CloudMask
**A snapshot of ECOSTRESS LST and ECOSTRESS CloudMask **

Example code:
file_cloudmask = 'C:/Users/tvo/Documents/urban_project/ECO_large_04092020_cloudmask/ECO2CLD.001_SDS_CloudMask_doy2019264063150_aid0001.tif'
file_LST = '//uahdata/rhome/Blogging/ECOSTRESS_decode/ECO2LSTE.001_SDS_LST_doy2019278182133_aid0001.tif'
outFile = file.split('/ECO2')[0] + '/decoced/'+file.split('cloudmask/')[-1].split('.tif')[0]+'_decoded.tif'
cloud_mask(file_cloudmask, file_LST, outFile)
Example outcome:
Decoded Cloud Mask overlaying ECOSTRESS LST

Related Skills
node-connect
348.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
