Skip to content

Commit

Permalink
Merge pull request #2565 from adybbroe/add-arctic-weather-satelliter-…
Browse files Browse the repository at this point in the history
…l1b-reader

Add level-1 readers for the arctic weather satelliter data
  • Loading branch information
adybbroe authored Jan 14, 2025
2 parents d8fa35d + 0b9760c commit 948dcfa
Show file tree
Hide file tree
Showing 14 changed files with 2,328 additions and 2 deletions.
1 change: 1 addition & 0 deletions satpy/etc/composites/microwave.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sensor_name: microwave
46 changes: 46 additions & 0 deletions satpy/etc/composites/mwr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
sensor_name: microwave/mwr

composites:
mw183_humidity:
standard_name: mw183_humidity
compositor: !!python/name:satpy.composites.GenericCompositor
prerequisites:
- name: '11'
- name: '13'
- name: '15'

mw183_humidity_surface:
compositor: !!python/name:satpy.composites.RGBCompositor
prerequisites:
- name: '9'
- name: '10'
- name: '12'
standard_name: mw_humidity_surface

mw325_humidity_surface:
compositor: !!python/name:satpy.composites.RGBCompositor
prerequisites:
- name: '9'
- name: '10'
- name: '19'
standard_name: mw_humidity_surface

mw325_humidity:
compositor: !!python/name:satpy.composites.RGBCompositor
prerequisites:
- name: '16'
- name: '18'
- name: '19'
standard_name: mw_humidity_surface

ch1_tbs_colors:
compositor: !!python/name:satpy.composites.SingleBandCompositor
prerequisites:
- name: '1'
standard_name: tbs_colors

ch10_tbs_colors:
compositor: !!python/name:satpy.composites.SingleBandCompositor
prerequisites:
- name: '10'
standard_name: tbs_colors
15 changes: 15 additions & 0 deletions satpy/etc/enhancements/generic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1289,3 +1289,18 @@ enhancements:
image_ready:
standard_name: image_ready
operations: []

mw183_humidity:
# matches EPS-Sterna and AWS MWR, and ATMS and MHS
standard_name: mw183_humidity
operations:
- name: stretch
method: !!python/name:satpy.enhancements.stretch
kwargs:
stretch: crude
min_stretch: [290, 290, 290]
max_stretch: [190, 190, 190]
- name: gamma
method: !!python/name:satpy.enhancements.gamma
kwargs:
gamma: [1.5, 1.2, 1.2]
24 changes: 24 additions & 0 deletions satpy/etc/enhancements/mwr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
enhancements:

mw_humidity_surface:
standard_name: mw_humidity_surface
operations:
- name: inverse
method: !!python/name:satpy.enhancements.invert
args:
- [true, true, true]
- name: stretch
method: !!python/name:satpy.enhancements.stretch
kwargs: {stretch: linear}
- name: gamma
method: !!python/name:satpy.enhancements.gamma
kwargs: {gamma: 1.2}

tbs_colors:
standard_name: tbs_colors
operations:
- name: colorize
method: !!python/name:satpy.enhancements.colorize
kwargs:
palettes:
- {colors: spectral, min_value: 280, max_value: 180}
2 changes: 1 addition & 1 deletion satpy/etc/readers/atms_sdr_hdf5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ reader:
file_types:
atms_sdr_hdf5:
file_reader: !!python/name:satpy.readers.atms_sdr_hdf5.ATMS_SDR_FileHandler
file_patterns: ['SATMS_{platform_shortname}_d{start_time:%Y%m%d_t%H%M%S%f}_e{end_time:%H%M%S%f}_b{orbit:5d}_c{creation_time:%Y%m%d%H%M%S%f}_{source}.h5', 'GATMO_{platform_shortname}_d{start_time:%Y%m%d_t%H%M%S%f}_e{end_time:%H%M%S%f}_b{orbit:5d}_c{creation_time:%Y%m%d%H%M%S%f}_{source}.h5']
file_patterns: ['SATMS_{platform_shortname}_d{start_time:%Y%m%d_t%H%M%S%f}_e{end_time:%H%M%S%f}_b{orbit:5d}_c{creation_time:%Y%m%d%H%M%S%f}_{source}.h5', 'GATMO_{platform_shortname}_d{start_time:%Y%m%d_t%H%M%S%f}_e{end_time:%H%M%S%f}_b{orbit:5d}_c{creation_time:%Y%m%d%H%M%S%f}_{source}.h5','GATMO-SATMS_{platform_shortname}_d{start_time:%Y%m%d_t%H%M%S%f}_e{end_time:%H%M%S%f}_b{orbit:5d}_c{creation_time:%Y%m%d%H%M%S%f}_{source}.h5']
# Example filenames
# GATMO_j01_d20221220_t0910240_e0921356_b26361_c20221220100456680030_cspp_dev.h5
# SATMS_j01_d20221220_t0910240_e0921356_b26361_c20221220100456348770_cspp_dev.h5
Expand Down
Loading

0 comments on commit 948dcfa

Please sign in to comment.