Skip to content

Commit bc2b0b8

Browse files
authored
Merge pull request #296 from bsipocz/IRSA_include_metadata
Add mention of 'include_metadata_tables'
2 parents 21887a5 + 6bdca0d commit bc2b0b8

4 files changed

Lines changed: 30 additions & 10 deletions

File tree

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ commands =
6666

6767
buildhtml: bash -c 'cat ignore_tutorials/ignore_rendering_execution >> ignore_testing'
6868

69+
# We use astroquery 0.4.11+ feature in some of the notebooks, ignore them for oldestdeps testing
70+
oldestdeps: bash -c 'for i in tutorials/euclid/4_Euclid_intro_PHZ_catalog tutorials/euclid/5_Euclid_intro_SPE_catalog tutorials/euclid/euclid-cloud-access; do echo $i ; done >> ignore_testing'
71+
6972
# Make a list of all the tutorials to be reused in multiple filtering commands below
7073
bash -c 'find tutorials -name "*md" | xargs grep kernelspec: | awk -F :kernelspec: "{print \$1}" > all_tutorials'
7174

tutorials/euclid/4_Euclid_intro_PHZ_catalog.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ We rely on ``astroquery`` features that have been recently added, so please make
6767

6868
```{code-cell} ipython3
6969
# Uncomment the next line to install dependencies if needed.
70-
# !pip install matplotlib 'astropy>=5.3' 'astroquery>=0.4.10' fsspec firefly_client
70+
# !pip install matplotlib 'astropy>=5.3' 'astroquery>=0.4.11' fsspec firefly_client
7171
```
7272

7373
```{code-cell} ipython3
@@ -139,10 +139,17 @@ print(f'The MER tile ID for this object is : {tileID}')
139139

140140
## 2. Download PHZ catalog from IRSA
141141

142-
Use IRSA's TAP to search catalogs
142+
Use IRSA's TAP to search catalogs and metadata tables associated with Euclid:
143+
144+
145+
```{note}
146+
In the example below, we use ``include_metadata_tables=True``.
147+
This parameter was introduced in astroquery 0.4.11. For earlier versions, please omit this parameter to receive the combined list of available catalogs and metadata tables.
148+
```
149+
143150

144151
```{code-cell} ipython3
145-
Irsa.list_catalogs(filter='euclid')
152+
Irsa.list_catalogs(filter='euclid', include_metadata_tables=True)
146153
```
147154

148155
```{code-cell} ipython3

tutorials/euclid/5_Euclid_intro_SPE_catalog.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ We rely on ``astroquery`` features that have been recently added, so please make
6767

6868
```{code-cell} ipython3
6969
# Uncomment the next line to install dependencies if needed
70-
# %pip install matplotlib astropy 'astroquery>=0.4.10'
70+
# %pip install matplotlib astropy 'astroquery>=0.4.11'
7171
```
7272

7373
```{code-cell} ipython3
@@ -154,10 +154,15 @@ print(f'The MER tile ID for this object is : {tileID}')
154154

155155
## 2. Download SPE catalog from IRSA directly to this notebook
156156

157-
Search for all tables in IRSA labeled as euclid
157+
Search for all Euclid catalogs and metadata tables in IRSA:
158+
159+
```{note}
160+
In the example below, we use ``include_metadata_tables=True``.
161+
This parameter was introduced in astroquery 0.4.11. For earlier versions, please omit this parameter to receive the combined list of available catalogs and metadata tables.
162+
```
158163

159164
```{code-cell} ipython3
160-
Irsa.list_catalogs(filter='euclid')
165+
Irsa.list_catalogs(filter='euclid', include_metadata_tables=True)
161166
```
162167

163168
```{code-cell} ipython3

tutorials/euclid/euclid-cloud-access.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ We rely on ``astroquery`` features that have been recently added, so please make
5959

6060
```{code-cell} ipython3
6161
# Uncomment the next line to install dependencies if needed.
62-
# !pip install s3fs astropy 'astroquery>=0.4.10' matplotlib
62+
# !pip install s3fs astropy 'astroquery>=0.4.11' matplotlib
6363
```
6464

6565
```{code-cell} ipython3
@@ -240,14 +240,19 @@ Once the catalogs are available as Parquet files in the cloud, we can efficientl
240240
+++
241241

242242
## 7. Find the MER Object ID for our target
243-
First, list the Euclid catalogs provided by IRSA:
243+
First, list the Euclid catalogs provided by IRSA.
244+
245+
```{note}
246+
In the example below, we use ``include_metadata_tables=True``.
247+
This parameter was introduced in astroquery 0.4.11. For earlier versions, please omit this parameter to receive the combined list of available catalogs and metadata tables.
248+
```
244249

245250
```{code-cell} ipython3
246-
catalogs = Irsa.list_catalogs(full=True, filter='euclid')
251+
catalogs = Irsa.list_catalogs(full=True, filter='euclid', include_metadata_tables=True)
247252
catalogs
248253
```
249254

250-
From this table, we can extract the MER catalog name. We also see several other interesting catalogs, let's also extract spectral file association catalog for retrieving spectra later.
255+
From this table, we can extract the MER catalog name. We also see several other interesting metadata tables, let's also extract spectral file association table for retrieving spectra later.
251256

252257
```{code-cell} ipython3
253258
euclid_mer_catalog = 'euclid_q1_mer_catalogue'

0 commit comments

Comments
 (0)