@@ -150,8 +150,29 @@ To load only table names metadata (TAP+ capability):
150150
151151 >>> from astroquery.esa.euclid import Euclid
152152 >>> tables = Euclid.load_tables(only_names = True , include_shared_tables = True )
153+ INFO: Retrieving tables... [astroquery.utils.tap.core]
154+ INFO: Parsing tables... [astroquery.utils.tap.core]
155+ INFO: Done. [astroquery.utils.tap.core]
153156 >>> print (" Found" , len (tables), " tables" ) # doctest: +IGNORE_OUTPUT
157+ Found 34 tables
154158 >>> print (* (table.name for table in tables), sep = " \n " ) # doctest: +IGNORE_OUTPUT
159+ ivoa.obscore
160+ public.dual
161+ sedm.raw_detector
162+ sedm.raw_frame
163+ sedm.raw_quadrant
164+ sedm.aux_calibrated
165+ sedm.aux_mosaic
166+ sedm.aux_stacked
167+ sedm.basic_download_data
168+ sedm.calibrated_detectors
169+ sedm.calibrated_frame
170+ sedm.column_values
171+ sedm.combined_spectra
172+ ...
173+ tap_config.coord_sys
174+ tap_config.properties
175+ ...
155176
156177
157178To load all table metadata (TAP compatible):
@@ -160,8 +181,14 @@ To load all table metadata (TAP compatible):
160181
161182 >>> from astroquery.esa.euclid import Euclid
162183 >>> tables = Euclid.load_tables()
184+ INFO: Retrieving tables... [astroquery.utils.tap.core]
185+ INFO: Parsing tables... [astroquery.utils.tap.core]
186+ INFO: Done. [astroquery.utils.tap.core]
163187 >>> print (tables[0 ]) # doctest: +IGNORE_OUTPUT
164-
188+ TAP Table name: ivoa.obscore
189+ Description: None
190+ Size (bytes): 0
191+ Num. columns: 34
165192
166193
167194To load only a table (TAP+ capability) and inspect its columns:
@@ -171,8 +198,23 @@ To load only a table (TAP+ capability) and inspect its columns:
171198 >>> from astroquery.esa.euclid import Euclid
172199 >>> raw_detector_table = Euclid.load_table(' sedm.raw_detector' )
173200 >>> print (raw_detector_table) # doctest: +SKIP
201+ TAP Table name: sedm.raw_detector
202+ Description: None
203+ Size (bytes): 0
204+ Num. columns: 12
174205 >>> print (* (column.name for column in raw_detector_table.columns), sep = " \n " ) # doctest: +IGNORE_OUTPUT
175-
206+ crpix1
207+ crpix2
208+ crval1
209+ crval2
210+ detector_id
211+ detector_oid
212+ l1_raw_frame_oid
213+ q1_oid
214+ q2_oid
215+ q3_oid
216+ q4_oid
217+ to_be_published
176218
177219
178220To get the list of products associated with a given Euclid observation_id or tile_index (for mosaic):
@@ -249,9 +291,20 @@ This query performs a cone search centered at the specified ra/dec coordinates w
249291 >>> coord = SkyCoord(" 17h51m07.4s +65d31m50.8s" , frame = ' icrs' )
250292 >>> radius = u.Quantity(0.5 , u.deg)
251293 >>> job = Euclid.cone_search(coordinate = coord, radius = radius, table_name = " sedm.mosaic_product" , ra_column_name = " ra" , dec_column_name = " dec" , columns = " *" , async_job = True )
294+ INFO: Query finished. [astroquery.utils.tap.core]
252295 >>> cone_results = job.get_results()
253296 >>> print (" Found" , len (cone_results), " results" )
297+ Found 27 results
254298 >>> cone_results[' tile_index' , ' creation_date' , ' ra' , ' dec' , ' file_name' , ' file_path' , ' datalabs_path' , ' filter_name' , ' dist' ][:5 ]
299+ <Table length=5>
300+ tile_index creation_date ra dec file_name file_path datalabs_path filter_name dist
301+ int64 str23 float64 float64 str88 str55 str43 str11 float64
302+ ---------- ----------------------- ----------- ------- ------------------------------------------------------------------------------------- ------------------------------------------------------- ------------------------------------------- ----------- -------------------
303+ 102158889 2024-10-26T14:01:21.038 267.3807789 65.4983 EUC_MER_BGSUB-MOSAIC-CFIS-R_TILE102158889-4366B7_20241024T203624.450577Z_00.00.fits /euclid/repository_idr/iqr1/Q1_R1/MER/102158889/MEGACAM /data/euclid_q1/Q1_R1/MER/102158889/MEGACAM MEGACAM_r 0.16895922479034217
304+ 102158889 2024-10-26T13:50:13.676 267.3807789 65.4983 EUC_MER_BGSUB-MOSAIC-WISHES-G_TILE102158889-3DC3C3_20241024T205647.635112Z_00.00.fits /euclid/repository_idr/iqr1/Q1_R1/MER/102158889/HSC /data/euclid_q1/Q1_R1/MER/102158889/HSC HSC_g 0.16895922479034217
305+ 102158889 2024-10-26T13:37:09.628 267.3807789 65.4983 EUC_MER_BGSUB-MOSAIC-NIR-Y_TILE102158889-AC6585_20241024T225321.344048Z_00.00.fits /euclid/repository_idr/iqr1/Q1_R1/MER/102158889/NISP /data/euclid_q1/Q1_R1/MER/102158889/NISP NIR_Y 0.16895922479034217
306+ 102158889 2024-10-26T14:05:09.98 267.3807789 65.4983 EUC_MER_BGSUB-MOSAIC-CFIS-U_TILE102158889-9E97F_20241024T204431.839748Z_00.00.fits /euclid/repository_idr/iqr1/Q1_R1/MER/102158889/MEGACAM /data/euclid_q1/Q1_R1/MER/102158889/MEGACAM MEGACAM_u 0.16895922479034217
307+ 102158889 2024-10-26T13:10:32.453 267.3807789 65.4983 EUC_MER_BGSUB-MOSAIC-NIR-H_TILE102158889-ED035A_20241024T212936.705156Z_00.00.fits /euclid/repository_idr/iqr1/Q1_R1/MER/102158889/NISP /data/euclid_q1/Q1_R1/MER/102158889/NISP NIR_H 0.16895922479034217
255308
256309
257310
@@ -263,6 +316,7 @@ Queries return a limited number of rows controlled by ``Euclid.ROW_LIMIT``. To c
263316 >>> job = Euclid.cone_search(coordinate = coord, radius = radius, table_name = " sedm.mosaic_product" , ra_column_name = " ra" , dec_column_name = " dec" , columns = " *" , async_job = True )
264317 >>> cone_results = job.get_results()
265318 >>> print (" Found" , len (cone_results), " results" )
319+ Found 2 results
266320
267321
268322To return an unlimited number of rows set ``Euclid.ROW_LIMIT `` to -1.
@@ -289,7 +343,24 @@ The method returns the job results as astropy.table
289343 >>> coord = SkyCoord(ra = 60.3372780005097 , dec = - 49.93184727724773 , unit = (u.degree, u.degree), frame = ' icrs' )
290344 >>> table = Euclid.query_object(coordinate = coord, width = u.Quantity(0.1 , u.deg), height = u.Quantity(0.1 , u.deg))
291345 >>> print (" Found a total of" , len (table), " query results" )
346+ Found a total of 2000 query results
292347 >>> print (table)
348+ dist avg_trans_wave_g_ext_decam avg_trans_wave_g_ext_hsc avg_trans_wave_g_ext_jpcam avg_trans_wave_g_ext_lsst avg_trans_wave_h avg_trans_wave_i_ext_decam ... sersic_fract_z_ext_panstarrs_disk_sersic sersic_fract_z_ext_panstarrs_disk_sersic_err she_flag spurious_flag spurious_prob variable_flag vis_det
349+ --------------------- -------------------------- ------------------------ -------------------------- ------------------------- ---------------- -------------------------- ... ---------------------------------------- -------------------------------------------- -------- ------------- ---------------------- ------------- -------
350+ 3.566798805594703e-06 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.15743961930274963 -- 1
351+ 0.0004459918667892947 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.004427384119480848 -- 1
352+ 0.0011813971416470212 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.1833316683769226 -- 1
353+ 0.0015542789169486976 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.12239421904087067 -- 0
354+ 0.0015885047273778879 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.00021384040883276612 -- 1
355+ ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
356+ 0.03958455791235079 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.1343534141778946 -- 0
357+ 0.03958823626200475 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.00015592691488564014 -- 1
358+ 0.03959898295410331 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.0365927591919899 -- 1
359+ 0.039605684988334174 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.0831669270992279 -- 0
360+ 0.03960602180308949 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 1 0.6376287937164307 -- 1
361+ 0.039606556762811496 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.012528697960078716 -- 1
362+ 0.03962541836711639 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.003399776993319392 -- 1
363+ Length = 2000 rows
293364
294365
295366Synchronous queries like this one return a limited number of rows -> 2000
@@ -305,8 +376,26 @@ The previous query can be executed as an asynchronous version:
305376 >>> width= u.Quantity(0.1 , u.deg)
306377 >>> height= u.Quantity(0.1 , u.deg)
307378 >>> table_async = Euclid.query_object(coordinate = coord, width = width, height = height, async_job = True )
379+ INFO: Query finished. [astroquery.utils.tap.core]
308380 >>> print (" Found a total of" , len (table_async), " query results" )
381+ Found a total of 2895 query results
309382 >>> print (table_async)
383+ dist avg_trans_wave_g_ext_decam avg_trans_wave_g_ext_hsc avg_trans_wave_g_ext_jpcam avg_trans_wave_g_ext_lsst avg_trans_wave_h avg_trans_wave_i_ext_decam ... sersic_fract_z_ext_panstarrs_disk_sersic sersic_fract_z_ext_panstarrs_disk_sersic_err she_flag spurious_flag spurious_prob variable_flag vis_det
384+ --------------------- -------------------------- ------------------------ -------------------------- ------------------------- ---------------- -------------------------- ... ---------------------------------------- -------------------------------------------- -------- ------------- ---------------------- ------------- -------
385+ 3.566798805594703e-06 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.15743961930274963 -- 1
386+ 0.0004459918667892947 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.004427384119480848 -- 1
387+ 0.0011813971416470212 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.1833316683769226 -- 1
388+ 0.0015542789169486976 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.12239421904087067 -- 0
389+ 0.0015885047273778879 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.00021384040883276612 -- 1
390+ ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
391+ 0.03958455791235079 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.1343534141778946 -- 0
392+ 0.03958823626200475 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.00015592691488564014 -- 1
393+ 0.03959898295410331 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.0365927591919899 -- 1
394+ 0.039605684988334174 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.0831669270992279 -- 0
395+ 0.03960602180308949 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 1 0.6376287937164307 -- 1
396+ 0.039606556762811496 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.012528697960078716 -- 1
397+ 0.03962541836711639 4826.7998046875 -- -- -- -- 7826.669921875 ... -- -- -- 0 0.003399776993319392 -- 1
398+ Length = 2000 rows
310399
311400
3124011.4. Synchronous query
@@ -884,6 +973,7 @@ table named: user_<your_login_name>.'t'<job_id>:
884973 >>> Euclid.login()
885974 >>> job_1 = Euclid.launch_job_async(" select top 10 * from catalogue.mer_catalogue" )
886975 >>> Euclid.upload_table_from_job(job = job_1)
976+ Created table 't1539932994481O' from job: '1539932994481O'.
887977
888978Now, you can query your table as follows (a full qualified table name must be provided,
889979i.e.: *user_<your_login_name>."t<job_id>" *. Note that the previous table name must be
0 commit comments