Coder Social home page Coder Social logo

Comments (3)

Pharisaeus avatar Pharisaeus commented on July 23, 2024

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.

from astroquery.

sousasag avatar sousasag commented on July 23, 2024

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.

from astroquery.

szampier avatar szampier commented on July 23, 2024

Hi, although not (yet) available in astroquery, you could try to retrieve the ancillary files via the ESO's Datalink service, see http://archive.eso.org/cms/eso-data/programmatic-access.html
For example:
http://archive.eso.org/datalink/links?ID=ivo://eso.org/ID?ADP.2019-12-20T01:19:11.029
or
http://archive.eso.org/datalink/links?ID=ivo://eso.org/ID?ADP.2019-12-20T01:19:11.029&RESPONSEFORMAT=json

from astroquery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.