File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ from astropy.wcs import WCS
6060# from repeatedly printing out warning notices related to alternate WCSs
6161import logging
6262logging.getLogger('astropy').setLevel(logging.ERROR)
63+
64+ # The time it takes to read SPHEREx files can exceed
65+ # astropy's default timeout limit. Increase it.
66+ from astropy.utils.data import conf
67+ conf.remote_timeout = 120
6368```
6469
6570## 4. Specify inputs and outputs
Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ from astropy.coordinates import SkyCoord
6363from astroquery.ipac.irsa import Irsa
6464
6565from firefly_client import FireflyClient
66+
67+ # The time it takes to read SPHEREx files can exceed
68+ # astropy's default timeout limit. Increase it.
69+ from astropy.utils.data import conf
70+ conf.remote_timeout = 120
6671```
6772
6873## 5. Search for SPHEREx Spectral Image MEFs that overlap coordinates you are interested in
Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ from astropy.coordinates import SkyCoord
6060from astropy.io import fits
6161from astropy.table import Table
6262from astropy.wcs import WCS
63+
64+ # The time it takes to read SPHEREx files can exceed
65+ # astropy's default timeout limit. Increase it.
66+ from astropy.utils.data import conf
67+ conf.remote_timeout = 120
6368```
6469
6570## 4. Get SPHEREx Cutout
You can’t perform that action at this time.
0 commit comments