Skip to content

Commit

Permalink
Check multiple SSW mirrors for remote psf files (#178)
Browse files Browse the repository at this point in the history
* check multiple ssw mirrors for remote psf files

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
wtbarnes and pre-commit-ci[bot] authored Aug 31, 2023
1 parent c38cca9 commit bddd376
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions xrtpy/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
"epoch",
"time",
]

_SSW_MIRRORS = [
"https://sohoftp.nascom.nasa.gov/solarsoft/",
"https://hesperia.gsfc.nasa.gov/ssw/",
]
9 changes: 7 additions & 2 deletions xrtpy/util/xrt_deconvolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,24 @@
from sunpy.image.resample import resample
from sunpy.image.transform import affine_transform
from sunpy.map import Map
from urllib.parse import urljoin

from xrtpy.util import _SSW_MIRRORS


@manager.require(
"PSF560.fits",
[
"https://sohoftp.nascom.nasa.gov/solarsoft/hinode/xrt/idl/util/XRT20170324_151721.0.PSF560.fits"
urljoin(mirror, "hinode/xrt/idl/util/XRT20170324_151721.0.PSF560.fits")
for mirror in _SSW_MIRRORS
],
"0eaa5da6fb69661e7f46d1f0c463e4b3b1745426a399a4fbc53fc0c0ae87dd0d",
)
@manager.require(
"PSF1000.fits",
[
"https://sohoftp.nascom.nasa.gov/solarsoft/hinode/xrt/idl/util/XRT20170324_161721.0.PSF1000.fits"
urljoin(mirror, "hinode/xrt/idl/util/XRT20170324_161721.0.PSF1000.fits")
for mirror in _SSW_MIRRORS
],
"95590a7174692977a2f111b932811c9c7ae105a59b93bfe6c96fba862cefacf1",
)
Expand Down

0 comments on commit bddd376

Please sign in to comment.