Automatic and accurate detection of clouds and cloud shadows is a critical aspect of optical remote sensing image preprocessing. This paper provides a time series maximum and minimum mask method (TSMM) for cloud and cloud shadow detection. Firstly, the Cloud Score+S2_HARMONIZED (CS+S2) is employed as a preliminary mask for clouds and cloud shadows. Secondly, we calculate the ratio of the maximum and sub-maximum values of the blue band in the time series, as well as the ratio of the minimum and sub-minimum values of the near-infrared band in the time series, to eliminate noise from the time series data. Finally, the maximum value of the clear blue band and the minimum value of the near-infrared band after noise removal are employed for cloud and cloud shadow detection, respectively. A national and a global dataset were used to validate the TSMM, and it was quantitatively compared against five other advanced methods or products. When clouds and cloud shadows are detected simultaneously, in the S2ccs dataset, the overall accuracy (OA) reaches 0.93 and the F1 score reaches 0.85. Compared with the most advanced CS+S2, there are increases of 3% and 9%, respectively. In the CloudSEN12 dataset, compared with CS+S2, the producer’s accuracy (PA) and F1 score show increases of 10% and 4%, respectively. Additionally, when applied to Landsat-8 images, TSMM outperforms Fmask, demonstrating its strong generalization capability.
Rising greenhouse gas concentrations have exacerbated global warming, elevating the importance of land use and land cover (LULC) changes in achieving carbon neutrality. This is especially true in coastal areas, which face dual pressures from rapid urbanization and the need to protect carbon sinks. This study developed an SD-MCCA coupling framework to predict the dynamic changes in LULC in four SSP scenarios (SSP126, SSP245, SSP370, SSP585) in the coastal zone of Zhejiang Province from 2020 to 2100. Among them, the carbon storage was estimated by the InVEST model, and the dual-target optimization was carried out using the NSGA-II algorithm. Results indicated that construction land expanded significantly across all scenarios (50.3–110.2%), leading to a decline in carbon storage. However, outcomes were highly scenario-dependent; by 2100, carbon storage under the SSP126 pathway (1032.94 Mt) was notably higher than under the SSP585 pathway (1012.90 Mt). Coastal wetlands and forests emerged as major contributors to carbon storage, exhibiting high positive contribution scores, while construction land sites show significant negative correlations. Dual-target optimization achieved collaborative improvement: the optimized SSP126 scenario increased carbon storage by 1.16%, while economic benefits increased by 9.05%. The policy proposal emphasizes the priority of the SSP126 scenario, restricts the expansion of construction land, and enforces the ecological red line of wetlands and forests, guided by the phased Pareto optimal strategy.