Skip to content

Commit

Permalink
Merge pull request #2853 from ameraner/feature_add_li_composites
Browse files Browse the repository at this point in the history
Add first version of LI composites and enhancements for point and accumulated products
  • Loading branch information
mraspaud authored Jul 26, 2024
2 parents 5ebe2eb + f38a85c commit 8ea1e85
Show file tree
Hide file tree
Showing 6 changed files with 252 additions and 4 deletions.
20 changes: 20 additions & 0 deletions satpy/etc/areas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
37 changes: 37 additions & 0 deletions satpy/etc/composites/fci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
70 changes: 68 additions & 2 deletions satpy/etc/composites/li.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,75 @@
---
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
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
71 changes: 71 additions & 0 deletions satpy/etc/composites/seviri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions satpy/etc/enhancements/generic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
54 changes: 52 additions & 2 deletions satpy/etc/enhancements/li.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,60 @@
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

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}

0 comments on commit 8ea1e85

Please sign in to comment.