|
8 | 8 | "<img align=\"left\" src = https://project.lsst.org/sites/default/files/Rubin-O-Logo_0.png width=250 style=\"padding: 10px\"> \n", |
9 | 9 | "<br>\n", |
10 | 10 | "<b>Single Star Lightcurve with the Butler</b> <br>\n", |
11 | | - "Last verified to run on 2021-08-16 with LSST Science Pipelines release w_2021_33 <br>\n", |
| 11 | + "Last verified to run on 2021-10-13 with LSST Science Pipelines release w_2021_40 <br>\n", |
12 | 12 | "Contact authors: Melissa Graham, Jeff Carlin <br>\n", |
13 | 13 | "Target audience: All DP0 delegates. <br>\n", |
14 | 14 | "Container Size: medium <br>\n", |
|
72 | 72 | "import lsst.daf.base as dafBase\n", |
73 | 73 | "\n", |
74 | 74 | "### If you want to use the TAP Service in Section 2, uncomment.\n", |
75 | | - "# from rubin_jupyter_utils.lab.notebook import get_tap_service\n", |
| 75 | + "# from lsst.rsp import get_tap_service\n", |
76 | 76 | "# service = get_tap_service()\n", |
77 | 77 | "\n", |
78 | 78 | "### General python / astronomy packages\n", |
|
87 | 87 | "from astropy.io import fits\n", |
88 | 88 | "from astropy.timeseries import LombScargle\n", |
89 | 89 | "\n", |
| 90 | + "from tqdm.notebook import tqdm\n", |
90 | 91 | "import time" |
91 | 92 | ] |
92 | 93 | }, |
|
384 | 385 | "\n", |
385 | 386 | "# # To retrieve data for all `refs`, set N_refs to be equal to totalNrefs (or to a large value like 1000).\n", |
386 | 387 | "# # Alternatively to test the retrieval of a few `refs`, set smaller (e.g., 10).\n", |
387 | | - "# # Nrefs = totalNrefs\n", |
388 | | - "# Nrefs = 5\n", |
| 388 | + "# Nrefs = totalNrefs\n", |
| 389 | + "# Nrefs = 15\n", |
389 | 390 | "\n", |
390 | 391 | "# # Instantiate empty lists\n", |
391 | 392 | "# ra_arr = []\n", |
|
397 | 398 | "# mjd_arr = []\n", |
398 | 399 | "\n", |
399 | 400 | "# # Loop over all refs\n", |
400 | | - "# for i, d in enumerate(refs):\n", |
| 401 | + "# for i, d in enumerate(tqdm(refs)):\n", |
401 | 402 | "# t1 = time.time()\n", |
402 | 403 | "\n", |
403 | 404 | "# if i <= Nrefs:\n", |
|
762 | 763 | "#### Summary \n", |
763 | 764 | "You have now seen how to extract and work with time series data for a variable star. As you've seen, this is rather clunky with the DP0.1 dataset and tools. Extracting individual measurements from visits will be much easier in planned data products (e.g., in DP0.2), where the forced photometry on each visit will be tabulated in its own type of table." |
764 | 765 | ] |
| 766 | + }, |
| 767 | + { |
| 768 | + "cell_type": "code", |
| 769 | + "execution_count": null, |
| 770 | + "id": "07cbca6e-e0d3-41a5-8dd1-543c2650d2b5", |
| 771 | + "metadata": {}, |
| 772 | + "outputs": [], |
| 773 | + "source": [] |
765 | 774 | } |
766 | 775 | ], |
767 | 776 | "metadata": { |
|
0 commit comments