From c2f30d74e8f1d7552177c759746a5841c1be9e68 Mon Sep 17 00:00:00 2001 From: andream Date: Mon, 8 Jul 2024 16:14:33 +0200 Subject: [PATCH 1/3] add first version of li composites and enhancements --- satpy/etc/composites/fci.yaml | 37 +++++++++++++++ satpy/etc/composites/li.yaml | 69 +++++++++++++++++++++++++++- satpy/etc/composites/seviri.yaml | 71 +++++++++++++++++++++++++++++ satpy/etc/enhancements/generic.yaml | 4 ++ satpy/etc/enhancements/li.yaml | 52 ++++++++++++++++++++- 5 files changed, 230 insertions(+), 3 deletions(-) diff --git a/satpy/etc/composites/fci.yaml b/satpy/etc/composites/fci.yaml index 963a5a198f..d4481a7302 100644 --- a/satpy/etc/composites/fci.yaml +++ b/satpy/etc/composites/fci.yaml @@ -190,6 +190,43 @@ composites: - name: vis_04 standard_name: true_color_reproduction_color_stretch +### True Color with LI lightning + + true_color_with_night_ir105_acc_flash: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - acc_flash_alpha + - true_color_with_night_ir105 + + true_color_with_night_ir105_acc_flash_area: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - acc_flash_area_alpha + - true_color_with_night_ir105 + + true_color_with_night_ir105_acc_flash_radiance: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - acc_flash_radiance_alpha + - true_color_with_night_ir105 + + true_color_with_night_ir105_flash_radiance: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - flash_radiance_alpha + - true_color_with_night_ir105 + + true_color_with_night_ir105_group_radiance: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - group_radiance_alpha + - true_color_with_night_ir105 + ### GeoColor geo_color: compositor: !!python/name:satpy.composites.DayNightCompositor diff --git a/satpy/etc/composites/li.yaml b/satpy/etc/composites/li.yaml index f368bcf15e..27e2cf09f7 100644 --- a/satpy/etc/composites/li.yaml +++ b/satpy/etc/composites/li.yaml @@ -2,8 +2,75 @@ sensor_name: visir/li composites: + + acc_flash: + description: Composite to colorise the AF product using the flash accumulation + compositor: !!python/name:satpy.composites.SingleBandCompositor + standard_name: acc_flash + prerequisites: + - flash_accumulation + acc_flash_alpha: + description: Composite to colorise the AF product using the flash accumulation with transparency + compositor: !!python/name:satpy.composites.SingleBandCompositor + standard_name: acc_flash_alpha + prerequisites: + - flash_accumulation + + acc_flash_area: + description: Composite to colorise the AFA product using the flash area + compositor: !!python/name:satpy.composites.SingleBandCompositor + standard_name: acc_flash_area + prerequisites: + - accumulated_flash_area + acc_flash_area_alpha: + description: Composite to colorise the AFA product using the flash area with transparency + compositor: !!python/name:satpy.composites.SingleBandCompositor + standard_name: acc_flash_area_alpha + prerequisites: + - accumulated_flash_area + + acc_flash_radiance: + description: Composite to colorise the AFR product using the flash radiance + compositor: !!python/name:satpy.composites.SingleBandCompositor + standard_name: lightning_radiance + prerequisites: + - flash_radiance + acc_flash_radiance_alpha: + description: Composite to colorise the AFR product using the flash radiance with transparency + compositor: !!python/name:satpy.composites.SingleBandCompositor + standard_name: lightning_radiance_alpha + prerequisites: + - flash_radiance + + flash_radiance: + description: Composite to colorise the LFL product using the flash radiance + compositor: !!python/name:satpy.composites.SingleBandCompositor + standard_name: lightning_radiance + prerequisites: + - radiance + flash_radiance_alpha: + description: Composite to colorise the LFL product using the flash radiance with transparency + compositor: !!python/name:satpy.composites.SingleBandCompositor + standard_name: lightning_radiance_alpha + prerequisites: + - radiance + + group_radiance: + description: Composite to colorise the LGR product using the flash radiance + compositor: !!python/name:satpy.composites.SingleBandCompositor + standard_name: lightning_radiance + prerequisites: + - radiance + group_radiance_alpha: + description: Composite to colorise the LGR product using the flash radiance with transparency + compositor: !!python/name:satpy.composites.SingleBandCompositor + standard_name: lightning_radiance_alpha + prerequisites: + - radiance + + # DEPRECATED, USE acc_flash_area instead flash_area: compositor: !!python/name:satpy.composites.SingleBandCompositor - standard_name: flash_area + standard_name: acc_flash_area prerequisites: - accumulated_flash_area diff --git a/satpy/etc/composites/seviri.yaml b/satpy/etc/composites/seviri.yaml index e53609d8e0..16ed147f39 100644 --- a/satpy/etc/composites/seviri.yaml +++ b/satpy/etc/composites/seviri.yaml @@ -598,3 +598,74 @@ composites: - method: equal value: High_semitransparent_above_snow_ice transparency: 60 + +### Composites with LI lightning + natural_color_with_night_ir_acc_flash: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - acc_flash_alpha + - natural_color_with_night_ir + + natural_color_with_night_ir_acc_flash_area: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - acc_flash_area_alpha + - natural_color_with_night_ir + + natural_color_with_night_ir_acc_flash_radiance: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - acc_flash_radiance_alpha + - natural_color_with_night_ir + + natural_color_with_night_ir_flash_radiance: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - flash_radiance_alpha + - natural_color_with_night_ir + + natural_color_with_night_ir_group_radiance: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - group_radiance_alpha + - natural_color_with_night_ir + + hrv_acc_flash: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - acc_flash_alpha + - HRV + + hrv_acc_flash_area: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - acc_flash_area_alpha + - HRV + + hrv_acc_flash_radiance: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - acc_flash_radiance_alpha + - HRV + + hrv_flash_radiance: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - flash_radiance_alpha + - HRV + + hrv_group_radiance: + compositor: !!python/name:satpy.composites.BackgroundCompositor + standard_name: imager_with_lightning + prerequisites: + - group_radiance_alpha + - HRV diff --git a/satpy/etc/enhancements/generic.yaml b/satpy/etc/enhancements/generic.yaml index cea87de760..04da1cfdd3 100644 --- a/satpy/etc/enhancements/generic.yaml +++ b/satpy/etc/enhancements/generic.yaml @@ -1269,3 +1269,7 @@ enhancements: stretch: crude min_stretch: [0,0,0] max_stretch: [1,1,1] + + imager_with_lightning: + standard_name: imager_with_lightning + operations: [] diff --git a/satpy/etc/enhancements/li.yaml b/satpy/etc/enhancements/li.yaml index c5bf41121c..12272e8657 100644 --- a/satpy/etc/enhancements/li.yaml +++ b/satpy/etc/enhancements/li.yaml @@ -1,10 +1,58 @@ enhancements: - flash_area: - standard_name: flash_area + acc_flash: + standard_name: acc_flash + operations: + - name: colorize + method: !!python/name:satpy.enhancements.colorize + kwargs: + palettes: + - {colors: ylorrd, min_value: 0, max_value: 5} + + acc_flash_alpha: + standard_name: acc_flash_alpha + operations: + - name: colorize + method: !!python/name:satpy.enhancements.colorize + kwargs: + palettes: + - {colors: ylorrd, min_value: 0, max_value: 5, + min_alpha: 120, max_alpha: 180} + + acc_flash_area: + standard_name: acc_flash_area operations: - name: colorize method: !!python/name:satpy.enhancements.colorize kwargs: palettes: - {colors: ylorrd, min_value: 0, max_value: 20} + + acc_flash_area_alpha: + standard_name: acc_flash_area_alpha + operations: + - name: colorize + method: !!python/name:satpy.enhancements.colorize + kwargs: + palettes: + - {colors: ylorrd, min_value: 0, max_value: 20, + min_alpha: 120, max_alpha: 180} + + lightning_radiance: + standard_name: lightning_radiance + operations: + - name: colorize + method: !!python/name:satpy.enhancements.colorize + kwargs: + palettes: + - {colors: ylorrd, min_value: 0, max_value: 1000} + + lightning_radiance_alpha: + standard_name: lightning_radiance_alpha + operations: + - name: colorize + method: !!python/name:satpy.enhancements.colorize + kwargs: + palettes: + - {colors: ylorrd, min_value: 0, max_value: 1000, + min_alpha: 120, max_alpha: 180} From a7d1a1e2e9a58a83bc4a04aa0f2e26da9cfbcbab Mon Sep 17 00:00:00 2001 From: andream Date: Mon, 8 Jul 2024 17:26:26 +0200 Subject: [PATCH 2/3] add 4km FCI grid --- satpy/etc/areas.yaml | 20 ++++++++++++++++++++ satpy/etc/composites/li.yaml | 3 +-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/satpy/etc/areas.yaml b/satpy/etc/areas.yaml index 55e7878e00..f1994b799c 100644 --- a/satpy/etc/areas.yaml +++ b/satpy/etc/areas.yaml @@ -443,6 +443,26 @@ mtg_fci_fdss_2km: upper_right_xy: [5567999.994203017, 5567999.994203017] units: m +mtg_fci_fdss_4km: + description: + MTG FCI Full Disk Scanning Service area definition + with 4 km SSP resolution + projection: + proj: geos + lon_0: 0 + h: 35786400 + x_0: 0 + y_0: 0 + ellps: WGS84 + no_defs: null + shape: + height: 2784 + width: 2784 + area_extent: + lower_left_xy: [-5567999.994203018, -5567999.994203018] + upper_right_xy: [5567999.994203017, 5567999.994203017] + units: m + # Full disk - segmented products mtg_fci_fdss_6km: description: diff --git a/satpy/etc/composites/li.yaml b/satpy/etc/composites/li.yaml index 27e2cf09f7..ac093d71d9 100644 --- a/satpy/etc/composites/li.yaml +++ b/satpy/etc/composites/li.yaml @@ -2,7 +2,6 @@ sensor_name: visir/li composites: - acc_flash: description: Composite to colorise the AF product using the flash accumulation compositor: !!python/name:satpy.composites.SingleBandCompositor @@ -68,7 +67,7 @@ composites: prerequisites: - radiance - # DEPRECATED, USE acc_flash_area instead + # DEPRECATED, USE acc_flash_area INSTEAD flash_area: compositor: !!python/name:satpy.composites.SingleBandCompositor standard_name: acc_flash_area From f38a85c23dad9450c3daaec2ce16043f7dd39711 Mon Sep 17 00:00:00 2001 From: andream Date: Mon, 8 Jul 2024 17:41:56 +0200 Subject: [PATCH 3/3] add more yaml comments --- satpy/etc/composites/li.yaml | 2 +- satpy/etc/enhancements/li.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/satpy/etc/composites/li.yaml b/satpy/etc/composites/li.yaml index ac093d71d9..71b832375a 100644 --- a/satpy/etc/composites/li.yaml +++ b/satpy/etc/composites/li.yaml @@ -1,6 +1,6 @@ --- sensor_name: visir/li - +# these are tentative recipes that will need to be further tuned as we gain experience with LI data composites: acc_flash: description: Composite to colorise the AF product using the flash accumulation diff --git a/satpy/etc/enhancements/li.yaml b/satpy/etc/enhancements/li.yaml index 12272e8657..49009808eb 100644 --- a/satpy/etc/enhancements/li.yaml +++ b/satpy/etc/enhancements/li.yaml @@ -1,4 +1,6 @@ enhancements: +# note that the colormap parameters are tuned for 5 minutes of files accumulation +# these are tentative recipes that will need to be further tuned as we gain experience with LI data acc_flash: standard_name: acc_flash