Skip to content
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
5 changes: 5 additions & 0 deletions tutorials/euclid/3_Euclid_intro_1D_spectra.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ from astropy.io import fits
from astropy.table import QTable
from astropy import units as u
from astropy.coordinates import SkyCoord
from astropy.utils.data import conf
from astropy.visualization import quantity_support

from astroquery.ipac.irsa import Irsa
Expand All @@ -91,6 +92,10 @@ warnings.filterwarnings(
message="The unit 'erg' has been deprecated",
category=u.UnitsWarning,
)

# The Euclid spectrum files are large and the time it takes to read
# them can exceed astropy's default timeout limit. Increase it.
conf.remote_timeout = 120
```

## 1. Search for the spectrum of a specific galaxy
Expand Down
6 changes: 5 additions & 1 deletion tutorials/euclid/4_Euclid_intro_PHZ_catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,16 @@ from astropy.io import fits
from astropy.nddata import Cutout2D
from astropy.table import QTable
from astropy import units as u
from astropy.utils.data import download_file
from astropy.utils.data import conf, download_file
from astropy.visualization import ImageNormalize, PercentileInterval, AsinhStretch, LogStretch, quantity_support
from astropy.wcs import WCS

from firefly_client import FireflyClient
from astroquery.ipac.irsa import Irsa

# The Euclid spectrum files are large and the time it takes to read
# them can exceed astropy's default timeout limit. Increase it.
conf.remote_timeout = 120
```

## 1. Find the MER Tile ID that corresponds to a given RA and Dec
Expand Down
8 changes: 4 additions & 4 deletions tutorials/euclid/5_Euclid_intro_SPE_catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ from astropy.coordinates import SkyCoord
from astropy.io import fits
from astropy.table import QTable
from astropy import units as u
from astropy.utils.data import download_file
from astropy.utils import data
from astropy.utils.data import conf, download_file
from astropy.visualization import ImageNormalize, PercentileInterval, AsinhStretch, quantity_support

from astroquery.ipac.irsa import Irsa

# Increase Astropy’s default network timeout (in seconds) for remote name resolution and data access
data.conf.remote_timeout = 60
# The Euclid spectrum files are large and the time it takes to read
# them can exceed astropy's default timeout limit. Increase it.
conf.remote_timeout = 120

#suppress warnings about deprecated units and cache
import warnings
Expand Down