Swift TOO API
Swift MOC

swift_too module

Swift_PlanQuery example - querying planned Swift observations

API version = 1.2, swifttools version = 2.4

Author: Jamie A. Kennea (Penn State)

The Swift_PlanQuery class allows for querying the database of observations have have been planned for observation by Swift, otherwise known as the "Pre-Planned Science Timeline" (PPST). This allows the user to find out not only what was planned, but what will be observed by Swift in the future.

Two important caveats:

  1. For past observations, what should have been down is mostly an academic exercise, as due to TOO uploads and GRBs, Swift's pre-planned observations can be obliterated. If you want to know what Swift did observe, do a Swift_ObsQuery

  2. Swift's planning is only done days into the future, so if you want to know what is going to happen weeks from now, you're out of luck.

This therefore is mostly useful if you want to know what Swift is observing today and tomorrow.

from swifttools.swift_too import PlanQuery
from datetime import datetime, timedelta

First Query

Note: as of swifttools 2.2, anonymous login is the default, so if you do not give the username and shared_secret, it will log in as 'anonymous'

First query example: What is Swift planned to observe now? Quite easy to construct. Note as of swifttools 2.3, you can omit the Swift_ from class names. Here is our first query:

plan = PlanQuery(begin=datetime.utcnow())
plan
Begin TimeEnd TimeTarget NameObservation NumberExposure (s)
2022-03-28 19:47:002022-03-28 19:57:00ZTF21abcgnql00014332012600

So the above should have reported back a single target. When you just give begin with no end, it simply returns the observation which is taking place at the time given. So what is happening at this time tomorrow?

plan = PlanQuery(begin=datetime.utcnow() + timedelta(days=1))
plan
Begin TimeEnd TimeTarget NameObservation NumberExposure (s)
2022-03-29 19:48:002022-03-29 19:59:00NGC 523600010978072660

Did the above query return anything? If not, then there simply isn't a plan for tomorrow. So how can we determine how far into the future Swift has a plan for? The ppstmax parameter. Let's check it out:

f"PPSTs available up to {plan.ppstmax}"
'PPSTs available up to 2022-03-30 00:00:00'

This gives the date of the last planned target. If the query for what Swift is observing this time tomorrow didn't return anything, this date is probably the end of the UT day today. If the time you're running this is before midday on a Monday-Thursday, this is as expected. Typically the plan for tomorrow is submitted for upload around 12pm Eastern time. The exception to this rule is for the weekend plan. Typically on Thursday at 12pm we submit a plan for Friday and Saturday, and on Friday at 12pm we submit a plan for Sunday-Monday. This allows us to cover the weekend, while working a 5 day week.

Second query example

Seeing a whole day's PPST. So let's see the whole day's Plan that goes farthest into the future.

dayplan = PlanQuery(begin=plan.ppstmax - timedelta(days=1), end=plan.ppstmax)
dayplan
Begin TimeEnd TimeTarget NameObservation NumberExposure (s)
2022-03-28 23:50:002022-03-29 00:00:00OGP_282403104295003600
2022-03-29 00:00:002022-03-29 00:07:00OGP_391703103421003420
2022-03-29 00:07:002022-03-29 00:25:00saa-cold-218-0000741000901080
2022-03-29 00:25:002022-03-29 00:35:00MKN 600035461088600
2022-03-29 00:35:002022-03-29 00:40:000716+71400096041006300
2022-03-29 00:40:002022-03-29 01:10:00ZTF20abobpcb000136490331800
2022-03-29 01:10:002022-03-29 01:20:001RXS J195500.6-16032800083574001600
2022-03-29 01:20:002022-03-29 01:23:19SMC J0048.5-725600048753255199
2022-03-29 01:23:192022-03-29 01:25:00SMC J0113.8-740300048702206101
2022-03-29 01:25:002022-03-29 01:30:00N132D00059114070300
2022-03-29 01:30:002022-03-29 01:55:00N132D000591140711500
2022-03-29 01:55:002022-03-29 02:10:000716+71400096041006900
2022-03-29 02:10:002022-03-29 02:38:00NGC 5907 ULX000103742101680
2022-03-29 02:38:002022-03-29 02:51:001RXS J195500.6-16032800083574001780
2022-03-29 02:51:002022-03-29 02:54:19SMC J0039.6-740500048696222199
2022-03-29 02:54:192022-03-29 02:55:38SMC J0040.0-73300004872222279
2022-03-29 02:55:382022-03-29 02:57:10SMC J0121.8-72300004877619192
2022-03-29 02:57:102022-03-29 02:58:35SMC J0122.3-73590004870419485
2022-03-29 02:58:352022-03-29 02:59:56SMC J0122.8-73050004874719381
2022-03-29 02:59:562022-03-29 03:01:15SMC J0123.8-73400004871819379
2022-03-29 03:01:152022-03-29 03:02:36SMC J0124.3-72470004876219181
2022-03-29 03:02:362022-03-29 03:03:59SMC J0136.3-73280004882615783
2022-03-29 03:03:592022-03-29 03:05:16SMC J0137.6-73090004882715477
2022-03-29 03:05:162022-03-29 03:06:45SMC J0104.8-73300004872821389
2022-03-29 03:06:452022-03-29 03:08:12SMC J0105.4-71260004881220387
2022-03-29 03:08:122022-03-29 03:09:40SMC J0052.4-73310004872522288
2022-03-29 03:09:402022-03-29 03:11:07SMC J0116.4-72510004876020087
2022-03-29 03:11:072022-03-29 03:12:39SMC J0033.5-73460004870722092
2022-03-29 03:12:392022-03-29 03:13:58SMC J0034.2-73110004873522079
2022-03-29 03:13:582022-03-29 03:15:30SMC J0117.2-73260004873119892
2022-03-29 03:15:302022-03-29 03:16:55SMC J0117.1-71570004879819185
2022-03-29 03:16:552022-03-29 03:18:27SMC J0050.3-74240004869122092
2022-03-29 03:18:272022-03-29 03:21:00SMC J0133.4-731500048822163153
2022-03-29 03:21:002022-03-29 03:36:00SN2022csn00015084003900
2022-03-29 03:36:002022-03-29 03:46:00MKN 600035461088600
2022-03-29 03:46:002022-03-29 04:03:00M87000964530171020
2022-03-29 04:03:002022-03-29 04:26:00OGP_0057031045010051380
2022-03-29 04:26:002022-03-29 04:30:22SMC J0029.4-734400048706221262
2022-03-29 04:30:222022-03-29 04:31:41SMC J0030.2-73090004873422179
2022-03-29 04:31:412022-03-29 04:33:03SMC J0035.3-74040004869522182
2022-03-29 04:33:032022-03-29 04:34:29SMC J0044.7-72200004877921886
2022-03-29 04:34:292022-03-29 04:35:49SMC J0048.7-71450004880021180
2022-03-29 04:35:492022-03-29 04:37:15SMC J0032.5-72520004874922086
2022-03-29 04:37:152022-03-29 04:38:43SMC J0058.8-73480004871321388
2022-03-29 04:38:432022-03-29 04:40:10SMC J0128.0-73380004871919487
2022-03-29 04:40:102022-03-29 04:41:43SMC J0056.1-71100004881520593
2022-03-29 04:41:432022-03-29 04:43:08SMC J0107.9-72190004878520685
2022-03-29 04:43:082022-03-29 04:44:30SMC J0056.2-71450004880220882
2022-03-29 04:44:302022-03-29 04:45:51SMC J0058.4-72380004877021281
2022-03-29 04:45:512022-03-29 04:47:08SMC J0100.2-72200004878321077
2022-03-29 04:47:082022-03-29 04:48:35SMC J0125.7-72280004877718887
2022-03-29 04:48:352022-03-29 04:50:03SMC J0058.2-72030004879320988
2022-03-29 04:50:032022-03-29 04:51:30SMC J0052.4-74060004869922287
2022-03-29 04:51:302022-03-29 04:52:52SMC J0058.5-73130004874121682
2022-03-29 04:52:522022-03-29 04:54:19SMC J0059.7-71100004881620287
2022-03-29 04:54:192022-03-29 04:56:00SMC J0046.6-723800048767219101
2022-03-29 04:56:002022-03-29 05:13:00NGC2617000105490551020
2022-03-29 05:13:002022-03-29 05:28:00MKN 600035461088900
2022-03-29 05:28:002022-03-29 05:47:00Mrk501000111841891140
2022-03-29 05:47:002022-03-29 06:02:00OGP_005703104501005900
2022-03-29 06:02:002022-03-29 06:06:25SMC J0046.9-712800048807210265
2022-03-29 06:06:252022-03-29 06:07:46SMC J0054.4-72030004879221381
2022-03-29 06:07:462022-03-29 06:09:15SMC J0121.3-73240004873219189
2022-03-29 06:09:152022-03-29 06:10:43SMC J0148.0-74340004883213788
2022-03-29 06:10:432022-03-29 06:12:00SMC J0149.1-74150004883512977
2022-03-29 06:12:002022-03-29 06:13:34SMC J0054.5-73140004874021994
2022-03-29 06:13:342022-03-29 06:15:01SMC J0032.9-74210004868721987
2022-03-29 06:15:012022-03-29 06:16:33SMC J0105.8-72020004879520292
2022-03-29 06:16:332022-03-29 06:17:52SMC J0106.2-72370004877220879
2022-03-29 06:17:522022-03-29 06:19:18SMC J0045.0-71450004879921386
2022-03-29 06:19:182022-03-29 06:20:48SMC J0045.9-74240004869022090
2022-03-29 06:20:482022-03-29 06:22:07SMC J0046.1-73480004871022079
2022-03-29 06:22:072022-03-29 06:23:26SMC J0046.4-73130004873822079
2022-03-29 06:23:262022-03-29 06:24:49SMC J0046.7-72030004879021383
2022-03-29 06:24:492022-03-29 06:26:16SMC J0048.2-74060004869822087
2022-03-29 06:26:162022-03-29 06:27:35SMC J0048.3-73310004872422179
2022-03-29 06:27:352022-03-29 06:28:55SMC J0052.5-72560004875422180
2022-03-29 06:28:552022-03-29 06:30:22SMC J0109.0-71250004881319987
2022-03-29 06:30:222022-03-29 06:32:00SMC J0109.6-72000004879620098
2022-03-29 06:32:002022-03-29 06:57:00SN2022csn000150840031500
2022-03-29 06:57:002022-03-29 07:07:00W Comae / ON23100035018125600
2022-03-29 07:07:002022-03-29 07:14:002cmXB1803+78400036393022420
2022-03-29 07:14:002022-03-29 07:37:00PMN J1911-1908000465490071380
2022-03-29 07:37:002022-03-29 07:40:19SMC J0110.1-723600048773206199
2022-03-29 07:40:192022-03-29 07:41:40SMC J0111.2-71420004880619781
2022-03-29 07:41:402022-03-29 07:43:01SMC J0102.0-72020004879420681
2022-03-29 07:43:012022-03-29 07:44:27SMC J0040.5-72550004875121986
2022-03-29 07:44:272022-03-29 07:45:46SMC J0040.9-72200004877821779
2022-03-29 07:45:462022-03-29 07:47:10SMC J0031.8-73270004872022284
2022-03-29 07:47:102022-03-29 07:48:40SMC J0104.1-72200004878420890
2022-03-29 07:48:402022-03-29 07:49:59SMC J0104.4-72550004875721179
2022-03-29 07:49:592022-03-29 07:51:20SMC J0054.4-72380004876921981
2022-03-29 07:51:202022-03-29 07:52:48SMC J0037.2-74220004868822088
2022-03-29 07:52:482022-03-29 07:54:20SMC J0103.7-71440004880420492
2022-03-29 07:54:202022-03-29 07:55:44SMC J0112.4-72520004875920484
2022-03-29 07:55:442022-03-29 07:57:03SMC J0113.1-73280004873020379
2022-03-29 07:57:032022-03-29 07:58:22SMC J0106.7-73120004874320879
2022-03-29 07:58:222022-03-29 07:59:49SMC J0041.9-73480004870921987
2022-03-29 07:59:492022-03-29 08:01:08SMC J0042.3-73130004873721979
2022-03-29 08:01:082022-03-29 08:02:38SMC J0118.8-73070004874619490
2022-03-29 08:02:382022-03-29 08:04:00SMC J0128.2-72440004876318282
2022-03-29 08:04:002022-03-29 08:09:00OGP_272303104178006300
2022-03-29 08:09:002022-03-29 08:21:00W Comae / ON23100035018125720
2022-03-29 08:21:002022-03-29 08:31:002021eyw00015099002600
2022-03-29 08:31:002022-03-29 08:47:002cmXB1803+78400036393022960
2022-03-29 08:47:002022-03-29 08:55:00ZTF20abobpcb00013649033480
2022-03-29 08:55:002022-03-29 09:10:00OGP_092103103379007900
2022-03-29 09:10:002022-03-29 09:15:18SMC J0143.7-743800048831138318
2022-03-29 09:15:182022-03-29 09:16:53SMC J0050.5-72380004876821995
2022-03-29 09:16:532022-03-29 09:18:12SMC J0050.6-72030004879121479
2022-03-29 09:18:122022-03-29 09:19:31SMC J0050.6-71280004880821079
2022-03-29 09:19:312022-03-29 09:21:02SMC J0059.0-74240004869321391
2022-03-29 09:21:022022-03-29 09:22:30SMC J0042.6-72370004876621788
2022-03-29 09:22:302022-03-29 09:23:54SMC J0100.4-72550004875621284
2022-03-29 09:23:542022-03-29 09:25:23SMC J0031.1-74030004869422189
2022-03-29 09:25:232022-03-29 09:26:48SMC J0038.7-72370004876521985
2022-03-29 09:26:482022-03-29 09:28:21SMC J0126.8-73030004874818593
2022-03-29 09:28:212022-03-29 09:29:47SMC J0144.9-74190004883413486
2022-03-29 09:29:472022-03-29 09:31:21SMC J0050.3-73490004871122194
2022-03-29 09:31:212022-03-29 09:32:52SMC J0107.0-71080004881820091
2022-03-29 09:32:522022-03-29 09:34:11SMC J0107.4-71430004880520479
2022-03-29 09:34:112022-03-29 09:35:34SMC J0108.4-72540004875821383
2022-03-29 09:35:342022-03-29 09:37:03SMC J0035.9-73290004872122389
2022-03-29 09:37:032022-03-29 09:39:00SMC J0120.3-724900048761195117
2022-03-29 09:39:002022-03-29 10:00:00MCG+08-11-11000956670701260
2022-03-29 10:00:002022-03-29 10:10:00SN2022cvz00015055006600
2022-03-29 10:10:002022-03-29 10:26:002cmXB1803+78400036393022960
2022-03-29 10:26:002022-03-29 10:48:00RUPRECHT 147 FIELD 4000498920101320
2022-03-29 10:48:002022-03-29 10:51:22SMC J0060.0-714500048803207202
2022-03-29 10:51:222022-03-29 10:52:59SMC J0151.2-74490004883013997
2022-03-29 10:52:592022-03-29 10:54:24SMC J0129.2-74110004881917285
2022-03-29 10:54:242022-03-29 10:55:45SMC J0129.3-73190004882316781
2022-03-29 10:55:452022-03-29 10:57:15SMC J0056.3-72210004878221990
2022-03-29 10:57:152022-03-29 10:58:51SMC J0152.3-74300004883313696
2022-03-29 10:58:512022-03-29 11:00:17SMC J0132.0-73340004882116886
2022-03-29 11:00:172022-03-29 11:01:51SMC J0042.9-72020004878921894
2022-03-29 11:01:512022-03-29 11:03:26SMC J0133.7-74060004882516695
2022-03-29 11:03:262022-03-29 11:04:54SMC J0103.0-73480004871421888
2022-03-29 11:04:542022-03-29 11:06:24SMC J0103.4-71090004881720490
2022-03-29 11:06:242022-03-29 11:07:54SMC J0034.8-72350004876422390
2022-03-29 11:07:542022-03-29 11:09:11SMC J0036.5-72540004875022477
2022-03-29 11:09:112022-03-29 11:10:46SMC J0135.2-73470004882815995
2022-03-29 11:10:462022-03-29 11:12:17SMC J0054.5-73490004871222491
2022-03-29 11:12:172022-03-29 11:13:36SMC J0054.6-74240004869222479
2022-03-29 11:13:362022-03-29 11:15:00SMC J0037.7-73470004870822684
2022-03-29 11:15:002022-03-29 11:16:19SMC J0038.2-73120004873622679
2022-03-29 11:16:192022-03-29 11:18:00SMC J0041.5-742300048689223101
2022-03-29 11:18:002022-03-29 11:23:00OGP_272303104178006300
2022-03-29 11:23:002022-03-29 11:40:00GRB 150710A000149720091020
2022-03-29 11:40:002022-03-29 11:45:00Abell 177303110934013300
2022-03-29 11:45:002022-03-29 12:00:00NGC 523600010978072900
2022-03-29 12:00:002022-03-29 12:15:00PMN J1917-192100039196014900
2022-03-29 12:15:002022-03-29 12:36:00saa-cold-88-01000762920081260
2022-03-29 12:36:002022-03-29 12:38:31SMC J0119.4-721400048788194151
2022-03-29 12:38:312022-03-29 12:39:56SMC J0119.7-73420004871720085
2022-03-29 12:39:562022-03-29 12:41:26SMC J0048.6-72210004878022290
2022-03-29 12:41:262022-03-29 12:42:58SMC J0130.7-73000004882416892
2022-03-29 12:42:582022-03-29 12:44:31SMC J0044.2-73310004872322493
2022-03-29 12:44:312022-03-29 12:45:50SMC J0044.5-72550004875222479
2022-03-29 12:45:502022-03-29 12:47:17SMC J0101.7-71270004881120887
2022-03-29 12:47:172022-03-29 12:48:42SMC J0114.0-72340004877420685
2022-03-29 12:48:422022-03-29 12:51:00SMC J0114.7-730900048745206138
2022-03-29 12:51:002022-03-29 13:05:00OGP_268603102949003840
2022-03-29 13:05:002022-03-29 13:21:00SN2022cvz00015055006960
2022-03-29 13:21:002022-03-29 13:31:002021eyw00015099002600
2022-03-29 13:31:002022-03-29 13:40:00NGC 5907 ULX00010374210540
2022-03-29 13:40:002022-03-29 13:54:00Pal 900084182002840
2022-03-29 13:54:002022-03-29 14:05:00saa-cold-88-0100076292008660
2022-03-29 14:05:002022-03-29 14:19:00saa-cold-88-0400076401021840
2022-03-29 14:19:002022-03-29 14:24:00N132D00059114070300
2022-03-29 14:24:002022-03-29 14:39:00N132D00059114071900
2022-03-29 14:39:002022-03-29 15:09:00WISEA J124028.32-230926.7000150250021800
2022-03-29 15:09:002022-03-29 15:32:00Pal 9000841820021380
2022-03-29 15:32:002022-03-29 15:44:00saa-cold-88-0100076292008720
2022-03-29 15:44:002022-03-29 15:59:00saa-cold-88-0500075912003900
2022-03-29 15:59:002022-03-29 16:04:00OGP_272303104178006300
2022-03-29 16:04:002022-03-29 16:17:00SN2022cvz00015055006780
2022-03-29 16:17:002022-03-29 16:33:00NGC 405100096125002960
2022-03-29 16:33:002022-03-29 16:53:00GALACTIC CENTER000961342361200
2022-03-29 16:53:002022-03-29 17:12:00Pal 9000841820021140
2022-03-29 17:12:002022-03-29 17:26:00saa-cold-88-0200076758005840
2022-03-29 17:26:002022-03-29 17:39:00saa-cold-88-0500075912003780
2022-03-29 17:39:002022-03-29 17:53:00AT2022ewh00015089005840
2022-03-29 17:53:002022-03-29 18:16:00WISEA J124028.32-230926.7000150250021380
2022-03-29 18:16:002022-03-29 18:31:00PMN J1917-192100039196014900
2022-03-29 18:31:002022-03-29 18:43:00RUPRECHT 147 FIELD 400049892010720
2022-03-29 18:43:002022-03-29 18:53:001RXS J195500.6-16032800083574001600
2022-03-29 18:53:002022-03-29 19:19:00saa-cold-88-02000767580051560
2022-03-29 19:19:002022-03-29 19:24:00OGP_272303104178006300
2022-03-29 19:24:002022-03-29 19:43:00GRB 150710A000149720091140
2022-03-29 19:43:002022-03-29 19:48:00Abell 177303110934013300
2022-03-29 19:48:002022-03-29 19:59:00NGC 523600010978072660
2022-03-29 19:59:002022-03-29 20:24:00RUPRECHT 147 FIELD 4000498920101500
2022-03-29 20:24:002022-03-29 20:27:23SMC J0115.5-734400048716206203
2022-03-29 20:27:232022-03-29 20:28:48SMC J0115.6-72160004878720285
2022-03-29 20:28:482022-03-29 20:30:19SMC J0043.9-74060004869722591
2022-03-29 20:30:192022-03-29 20:31:43SMC J0100.7-73310004872721884
2022-03-29 20:31:432022-03-29 20:33:02SMC J0101.0-74060004870121879
2022-03-29 20:33:022022-03-29 20:35:00SMC J0102.3-723800048771215118
2022-03-29 20:35:002022-03-29 20:58:00saa-cold-124-3000747491411380
2022-03-29 20:58:002022-03-29 21:18:00PG 1302-102000964520311200
2022-03-29 21:18:002022-03-29 21:34:00CXOU J164710.2-45521600030806100960
2022-03-29 21:34:002022-03-29 21:48:00RUPRECHT 147 FIELD 400049892010840
2022-03-29 21:48:002022-03-29 22:00:00BZB J1925-101800083849003720
2022-03-29 22:00:002022-03-29 22:03:30SMC J0056.6-733100048726220210
2022-03-29 22:03:302022-03-29 22:04:49SMC J0056.7-74060004870021979
2022-03-29 22:04:492022-03-29 22:06:20SMC J0052.5-71100004881421691
2022-03-29 22:06:202022-03-29 22:07:37SMC J0054.3-71280004880921677
2022-03-29 22:07:372022-03-29 22:09:08SMC J0125.3-73220004873319591
2022-03-29 22:09:082022-03-29 22:10:36SMC J0146.8-74530004882914588
2022-03-29 22:10:362022-03-29 22:12:01SMC J0130.6-73530004882017185
2022-03-29 22:12:012022-03-29 22:13:26SMC J0110.7-73110004874420985
2022-03-29 22:13:262022-03-29 22:14:45SMC J0111.3-73460004871521079
2022-03-29 22:14:452022-03-29 22:17:00SMC J0111.8-721700048786205135
2022-03-29 22:17:002022-03-29 22:27:00saa-cold-88-0500075912003600
2022-03-29 22:27:002022-03-29 22:38:00saa-cold-115-400074773097660
2022-03-29 22:38:002022-03-29 22:55:00ZTF21ackxdos000150240051020
2022-03-29 22:55:002022-03-29 23:01:00NGC 405100096125002360
2022-03-29 23:01:002022-03-29 23:18:00Mrk 817000140120741020
2022-03-29 23:18:002022-03-29 23:27:00PMN J1917-192100039196014540
2022-03-29 23:27:002022-03-29 23:30:18SMC J0102.6-731300048742217198
2022-03-29 23:30:182022-03-29 23:31:43SMC J0113.4-71590004879720085
2022-03-29 23:31:432022-03-29 23:33:08SMC J0056.4-72560004875522285
2022-03-29 23:33:082022-03-29 23:34:33SMC J0058.0-71280004881021085
2022-03-29 23:34:332022-03-29 23:36:00SMC J0117.9-72320004877519987
2022-03-29 23:36:002022-03-29 23:37:25SMC J0118.0-74010004870320185
2022-03-29 23:37:252022-03-29 23:38:44SMC J0126.5-73570004870519479
2022-03-29 23:38:442022-03-29 23:40:15SMC J0052.5-72210004878122391
2022-03-29 23:40:152022-03-29 23:41:34SMC J0052.5-71460004880121779
2022-03-29 23:41:342022-03-29 23:43:02SMC J0109.0-73290004872921388
2022-03-29 23:43:022022-03-29 23:44:26SMC J0050.4-73140004873922484
2022-03-29 23:44:262022-03-29 23:55:00SMC00032214252634
2022-03-29 23:55:002022-03-30 00:00:00saa-cold-88-0500075912003300

That's a lot of targets! Note that like Swift_ObsQuery it's showing you all the individual snapshots during the day. If you want to group these into observations, you can do that. Remember the observations method returns a dictionary, with obsid as the key, and the total observation details as the value. You can display it as a table in Jupyter Notebooks simply:

dayplan.observations
Begin TimeEnd TimeTarget NameObservation NumberExposure (s)
2022-03-28 23:50:002022-03-29 00:00:00OGP_2824031042950036000
2022-03-29 00:00:002022-03-29 00:07:00OGP_3917031034210034200
2022-03-29 00:07:002022-03-29 00:25:00saa-cold-218-00007410009010800
2022-03-29 00:25:002022-03-29 05:28:00MKN 60003546108821000
2022-03-29 00:35:002022-03-29 02:10:000716+7140009604100612000
2022-03-29 00:40:002022-03-29 08:55:00ZTF20abobpcb0001364903322800
2022-03-29 01:10:002022-03-29 18:53:001RXS J195500.6-1603280008357400119800
2022-03-29 01:20:002022-03-29 01:23:19SMC J0048.5-7256000487532551990
2022-03-29 01:23:192022-03-29 01:25:00SMC J0113.8-7403000487022061010
2022-03-29 01:25:002022-03-29 14:24:00N132D000591140706000
2022-03-29 01:30:002022-03-29 14:39:00N132D0005911407124000
2022-03-29 02:10:002022-03-29 13:40:00NGC 5907 ULX0001037421022200
2022-03-29 02:51:002022-03-29 02:54:19SMC J0039.6-7405000486962221990
2022-03-29 02:54:192022-03-29 02:55:38SMC J0040.0-733000048722222790
2022-03-29 02:55:382022-03-29 02:57:10SMC J0121.8-723000048776191920
2022-03-29 02:57:102022-03-29 02:58:35SMC J0122.3-735900048704194850
2022-03-29 02:58:352022-03-29 02:59:56SMC J0122.8-730500048747193810
2022-03-29 02:59:562022-03-29 03:01:15SMC J0123.8-734000048718193790
2022-03-29 03:01:152022-03-29 03:02:36SMC J0124.3-724700048762191810
2022-03-29 03:02:362022-03-29 03:03:59SMC J0136.3-732800048826157830
2022-03-29 03:03:592022-03-29 03:05:16SMC J0137.6-730900048827154770
2022-03-29 03:05:162022-03-29 03:06:45SMC J0104.8-733000048728213890
2022-03-29 03:06:452022-03-29 03:08:12SMC J0105.4-712600048812203870
2022-03-29 03:08:122022-03-29 03:09:40SMC J0052.4-733100048725222880
2022-03-29 03:09:402022-03-29 03:11:07SMC J0116.4-725100048760200870
2022-03-29 03:11:072022-03-29 03:12:39SMC J0033.5-734600048707220920
2022-03-29 03:12:392022-03-29 03:13:58SMC J0034.2-731100048735220790
2022-03-29 03:13:582022-03-29 03:15:30SMC J0117.2-732600048731198920
2022-03-29 03:15:302022-03-29 03:16:55SMC J0117.1-715700048798191850
2022-03-29 03:16:552022-03-29 03:18:27SMC J0050.3-742400048691220920
2022-03-29 03:18:272022-03-29 03:21:00SMC J0133.4-7315000488221631530
2022-03-29 03:21:002022-03-29 06:57:00SN2022csn0001508400324000
2022-03-29 03:46:002022-03-29 04:03:00M870009645301710200
2022-03-29 04:03:002022-03-29 06:02:00OGP_00570310450100522800
2022-03-29 04:26:002022-03-29 04:30:22SMC J0029.4-7344000487062212620
2022-03-29 04:30:222022-03-29 04:31:41SMC J0030.2-730900048734221790
2022-03-29 04:31:412022-03-29 04:33:03SMC J0035.3-740400048695221820
2022-03-29 04:33:032022-03-29 04:34:29SMC J0044.7-722000048779218860
2022-03-29 04:34:292022-03-29 04:35:49SMC J0048.7-714500048800211800
2022-03-29 04:35:492022-03-29 04:37:15SMC J0032.5-725200048749220860
2022-03-29 04:37:152022-03-29 04:38:43SMC J0058.8-734800048713213880
2022-03-29 04:38:432022-03-29 04:40:10SMC J0128.0-733800048719194870
2022-03-29 04:40:102022-03-29 04:41:43SMC J0056.1-711000048815205930
2022-03-29 04:41:432022-03-29 04:43:08SMC J0107.9-721900048785206850
2022-03-29 04:43:082022-03-29 04:44:30SMC J0056.2-714500048802208820
2022-03-29 04:44:302022-03-29 04:45:51SMC J0058.4-723800048770212810
2022-03-29 04:45:512022-03-29 04:47:08SMC J0100.2-722000048783210770
2022-03-29 04:47:082022-03-29 04:48:35SMC J0125.7-722800048777188870
2022-03-29 04:48:352022-03-29 04:50:03SMC J0058.2-720300048793209880
2022-03-29 04:50:032022-03-29 04:51:30SMC J0052.4-740600048699222870
2022-03-29 04:51:302022-03-29 04:52:52SMC J0058.5-731300048741216820
2022-03-29 04:52:522022-03-29 04:54:19SMC J0059.7-711000048816202870
2022-03-29 04:54:192022-03-29 04:56:00SMC J0046.6-7238000487672191010
2022-03-29 04:56:002022-03-29 05:13:00NGC26170001054905510200
2022-03-29 05:28:002022-03-29 05:47:00Mrk5010001118418911400
2022-03-29 06:02:002022-03-29 06:06:25SMC J0046.9-7128000488072102650
2022-03-29 06:06:252022-03-29 06:07:46SMC J0054.4-720300048792213810
2022-03-29 06:07:462022-03-29 06:09:15SMC J0121.3-732400048732191890
2022-03-29 06:09:152022-03-29 06:10:43SMC J0148.0-743400048832137880
2022-03-29 06:10:432022-03-29 06:12:00SMC J0149.1-741500048835129770
2022-03-29 06:12:002022-03-29 06:13:34SMC J0054.5-731400048740219940
2022-03-29 06:13:342022-03-29 06:15:01SMC J0032.9-742100048687219870
2022-03-29 06:15:012022-03-29 06:16:33SMC J0105.8-720200048795202920
2022-03-29 06:16:332022-03-29 06:17:52SMC J0106.2-723700048772208790
2022-03-29 06:17:522022-03-29 06:19:18SMC J0045.0-714500048799213860
2022-03-29 06:19:182022-03-29 06:20:48SMC J0045.9-742400048690220900
2022-03-29 06:20:482022-03-29 06:22:07SMC J0046.1-734800048710220790
2022-03-29 06:22:072022-03-29 06:23:26SMC J0046.4-731300048738220790
2022-03-29 06:23:262022-03-29 06:24:49SMC J0046.7-720300048790213830
2022-03-29 06:24:492022-03-29 06:26:16SMC J0048.2-740600048698220870
2022-03-29 06:26:162022-03-29 06:27:35SMC J0048.3-733100048724221790
2022-03-29 06:27:352022-03-29 06:28:55SMC J0052.5-725600048754221800
2022-03-29 06:28:552022-03-29 06:30:22SMC J0109.0-712500048813199870
2022-03-29 06:30:222022-03-29 06:32:00SMC J0109.6-720000048796200980
2022-03-29 06:57:002022-03-29 08:21:00W Comae / ON2310003501812513200
2022-03-29 07:07:002022-03-29 10:26:002cmXB1803+7840003639302223400
2022-03-29 07:14:002022-03-29 07:37:00PMN J1911-19080004654900713800
2022-03-29 07:37:002022-03-29 07:40:19SMC J0110.1-7236000487732061990
2022-03-29 07:40:192022-03-29 07:41:40SMC J0111.2-714200048806197810
2022-03-29 07:41:402022-03-29 07:43:01SMC J0102.0-720200048794206810
2022-03-29 07:43:012022-03-29 07:44:27SMC J0040.5-725500048751219860
2022-03-29 07:44:272022-03-29 07:45:46SMC J0040.9-722000048778217790
2022-03-29 07:45:462022-03-29 07:47:10SMC J0031.8-732700048720222840
2022-03-29 07:47:102022-03-29 07:48:40SMC J0104.1-722000048784208900
2022-03-29 07:48:402022-03-29 07:49:59SMC J0104.4-725500048757211790
2022-03-29 07:49:592022-03-29 07:51:20SMC J0054.4-723800048769219810
2022-03-29 07:51:202022-03-29 07:52:48SMC J0037.2-742200048688220880
2022-03-29 07:52:482022-03-29 07:54:20SMC J0103.7-714400048804204920
2022-03-29 07:54:202022-03-29 07:55:44SMC J0112.4-725200048759204840
2022-03-29 07:55:442022-03-29 07:57:03SMC J0113.1-732800048730203790
2022-03-29 07:57:032022-03-29 07:58:22SMC J0106.7-731200048743208790
2022-03-29 07:58:222022-03-29 07:59:49SMC J0041.9-734800048709219870
2022-03-29 07:59:492022-03-29 08:01:08SMC J0042.3-731300048737219790
2022-03-29 08:01:082022-03-29 08:02:38SMC J0118.8-730700048746194900
2022-03-29 08:02:382022-03-29 08:04:00SMC J0128.2-724400048763182820
2022-03-29 08:04:002022-03-29 19:24:00OGP_27230310417800612000
2022-03-29 08:21:002022-03-29 13:31:002021eyw0001509900212000
2022-03-29 08:55:002022-03-29 09:10:00OGP_0921031033790079000
2022-03-29 09:10:002022-03-29 09:15:18SMC J0143.7-7438000488311383180
2022-03-29 09:15:182022-03-29 09:16:53SMC J0050.5-723800048768219950
2022-03-29 09:16:532022-03-29 09:18:12SMC J0050.6-720300048791214790
2022-03-29 09:18:122022-03-29 09:19:31SMC J0050.6-712800048808210790
2022-03-29 09:19:312022-03-29 09:21:02SMC J0059.0-742400048693213910
2022-03-29 09:21:022022-03-29 09:22:30SMC J0042.6-723700048766217880
2022-03-29 09:22:302022-03-29 09:23:54SMC J0100.4-725500048756212840
2022-03-29 09:23:542022-03-29 09:25:23SMC J0031.1-740300048694221890
2022-03-29 09:25:232022-03-29 09:26:48SMC J0038.7-723700048765219850
2022-03-29 09:26:482022-03-29 09:28:21SMC J0126.8-730300048748185930
2022-03-29 09:28:212022-03-29 09:29:47SMC J0144.9-741900048834134860
2022-03-29 09:29:472022-03-29 09:31:21SMC J0050.3-734900048711221940
2022-03-29 09:31:212022-03-29 09:32:52SMC J0107.0-710800048818200910
2022-03-29 09:32:522022-03-29 09:34:11SMC J0107.4-714300048805204790
2022-03-29 09:34:112022-03-29 09:35:34SMC J0108.4-725400048758213830
2022-03-29 09:35:342022-03-29 09:37:03SMC J0035.9-732900048721223890
2022-03-29 09:37:032022-03-29 09:39:00SMC J0120.3-7249000487611951170
2022-03-29 09:39:002022-03-29 10:00:00MCG+08-11-110009566707012600
2022-03-29 10:00:002022-03-29 16:17:00SN2022cvz0001505500623400
2022-03-29 10:26:002022-03-29 21:48:00RUPRECHT 147 FIELD 40004989201043800
2022-03-29 10:48:002022-03-29 10:51:22SMC J0060.0-7145000488032072020
2022-03-29 10:51:222022-03-29 10:52:59SMC J0151.2-744900048830139970
2022-03-29 10:52:592022-03-29 10:54:24SMC J0129.2-741100048819172850
2022-03-29 10:54:242022-03-29 10:55:45SMC J0129.3-731900048823167810
2022-03-29 10:55:452022-03-29 10:57:15SMC J0056.3-722100048782219900
2022-03-29 10:57:152022-03-29 10:58:51SMC J0152.3-743000048833136960
2022-03-29 10:58:512022-03-29 11:00:17SMC J0132.0-733400048821168860
2022-03-29 11:00:172022-03-29 11:01:51SMC J0042.9-720200048789218940
2022-03-29 11:01:512022-03-29 11:03:26SMC J0133.7-740600048825166950
2022-03-29 11:03:262022-03-29 11:04:54SMC J0103.0-734800048714218880
2022-03-29 11:04:542022-03-29 11:06:24SMC J0103.4-710900048817204900
2022-03-29 11:06:242022-03-29 11:07:54SMC J0034.8-723500048764223900
2022-03-29 11:07:542022-03-29 11:09:11SMC J0036.5-725400048750224770
2022-03-29 11:09:112022-03-29 11:10:46SMC J0135.2-734700048828159950
2022-03-29 11:10:462022-03-29 11:12:17SMC J0054.5-734900048712224910
2022-03-29 11:12:172022-03-29 11:13:36SMC J0054.6-742400048692224790
2022-03-29 11:13:362022-03-29 11:15:00SMC J0037.7-734700048708226840
2022-03-29 11:15:002022-03-29 11:16:19SMC J0038.2-731200048736226790
2022-03-29 11:16:192022-03-29 11:18:00SMC J0041.5-7423000486892231010
2022-03-29 11:23:002022-03-29 19:43:00GRB 150710A0001497200921600
2022-03-29 11:40:002022-03-29 19:48:00Abell 1773031109340136000
2022-03-29 11:45:002022-03-29 19:59:00NGC 52360001097807215600
2022-03-29 12:00:002022-03-29 23:27:00PMN J1917-19210003919601423400
2022-03-29 12:15:002022-03-29 15:44:00saa-cold-88-010007629200826400
2022-03-29 12:36:002022-03-29 12:38:31SMC J0119.4-7214000487881941510
2022-03-29 12:38:312022-03-29 12:39:56SMC J0119.7-734200048717200850
2022-03-29 12:39:562022-03-29 12:41:26SMC J0048.6-722100048780222900
2022-03-29 12:41:262022-03-29 12:42:58SMC J0130.7-730000048824168920
2022-03-29 12:42:582022-03-29 12:44:31SMC J0044.2-733100048723224930
2022-03-29 12:44:312022-03-29 12:45:50SMC J0044.5-725500048752224790
2022-03-29 12:45:502022-03-29 12:47:17SMC J0101.7-712700048811208870
2022-03-29 12:47:172022-03-29 12:48:42SMC J0114.0-723400048774206850
2022-03-29 12:48:422022-03-29 12:51:00SMC J0114.7-7309000487452061380
2022-03-29 12:51:002022-03-29 13:05:00OGP_2686031029490038400
2022-03-29 13:40:002022-03-29 17:12:00Pal 90008418200233600
2022-03-29 14:05:002022-03-29 14:19:00saa-cold-88-04000764010218400
2022-03-29 14:39:002022-03-29 18:16:00WISEA J124028.32-230926.70001502500231800
2022-03-29 15:44:002022-03-30 00:00:00saa-cold-88-050007591200325800
2022-03-29 16:17:002022-03-29 23:01:00NGC 40510009612500213200
2022-03-29 16:33:002022-03-29 16:53:00GALACTIC CENTER0009613423612000
2022-03-29 17:12:002022-03-29 19:19:00saa-cold-88-020007675800524000
2022-03-29 17:39:002022-03-29 17:53:00AT2022ewh000150890058400
2022-03-29 20:24:002022-03-29 20:27:23SMC J0115.5-7344000487162062030
2022-03-29 20:27:232022-03-29 20:28:48SMC J0115.6-721600048787202850
2022-03-29 20:28:482022-03-29 20:30:19SMC J0043.9-740600048697225910
2022-03-29 20:30:192022-03-29 20:31:43SMC J0100.7-733100048727218840
2022-03-29 20:31:432022-03-29 20:33:02SMC J0101.0-740600048701218790
2022-03-29 20:33:022022-03-29 20:35:00SMC J0102.3-7238000487712151180
2022-03-29 20:35:002022-03-29 20:58:00saa-cold-124-30007474914113800
2022-03-29 20:58:002022-03-29 21:18:00PG 1302-1020009645203112000
2022-03-29 21:18:002022-03-29 21:34:00CXOU J164710.2-455216000308061009600
2022-03-29 21:48:002022-03-29 22:00:00BZB J1925-1018000838490037200
2022-03-29 22:00:002022-03-29 22:03:30SMC J0056.6-7331000487262202100
2022-03-29 22:03:302022-03-29 22:04:49SMC J0056.7-740600048700219790
2022-03-29 22:04:492022-03-29 22:06:20SMC J0052.5-711000048814216910
2022-03-29 22:06:202022-03-29 22:07:37SMC J0054.3-712800048809216770
2022-03-29 22:07:372022-03-29 22:09:08SMC J0125.3-732200048733195910
2022-03-29 22:09:082022-03-29 22:10:36SMC J0146.8-745300048829145880
2022-03-29 22:10:362022-03-29 22:12:01SMC J0130.6-735300048820171850
2022-03-29 22:12:012022-03-29 22:13:26SMC J0110.7-731100048744209850
2022-03-29 22:13:262022-03-29 22:14:45SMC J0111.3-734600048715210790
2022-03-29 22:14:452022-03-29 22:17:00SMC J0111.8-7217000487862051350
2022-03-29 22:27:002022-03-29 22:38:00saa-cold-115-4000747730976600
2022-03-29 22:38:002022-03-29 22:55:00ZTF21ackxdos0001502400510200
2022-03-29 23:01:002022-03-29 23:18:00Mrk 8170001401207410200
2022-03-29 23:27:002022-03-29 23:30:18SMC J0102.6-7313000487422171980
2022-03-29 23:30:182022-03-29 23:31:43SMC J0113.4-715900048797200850
2022-03-29 23:31:432022-03-29 23:33:08SMC J0056.4-725600048755222850
2022-03-29 23:33:082022-03-29 23:34:33SMC J0058.0-712800048810210850
2022-03-29 23:34:332022-03-29 23:36:00SMC J0117.9-723200048775199870
2022-03-29 23:36:002022-03-29 23:37:25SMC J0118.0-740100048703201850
2022-03-29 23:37:252022-03-29 23:38:44SMC J0126.5-735700048705194790
2022-03-29 23:38:442022-03-29 23:40:15SMC J0052.5-722100048781223910
2022-03-29 23:40:152022-03-29 23:41:34SMC J0052.5-714600048801217790
2022-03-29 23:41:342022-03-29 23:43:02SMC J0109.0-732900048729213880
2022-03-29 23:43:022022-03-29 23:44:26SMC J0050.4-731400048739224840
2022-03-29 23:44:262022-03-29 23:55:00SMC000322142526340

A note about time formats

New features in swifttools 2.4

All times returned by PlanQuery come out in a time system that is derived from Swift's internal clock. The problem with this is that this clock, although close to UTC, is not actually UTC, due to the lack of handling of leap seconds, and also a slow drift in the clock itself. However, you can now correct this using the clock_correct() method. Let's do that:

query = PlanQuery(obsid='03102995005')
query.clock_correct()
query
Begin Time (UTC)End Time (UTC)Target NameObservation NumberExposure (s)
2022-03-27 01:56:31.1468182022-03-27 02:02:31.146793OGP_262303102995005359
2022-03-28 19:25:31.1367222022-03-28 19:30:31.136702OGP_262303102995005299

So the table above now shows times that are specifically labelled as UTC. You'll note that the times now have fractions of a second, which is due to the clock correction that is applied. You can see the value of this clock correction (which includes both leap seconds and clock drift corrections), by looking at one of the date values, e.g.:

query[0].begin
MET (s)Swift TimeUTC Time (default)UTCF (s)
670039020.02022-03-27 01:57:002022-03-27 01:56:31.146818-28.853182

So for this observation, the UT Correction Factor (UTCF) is -24.012318s. For more detail on this correction, please take a look at the Swift_Clock and the notebook explaining that.

Swift Mission Operations Center

The Pennsylvania State University
301 Science Park Road,
Building 2 Suite 332,
State College, PA 16801
USA
☎ +1 (814) 865-6834
📧 swiftods@swift.psu.edu

Swift MOC Team Leads

Mission Director: John Nousek
Science Operations: Jamie Kennea
Flight Operations: Mark Hilliard
UVOT: Michael Siegel
XRT: Jamie Kennea