-
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.
Merge pull request #87 from adybbroe/add-noaa21
Add noaa21
- Loading branch information
Showing
3 changed files
with
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ files: | |
ignore: | ||
- 'docs/Makefile' | ||
- 'docs/make.bat' | ||
|
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 | ||
|
||
|