astropy / astropy-tutorials

Tutorials for the Astropy Project
BSD 3-Clause "New" or "Revised" License
290 stars 174 forks source link

Tutorial re: Deredden a Spectrum #479

Open tckosvic opened 3 years ago

tckosvic commented 3 years ago

I am trying to learn something about astropy and MAST at the same time. My python throws WARNING: NoResultsWarning: Query returned no results. [astroquery.mast.core] from code below.

It is not finding any data at obs 3000022829 for HD 147933 (see code below). I looked this up directly on MAST site and couldnt find any observation with that number for HD 147933. Could you verify that the obs 3000022829 is accurate?

After not finding any data, it does not download anything.

Perhaps I am not interpreting this right and need a redirection.

"obsTable = Observations.query_object("HD 147933",radius="1 arcsec") obsTable_spec=obsTable[obsTable['dataproduct_type']=='spectrum'] obsTable_spec.pprint()

obsids = ['3000022829'] dataProductsByID = Observations.get_product_list(obsids) manifest = Observations.download_products(dataProductsByID)"

thanks, tom kosvic

eblur commented 2 years ago

We will have some one check this tutorial this summer.