Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESO retrieve_data does not download ancillary data? #2885

Open
sousasag opened this issue Nov 24, 2023 · 3 comments
Open

ESO retrieve_data does not download ancillary data? #2885

sousasag opened this issue Nov 24, 2023 · 3 comments

Comments

@sousasag
Copy link

Hi,

I was trying to get the ancillary data (processed files) from HARPS observation. I tried the option with_calib="processed", but it only downloads the ADP final product.

Is there a way to include the ancillary data that we see in the ESO download portal?

image

@Pharisaeus
Copy link

I tried the option with_calib="processed"

This won't help because this option refers to including master calibrations associated with raw data, and you're downloading reduced products. What you're asking about is what we call "dataset expansion" which uses VO Datalink protocol to find related ancillary files.

Is there a way to include the ancillary data that we see in the ESO download portal?

There is ongoing work to re-write the astroquery ESO module #2681 however it does not contain the feature you're asking about.

@sousasag
Copy link
Author

Thanks for the feedback.
In the meantime I found a workaround (could be simpler) to get the ancillary data for HARPS.

For those in need, here is my workaround:

tbl_adp = list(tbl_search['ARCFILE'])
tbl_ret = []
for f in tbl_adp:
   fs = f.split(":")
   x = (float(fs[-1])*1000.+1.)/1000.
   f_new = fs[0]+":"+fs[1]+":"+f"{x:06.3f}"
   tbl_ret.append(f)
   tbl_ret.append(f_new)
   eso.retrieve_data(tbl_ret, destination= path_download)`

This works assuming that you have to sum "1" to the name of the ARCFILE. For example.

ADP file with HARPS reduced spectra with ARCFILE: ADP.2019-12-20T01:19:11.029
The associated ancillary (tar file) will be the ARCFILE: ADP.2019-12-20T01:19:11.030

The workaround should work for most of the cases.

@szampier
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants