diff --git a/_static/nb_html/DP02_13a_Image_Cutout_SciDemo.html b/_static/nb_html/DP02_13a_Image_Cutout_SciDemo.html index d1b7b27d..70517056 100644 --- a/_static/nb_html/DP02_13a_Image_Cutout_SciDemo.html +++ b/_static/nb_html/DP02_13a_Image_Cutout_SciDemo.html @@ -7519,8 +7519,8 @@

Using the image cutout tool with DP0.2

Rubin Observatory logo, a graphical representation of turning stars into data.
Contact author: Christina Williams
-Last verified to run: 2024-08-20
-LSST Science Piplines version: Weekly 2024_32
+Last verified to run: 2024-11-15
+LSST Science Piplines version: Weekly 2024_42
Container Size: medium
Targeted learning level: beginner
@@ -7601,9 +7601,9 @@

Using the image cutout tool with
@@ -7644,6 +7644,7 @@

1.1 Package Importsfrom lsst.pipe.tasks.registerImage import RegisterConfig, RegisterTask from lsst.rsp import get_tap_service from lsst.rsp.utils import get_access_token +from lsst.afw.fits import MemFileManager import pyvo from pyvo.dal.adhoc import DatalinkResults, SodaQuery @@ -7742,7 +7743,7 @@

1.2 Define Functions and Parameters @@ -7866,7 +7867,7 @@

1.2 Define Functions and Parameters if imtype == 'calexp': query = "SELECT access_format, access_url, dataproduct_subtype, " + \ - "lsst_visit, lsst_detector, lsst_band, s_ra, s_dec " + \ + "lsst_visit, lsst_detector, lsst_band " + \ "FROM ivoa.ObsCore WHERE dataproduct_type = 'image' " + \ "AND obs_collection = 'LSST.DP02' " + \ "AND dataproduct_subtype = 'lsst.calexp' " + \ @@ -7883,7 +7884,7 @@

1.2 Define Functions and Parameters band = dataId["band"] query = "SELECT access_format, access_url, dataproduct_subtype, " + \ - "lsst_patch, lsst_tract, lsst_band, s_ra, s_dec " + \ + "lsst_patch, lsst_tract, lsst_band " + \ "FROM ivoa.ObsCore WHERE dataproduct_type = 'image' " + \ "AND obs_collection = 'LSST.DP02' " + \ "AND dataproduct_subtype = 'lsst.deepCoadd_calexp' " + \ @@ -7908,10 +7909,12 @@

1.2 Define Functions and Parameters spherePoint.getDec().asDegrees() * u.deg, cutout_size * u.deg) + tempdir = 'dp02_13a_temp/' + if filename: - sodaCutout = os.path.join(os.getenv('HOME'), 'dp02_13a_temp/'+filename) + sodaCutout = os.path.join(os.getenv('HOME'), tempdir+filename) else: - sodaCutout = os.path.join(os.getenv('HOME'), 'dp02_13a_temp/soda-cutout.fits') + sodaCutout = os.path.join(os.getenv('HOME'), tempdir+'cutout.fits') with open(sodaCutout, 'bw') as f: f.write(sq.execute_stream().read()) @@ -8026,7 +8029,7 @@

1.2 Define Functions and Parameters @@ -8052,11 +8055,11 @@

- - - - - - - +