Skip to content

Commit 88c4dbf

Browse files
authored
Merge pull request #3489 from esdc-esac-esa-int/ESA_gaia_GAIAPCR-1368_new_retrieval_type_RESIDUAL_IMAGE
GAIA: new datalink retrieval type RESIDUAL_IMAGE
2 parents c4056a8 + bd9f94c commit 88c4dbf

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ heasarc
3030
- Add support for uploading tables when using TAP directly through ``query_tap``. [#3403]
3131
- Add automatic guessing for the data host in ``download_data``. [#3403]
3232

33+
gaia
34+
^^^^
35+
36+
- New datalink DR4 retrieval type RESIDUAL_IMAGE. [#3489]
3337

3438
esa.hubble
3539
^^^^^^^^^^

astroquery/gaia/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ class Conf(_config.ConfigNamespace):
4949
'EPOCH_FLAGS_NSS',
5050
'EPOCH_PARAMETERS_RVS_SINGLE',
5151
'EPOCH_PARAMETERS_RVS_DOUBLE',
52-
'EPOCH_FLAGS_VARI']
52+
'EPOCH_FLAGS_VARI',
53+
'RESIDUAL_IMAGE']
5354

5455
VALID_LINKING_PARAMETERS = {'SOURCE_ID', 'TRANSIT_ID', 'IMAGE_ID'}
5556

astroquery/gaia/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ def load_data(self, ids, *, data_release=None, data_structure='INDIVIDUAL', retr
196196
'EPOCH_ASTROMETRY_BRIGHT', 'MEAN_SPECTRUM_XP_GRAVLENS', 'EPOCH_FLAGS_NSS', 'EPOCH_PARAMETERS_RVS_SINGLE',
197197
'EPOCH_PARAMETERS_RVS_DOUBLE', 'EPOCH_FLAGS_VARI']. Note that for 'CROWDED_FIELD_IMAGE', only the format
198198
'fits' can be used, and its image, in the principal header, will not be available in the returned
199-
dictionary. Set 'output_file' to retrieve all data: image + tables.
199+
dictionary. Set 'output_file' to retrieve all data: image + tables. Note that for 'RESIDUAL_IMAGE',
200+
only the format 'fits' can be used. Since the fits files only contain images, the returned table will be
201+
empty. Therefore, set 'output_file' to save the files to get access to their content.
200202
linking_parameter : str, optional, default SOURCE_ID, valid values: SOURCE_ID, TRANSIT_ID, IMAGE_ID
201203
By default, all the identifiers are considered as source_id
202204
SOURCE_ID: the identifiers are considered as source_id

astroquery/gaia/tests/test_gaiatap.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ def cross_match_basic_2_kwargs():
467467
"table_b_column_dec": "dec"}
468468

469469

470+
def test_number_retrieval_types():
471+
assert len(conf.VALID_DATALINK_RETRIEVAL_TYPES) == 26
472+
473+
470474
def test_show_message():
471475
print(JOB_DATA_FILE_NAME)
472476
connHandler = DummyConnHandler()
@@ -1458,7 +1462,7 @@ def update_user_table(self, table_name, list_of_changes, verbose):
14581462
assert job.get_phase() == "EXECUTING" if background else "COMPLETED"
14591463
assert job.failed is False
14601464

1461-
radius_quantity = Quantity(value=1.0/3600.0, unit=u.deg)
1465+
radius_quantity = Quantity(value=1.0 / 3600.0, unit=u.deg)
14621466
job = mock_querier_async.cross_match_basic(table_a_full_qualified_name="user_hola.tableA", table_a_column_ra="ra",
14631467
table_a_column_dec="dec", radius=radius_quantity, background=background)
14641468
assert job.async_ is True

0 commit comments

Comments
 (0)