-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for NOAA-21 (and NOAA-22 yet not launched though)
Signed-off-by: Adam.Dybbroe <[email protected]>
- Loading branch information
Adam.Dybbroe
committed
Aug 21, 2023
1 parent
4c1b45a
commit f7f55df
Showing
2 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
# Copyright (c) 2014 - 2019 PyTroll Community | ||
# Copyright (c) 2014 - 2019, 2023 PyTroll Community | ||
# Author(s): | ||
|
||
# Martin Raspaud <[email protected]> | ||
|
@@ -38,7 +38,7 @@ | |
from pyorbital import orbital, tlefile | ||
from pyresample.boundary import AreaDefBoundary | ||
|
||
from trollsched import MIN_PASS, NOAA20_NAME, NUMBER_OF_FOVS | ||
from trollsched import MIN_PASS, JPSS_TLE_NAMES, NUMBER_OF_FOVS | ||
from trollsched.boundary import SwathBoundary | ||
|
||
logger = logging.getLogger(__name__) | ||
|
@@ -184,11 +184,11 @@ def __init__(self, satellite, risetime, falltime, **kwargs): | |
except KeyError as err: | ||
logger.debug("Failed in PyOrbital: %s", str(err)) | ||
self.orb = orbital.Orbital( | ||
NOAA20_NAME.get(satellite, satellite), | ||
JPSS_TLE_NAMES.get(satellite, satellite), | ||
line1=tle1, | ||
line2=tle2) | ||
logger.info("Using satellite name %s instead", | ||
str(NOAA20_NAME.get(satellite, satellite))) | ||
str(JPSS_TLE_NAMES.get(satellite, satellite))) | ||
|
||
self._boundary = None | ||
|
||
|