Skip to content

Commit

Permalink
Merge pull request #673 from djhoese/feat-dup-mirs-noaa21
Browse files Browse the repository at this point in the history
Add custom MiRS reader configuration for duplicated NOAA-20 coeffs as NOAA-21
  • Loading branch information
djhoese committed Jan 5, 2024
2 parents 66be0d6 + 07413ae commit 9d531a9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
17 changes: 17 additions & 0 deletions polar2grid/etc/readers/mirs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
reader:
data_files:
- url: "https://zenodo.org/record/10357932/files/limbcoef_atmsland_noaa20.txt"
known_hash: "08deca15afe8638effac9e6ccb442c2c386f5444926129d30a250d5840264c1d"
- url: "https://zenodo.org/record/10357932/files/limbcoef_atmsland_snpp.txt"
known_hash: "4b01543699792306711ef1699244e96186487e8a869e4ae42bf1f0e4d00fd063"
- url: "https://zenodo.org/record/10357932/files/limbcoef_atmssea_noaa20.txt"
known_hash: "07cd7874ff3f069cc3d473bdd0d1d19880ef01ac8d75cb0212a3687c059557f4"
- url: "https://zenodo.org/record/10357932/files/limbcoef_atmssea_snpp.txt"
known_hash: "d0f806051b80320e046bdae6a9b68616152bbf8c2dbf3667b9834459259c0d72"
# Temporary copy of noaa-20 files as noaa-21 files
- url: "https://zenodo.org/record/10357932/files/limbcoef_atmsland_noaa20.txt"
known_hash: "08deca15afe8638effac9e6ccb442c2c386f5444926129d30a250d5840264c1d"
filename: "limbcoef_atmsland_noaa21.txt"
- url: "https://zenodo.org/record/10357932/files/limbcoef_atmssea_noaa20.txt"
known_hash: "07cd7874ff3f069cc3d473bdd0d1d19880ef01ac8d75cb0212a3687c059557f4"
filename: "limbcoef_atmssea_noaa21.txt"
10 changes: 8 additions & 2 deletions polar2grid/readers/mirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@

from __future__ import annotations

from argparse import ArgumentParser, _ArgumentGroup
from argparse import ArgumentParser, _ArgumentGroup, BooleanOptionalAction
from typing import Optional, Union

from satpy import DataID, Scene
Expand Down Expand Up @@ -266,4 +266,10 @@ def add_reader_argument_groups(
const=["all_bt_channels"],
help="Add all bands to list of products",
)
return None, None
group.add_argument(
"--limb-correction",
default=True,
action=BooleanOptionalAction,
help="Perform limb correction on ATMS instrument BT channels (enabled by default)",
)
return group, None

0 comments on commit 9d531a9

Please sign in to comment.