Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom MiRS reader configuration for duplicated NOAA-20 coeffs as NOAA-21 #673

Merged
merged 2 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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