1 00:00:04,960 --> 00:00:19,999 [Music] 2 00:00:20,640 --> 00:00:24,880 now we've heard about the Australian 3 00:00:22,240 --> 00:00:27,039 syron so now we're going to hear about 4 00:00:24,880 --> 00:00:29,160 iic which is the International Center 5 00:00:27,039 --> 00:00:30,920 for radio astronomy research is that 6 00:00:29,160 --> 00:00:32,520 right yes that's where I work but that's 7 00:00:30,920 --> 00:00:34,800 not talking 8 00:00:32,520 --> 00:00:37,239 about I'll move away so we're going to 9 00:00:34,800 --> 00:00:38,200 hear about python for astronomers from 10 00:00:37,239 --> 00:00:40,760 Andrew 11 00:00:38,200 --> 00:00:42,360 Williams Andrew is an optical astronomer 12 00:00:40,760 --> 00:00:45,239 who moved from Research into software 13 00:00:42,360 --> 00:00:47,640 for telescope and instrumentation Auto 14 00:00:45,239 --> 00:00:49,840 automation he's been working on the 15 00:00:47,640 --> 00:00:51,960 merchants and Widefield array and 16 00:00:49,840 --> 00:00:55,039 relocated and related instrumentation 17 00:00:51,960 --> 00:00:59,359 since 2007 he works for C uni in Perth 18 00:00:55,039 --> 00:00:59,359 Australia thank you Andrew 19 00:01:02,600 --> 00:01:08,439 hi I'd like to start by acknowledging 20 00:01:04,720 --> 00:01:10,280 the N Nation where I work and the uh uh 21 00:01:08,439 --> 00:01:12,759 B the sorry the IM Nation where this 22 00:01:10,280 --> 00:01:15,280 photo is taken and the cooland nation 23 00:01:12,759 --> 00:01:16,920 here I normally work on this guide this 24 00:01:15,280 --> 00:01:18,840 is a merch and wide field array radio 25 00:01:16,920 --> 00:01:20,840 telescope out um in the middle of 26 00:01:18,840 --> 00:01:21,840 nowhere uh but I'm not going to be 27 00:01:20,840 --> 00:01:23,840 talking about that I'm going to be 28 00:01:21,840 --> 00:01:26,079 talking about how you can use Python to 29 00:01:23,840 --> 00:01:28,680 do astronomy astronomy 30 00:01:26,079 --> 00:01:31,040 calculations uh for non- 31 00:01:28,680 --> 00:01:33,960 astronomers so glossing over all of the 32 00:01:31,040 --> 00:01:37,920 scary mats as Lizzie put it started my 33 00:01:33,960 --> 00:01:39,920 career here uh I actually did a um 34 00:01:37,920 --> 00:01:42,079 honors and then a PhD building a digital 35 00:01:39,920 --> 00:01:43,880 camera for this telescope uh it was a 36 00:01:42,079 --> 00:01:46,399 liquid nitrogen cooled camera to set up 37 00:01:43,880 --> 00:01:47,680 an automatic search for Supernova uh and 38 00:01:46,399 --> 00:01:48,759 I was going to hand this around but I 39 00:01:47,680 --> 00:01:52,360 didn't realize it was going to be in the 40 00:01:48,759 --> 00:01:54,880 big room this is $10,000 in 1989 money 41 00:01:52,360 --> 00:01:56,799 of uh CCD chip and analog to digital 42 00:01:54,880 --> 00:01:58,799 converter for that camera this is the 43 00:01:56,799 --> 00:02:00,159 actual chip in the camera that I built 44 00:01:58,799 --> 00:02:03,759 so if you want to geek out about 45 00:02:00,159 --> 00:02:03,759 obsolete Electronics find me at lunch 46 00:02:04,439 --> 00:02:10,160 time so that was the first digital photo 47 00:02:07,159 --> 00:02:12,160 taken in W by digital photo there's some 48 00:02:10,160 --> 00:02:14,440 caveats like I mean taken by digital 49 00:02:12,160 --> 00:02:16,280 camera not digitized and not of 50 00:02:14,440 --> 00:02:18,000 something in the sky through telescope 51 00:02:16,280 --> 00:02:20,800 that's a 5 and 1/4 in floppy and a 52 00:02:18,000 --> 00:02:22,640 cardboard box taken using a pinhole 53 00:02:20,800 --> 00:02:25,239 camera I put a pin in a piece of 54 00:02:22,640 --> 00:02:26,840 aluminum foil that was the first picture 55 00:02:25,239 --> 00:02:28,640 out of the to out of the 56 00:02:26,840 --> 00:02:30,560 camera but first of all I'm going to 57 00:02:28,640 --> 00:02:32,599 talk about coordinates 58 00:02:30,560 --> 00:02:34,879 um when we talk about the position of 59 00:02:32,599 --> 00:02:36,959 things in the sky we usually don't know 60 00:02:34,879 --> 00:02:39,159 distances so for coordinates we use 61 00:02:36,959 --> 00:02:41,560 angles from The 62 00:02:39,159 --> 00:02:43,200 Observer so those angles are the 63 00:02:41,560 --> 00:02:45,879 direction that need we need to look to 64 00:02:43,200 --> 00:02:47,760 see that object so we represent a 65 00:02:45,879 --> 00:02:49,560 position of the Sky by two angles 66 00:02:47,760 --> 00:02:51,640 describing a point on the inside of an 67 00:02:49,560 --> 00:02:53,879 imaginary sphere around the 68 00:02:51,640 --> 00:02:56,159 Observer it's equivalent to latitude and 69 00:02:53,879 --> 00:02:58,239 longitude we measure positions on Earth 70 00:02:56,159 --> 00:03:00,360 uh with angles from the center of the 71 00:02:58,239 --> 00:03:02,000 Earth around uh what's not an imaginary 72 00:03:00,360 --> 00:03:04,720 sphere well it's not a sphere but around 73 00:03:02,000 --> 00:03:06,599 the the sphere of the earth coordinate 74 00:03:04,720 --> 00:03:07,959 frames we need to work out what 75 00:03:06,599 --> 00:03:09,319 references we're using when we're 76 00:03:07,959 --> 00:03:10,440 talking about a coordinate called a 77 00:03:09,319 --> 00:03:13,159 coordinate 78 00:03:10,440 --> 00:03:14,920 frame so the frame we use for both 79 00:03:13,159 --> 00:03:16,560 astronomy and for latitude and longitude 80 00:03:14,920 --> 00:03:19,440 is based on the rotation of the Earth on 81 00:03:16,560 --> 00:03:21,000 its axis so for longitude the zero point 82 00:03:19,440 --> 00:03:23,239 is what we call a grenwich Meridian it's 83 00:03:21,000 --> 00:03:25,000 just an agreed upon point on the earth 84 00:03:23,239 --> 00:03:27,879 that we call Zero 85 00:03:25,000 --> 00:03:29,319 longitude and uh that agreed upon point 86 00:03:27,879 --> 00:03:31,480 was agreed upon fairly late the French 87 00:03:29,319 --> 00:03:32,920 had a zero longitude line go through 88 00:03:31,480 --> 00:03:34,959 Paris Observatory and it just happened 89 00:03:32,920 --> 00:03:36,599 that the the English one out the 90 00:03:34,959 --> 00:03:38,840 references for latitude of the equator 91 00:03:36,599 --> 00:03:41,400 in the pole so 0 degrees latitude is on 92 00:03:38,840 --> 00:03:43,720 the equator minus 90 is a South Pole and 93 00:03:41,400 --> 00:03:45,480 Plus 90 is a North Pole and we use 94 00:03:43,720 --> 00:03:48,879 exactly the same system for coordinates 95 00:03:45,480 --> 00:03:51,799 in the sky so we can refer to what do we 96 00:03:48,879 --> 00:03:53,400 call Al azth coordinates where azth is 97 00:03:51,799 --> 00:03:55,239 the compass bearing that you need to 98 00:03:53,400 --> 00:03:59,319 face in order to look towards the object 99 00:03:55,239 --> 00:04:02,159 North is 0° uh East is 90° and so on and 100 00:03:59,319 --> 00:04:03,519 altitude is the angle above the Horizon 101 00:04:02,159 --> 00:04:05,760 it has a couple of different names 102 00:04:03,519 --> 00:04:08,200 sometimes altitude is called um 103 00:04:05,760 --> 00:04:09,799 elevation the elevation angle and 104 00:04:08,200 --> 00:04:11,360 sometimes to be really different uh 105 00:04:09,799 --> 00:04:12,680 people talk about the Zenith angle which 106 00:04:11,360 --> 00:04:14,319 instead of being the angle above the 107 00:04:12,680 --> 00:04:17,959 Horizon it's the angle from straight 108 00:04:14,319 --> 00:04:19,799 overhead so you can find coordinates uh 109 00:04:17,959 --> 00:04:23,000 that are sort of altitude or elevation 110 00:04:19,799 --> 00:04:24,479 or 90° that which is a zeni angle the 111 00:04:23,000 --> 00:04:26,440 problem is the Earth is turning and 112 00:04:24,479 --> 00:04:28,479 moving so if you work out what the 113 00:04:26,440 --> 00:04:30,240 altitude and ath is for the moon or 114 00:04:28,479 --> 00:04:32,199 alpha centur or anything else 115 00:04:30,240 --> 00:04:35,199 it's only true for that location on 116 00:04:32,199 --> 00:04:37,240 Earth at that instant in time not really 117 00:04:35,199 --> 00:04:39,479 useful for telling uh putting in a 118 00:04:37,240 --> 00:04:40,919 catalog to say this is where AA Sor is 119 00:04:39,479 --> 00:04:43,160 compared to other 120 00:04:40,919 --> 00:04:46,560 stars so we Define a new coordinate 121 00:04:43,160 --> 00:04:48,400 system uh using uh Celestial equator 122 00:04:46,560 --> 00:04:50,120 which is the line in the sky above the 123 00:04:48,400 --> 00:04:52,199 equator of the earth and the celestial 124 00:04:50,120 --> 00:04:54,199 poles which is the points in sky above 125 00:04:52,199 --> 00:04:56,080 the poles of the earth so you can only 126 00:04:54,199 --> 00:04:57,960 see one of the celestial poles at a time 127 00:04:56,080 --> 00:04:59,800 unless you're exactly in the equator in 128 00:04:57,960 --> 00:05:02,160 which case you can see two but they're 129 00:04:59,800 --> 00:05:04,000 just on the equator in the northern 130 00:05:02,160 --> 00:05:06,080 hemisphere the north Celestial pole is 131 00:05:04,000 --> 00:05:08,960 always due north and it's an angle above 132 00:05:06,080 --> 00:05:10,360 the Horizon roughly equal to a Latitude 133 00:05:08,960 --> 00:05:11,800 um it would be exactly equal if the 134 00:05:10,360 --> 00:05:12,520 Earth wasn't a sphere and things weren't 135 00:05:11,800 --> 00:05:14,360 more 136 00:05:12,520 --> 00:05:17,160 complicated I said the Earth was a 137 00:05:14,360 --> 00:05:19,520 sphere rather in Perth the South Cal 138 00:05:17,160 --> 00:05:22,039 pole is always due south it's at roughly 139 00:05:19,520 --> 00:05:24,120 32 de above the Horizon and if you look 140 00:05:22,039 --> 00:05:26,080 at the stars at night all of the stars 141 00:05:24,120 --> 00:05:28,360 rotate in a circle around that pole so 142 00:05:26,080 --> 00:05:29,960 if the South cesal Poles over there a 143 00:05:28,360 --> 00:05:32,400 star might go in a circle like that 144 00:05:29,960 --> 00:05:34,400 taking 24 hours to go around further 145 00:05:32,400 --> 00:05:36,280 away they go up and down and above and 146 00:05:34,400 --> 00:05:38,720 below the Horizon but close to the pole 147 00:05:36,280 --> 00:05:38,720 they go in 148 00:05:39,520 --> 00:05:46,840 circles so equatorial coordinates uh 149 00:05:43,199 --> 00:05:49,800 need a reference frame and just like uh 150 00:05:46,840 --> 00:05:52,360 longitude we pick an arbitrary point in 151 00:05:49,800 --> 00:05:55,400 the sky and we call that zero R 152 00:05:52,360 --> 00:05:58,280 Ascension ra is the equivalent of of 153 00:05:55,400 --> 00:05:59,759 longitude in the sky uh don't ask me why 154 00:05:58,280 --> 00:06:01,479 it's called R Ascension historically 155 00:05:59,759 --> 00:06:04,520 Reasons from hundreds of years 156 00:06:01,479 --> 00:06:06,039 ago and also for historical reasons it's 157 00:06:04,520 --> 00:06:08,280 often measured in hours minutes and 158 00:06:06,039 --> 00:06:10,039 seconds counting around like time zones 159 00:06:08,280 --> 00:06:11,080 only to the microsc if you want an 160 00:06:10,039 --> 00:06:13,440 accurate 161 00:06:11,080 --> 00:06:15,000 coordinate zero point for ra is this 162 00:06:13,440 --> 00:06:17,319 arbitrary fix point on the sky called 163 00:06:15,000 --> 00:06:20,599 the first point of Aries it's the point 164 00:06:17,319 --> 00:06:21,680 where the ecliptic crosses the um the 165 00:06:20,599 --> 00:06:24,199 celestial 166 00:06:21,680 --> 00:06:25,759 Equator the declination of a star is the 167 00:06:24,199 --> 00:06:27,960 angle above or below the celestial 168 00:06:25,759 --> 00:06:29,319 equator from Plus 90 the north Celestial 169 00:06:27,960 --> 00:06:30,919 pole the point in the sky right above 170 00:06:29,319 --> 00:06:34,560 the nor nor pole all the way through to 171 00:06:30,919 --> 00:06:36,560 minus 90 at the South Cal pole so we've 172 00:06:34,560 --> 00:06:38,400 got right Ascension which is like 173 00:06:36,560 --> 00:06:40,840 longitude measured around the clock 174 00:06:38,400 --> 00:06:43,479 around the the equator and declination 175 00:06:40,840 --> 00:06:46,560 which is like latitude from- 90 to Plus 176 00:06:43,479 --> 00:06:48,520 90 the Earth is tilted relative to the 177 00:06:46,560 --> 00:06:50,759 rest of the solar system relative to the 178 00:06:48,520 --> 00:06:52,680 sun and the other planets so that 179 00:06:50,759 --> 00:06:54,599 inclination line is how much the earth 180 00:06:52,680 --> 00:06:56,280 axis is tilted we've got the north 181 00:06:54,599 --> 00:06:57,759 Celestial pole directly above the North 182 00:06:56,280 --> 00:07:00,319 Pole of the earth South Celestial pole 183 00:06:57,759 --> 00:07:03,199 directly above the South Pole and we 184 00:07:00,319 --> 00:07:05,599 measure uh R Ascension is one of that 185 00:07:03,199 --> 00:07:07,759 those thick red arrows and declination 186 00:07:05,599 --> 00:07:09,680 is the other thick red arrow uh right 187 00:07:07,759 --> 00:07:11,360 Ascension being the equivalent to 188 00:07:09,680 --> 00:07:12,400 longitude and declination being 189 00:07:11,360 --> 00:07:16,520 equivalent to 190 00:07:12,400 --> 00:07:18,479 Latitude there are some caveats um the 191 00:07:16,520 --> 00:07:21,560 earth axis is actually drifting on the 192 00:07:18,479 --> 00:07:25,319 sky uh the Earth imagine a top slowing 193 00:07:21,560 --> 00:07:26,800 down it kind of does that so the Earth's 194 00:07:25,319 --> 00:07:28,800 axis is doing that sort of motion that's 195 00:07:26,800 --> 00:07:30,639 called procession well the procession is 196 00:07:28,800 --> 00:07:32,879 this motion the mutation is is the 197 00:07:30,639 --> 00:07:35,440 bouncing up and down as it rotates and 198 00:07:32,879 --> 00:07:37,080 that happens over thousands of years but 199 00:07:35,440 --> 00:07:38,560 because the earth axis is actually 200 00:07:37,080 --> 00:07:41,080 moving in a different direction in the 201 00:07:38,560 --> 00:07:43,479 sky every year we need to give the 202 00:07:41,080 --> 00:07:45,800 position as a right attention and a 203 00:07:43,479 --> 00:07:47,400 declination and some kind of idea of 204 00:07:45,800 --> 00:07:50,720 where the Earth Anis is pointing at the 205 00:07:47,400 --> 00:07:54,039 time usually we we talk about j2000 206 00:07:50,720 --> 00:07:55,840 meaning a coordinate frame using the 207 00:07:54,039 --> 00:07:57,720 positions on the sky relative to where 208 00:07:55,840 --> 00:08:00,919 the Earth's axis is pointing at the 209 00:07:57,720 --> 00:08:03,479 start of the year 2000 in the 1980s they 210 00:08:00,919 --> 00:08:04,879 often use uh 1950 as a reference instead 211 00:08:03,479 --> 00:08:07,560 of 212 00:08:04,879 --> 00:08:09,440 2000 so it's a little bit like measuring 213 00:08:07,560 --> 00:08:11,440 latitude and longitude if you wanted to 214 00:08:09,440 --> 00:08:14,159 use the magnetic pole of the earth 215 00:08:11,440 --> 00:08:16,039 instead of the the true um the 216 00:08:14,159 --> 00:08:18,199 rotational pole you know the magnetic 217 00:08:16,039 --> 00:08:20,960 poles are drifting so if you wanted to 218 00:08:18,199 --> 00:08:22,199 measure longitude and latitude using the 219 00:08:20,960 --> 00:08:24,840 magnetic poles of the earth you'd have 220 00:08:22,199 --> 00:08:27,240 to specify where the magnetic pole was 221 00:08:24,840 --> 00:08:29,159 when you uh defined those 222 00:08:27,240 --> 00:08:31,080 coordinates modern positions and a 223 00:08:29,159 --> 00:08:34,479 modern catalog usually What's called the 224 00:08:31,080 --> 00:08:36,479 icrs frame which uses 2,000 as an 225 00:08:34,479 --> 00:08:38,440 equinox to refer to where the axis is 226 00:08:36,479 --> 00:08:40,440 pointing but they Define coordinates as 227 00:08:38,440 --> 00:08:42,519 seen from the center of the solar system 228 00:08:40,440 --> 00:08:44,560 not from the earth which makes a 229 00:08:42,519 --> 00:08:47,560 difference for nearby objects but not so 230 00:08:44,560 --> 00:08:51,240 much for Far Away objects an alternative 231 00:08:47,560 --> 00:08:53,640 is the gcrs frame which is also used the 232 00:08:51,240 --> 00:08:55,880 the 2000 Equinox where the axis was in 233 00:08:53,640 --> 00:08:57,640 the year 2000 but refers to coordinates 234 00:08:55,880 --> 00:08:59,440 as seen from the center of the Earth or 235 00:08:57,640 --> 00:09:00,880 there are modifications uh where you can 236 00:08:59,440 --> 00:09:02,640 can use coordinates as seen from your 237 00:09:00,880 --> 00:09:03,959 particular Observatory and that's 238 00:09:02,640 --> 00:09:06,880 important if you're looking at things 239 00:09:03,959 --> 00:09:09,040 close in like if you want to look at um 240 00:09:06,880 --> 00:09:10,800 Mercury it's more useful to define the 241 00:09:09,040 --> 00:09:12,480 coordinate as seen from the earth and 242 00:09:10,800 --> 00:09:16,120 not as seen from the center of the solar 243 00:09:12,480 --> 00:09:16,120 system because your telescopes are on 244 00:09:16,160 --> 00:09:20,600 earth if you want to represent time this 245 00:09:18,560 --> 00:09:22,519 is the first real code here uh I'm going 246 00:09:20,600 --> 00:09:25,120 to talk about the astropy library 247 00:09:22,519 --> 00:09:27,200 because it's um the most General 248 00:09:25,120 --> 00:09:29,079 astronomy Library you can find it is 249 00:09:27,200 --> 00:09:30,959 incredibly accurate incredibly detailed 250 00:09:29,079 --> 00:09:33,320 and if you read the documentation it 251 00:09:30,959 --> 00:09:35,360 will dive you straight into curly 252 00:09:33,320 --> 00:09:36,200 horrible scary maths that you don't need 253 00:09:35,360 --> 00:09:39,360 to 254 00:09:36,200 --> 00:09:41,360 know the basic idea is you import a Time 255 00:09:39,360 --> 00:09:44,920 class you can either ask for the time 256 00:09:41,360 --> 00:09:47,360 now or you can pass it a Constructor uh 257 00:09:44,920 --> 00:09:49,200 in a whole range of different formats uh 258 00:09:47,360 --> 00:09:50,839 it understands a bunch of them without 259 00:09:49,200 --> 00:09:52,200 you're needing to explain like if you 260 00:09:50,839 --> 00:09:55,079 just give it a year month day hour 261 00:09:52,200 --> 00:09:57,720 minute second it'll understand that if 262 00:09:55,079 --> 00:09:59,920 you give it uh a big number and tell it 263 00:09:57,720 --> 00:10:01,959 the format is UNIX that's your the Unix 264 00:09:59,920 --> 00:10:04,600 Tim stamp if you give it a date time 265 00:10:01,959 --> 00:10:07,560 object it'll also work it out and just 266 00:10:04,600 --> 00:10:09,440 tell you I put scale equals UTC there 267 00:10:07,560 --> 00:10:11,000 because there are a bunch of different 268 00:10:09,440 --> 00:10:14,680 time scales they're all slightly 269 00:10:11,000 --> 00:10:17,600 different um they all have different uh 270 00:10:14,680 --> 00:10:19,240 features like some of them are um 271 00:10:17,600 --> 00:10:21,000 relative to what's called atomic time 272 00:10:19,240 --> 00:10:22,800 some of them are locked to the rotation 273 00:10:21,000 --> 00:10:25,680 of the earth if you don't know what a 274 00:10:22,800 --> 00:10:28,120 time scale is you want UTC if you do 275 00:10:25,680 --> 00:10:31,399 know what a time scale is you 276 00:10:28,120 --> 00:10:32,880 99.99% of the the time want UTC but the 277 00:10:31,399 --> 00:10:35,200 time class sometimes gives you a 278 00:10:32,880 --> 00:10:36,839 different one if you pass it on usual um 279 00:10:35,200 --> 00:10:38,959 signing value so I'd always say scale 280 00:10:36,839 --> 00:10:41,440 equals UTC there just to be 281 00:10:38,959 --> 00:10:43,800 sure for output there are a whole bunch 282 00:10:41,440 --> 00:10:45,880 of attributes you can ask for the iso 283 00:10:43,800 --> 00:10:48,639 representation if you want a string the 284 00:10:45,880 --> 00:10:51,120 Unix representation if you want a a 285 00:10:48,639 --> 00:10:52,519 Epoch timestamp the mjd if you want the 286 00:10:51,120 --> 00:10:53,680 modified Julian day there's a whole 287 00:10:52,519 --> 00:10:56,240 bunch of different attributes if you 288 00:10:53,680 --> 00:10:56,240 want in different 289 00:10:56,519 --> 00:11:00,880 formats the other cool thing about asrai 290 00:10:59,160 --> 00:11:03,040 is almost all of the constructors of 291 00:11:00,880 --> 00:11:06,440 these objects accept iterables as a 292 00:11:03,040 --> 00:11:10,040 value so if you create a Time object 293 00:11:06,440 --> 00:11:12,480 that has an array of values then you get 294 00:11:10,040 --> 00:11:14,320 a single time object that internally 295 00:11:12,480 --> 00:11:16,519 stores that as a numpy array of all of 296 00:11:14,320 --> 00:11:18,959 the values you passed to it and you can 297 00:11:16,519 --> 00:11:21,079 then use that one time object in 298 00:11:18,959 --> 00:11:23,720 calculations and you'll get back an 299 00:11:21,079 --> 00:11:26,639 array of values one for each item in the 300 00:11:23,720 --> 00:11:28,880 input array that's useful because all of 301 00:11:26,639 --> 00:11:31,800 the hairy calculations are done on the 302 00:11:28,880 --> 00:11:33,600 nump as a whole and all of the hairy 303 00:11:31,800 --> 00:11:35,639 parameters about exactly how that time 304 00:11:33,600 --> 00:11:39,720 is defined stored on the object as a 305 00:11:35,639 --> 00:11:42,639 whole and all it stores is a num 306 00:11:39,720 --> 00:11:45,480 values so if you wanted to represent a 307 00:11:42,639 --> 00:11:49,120 position you ask for a Skyward object 308 00:11:45,480 --> 00:11:50,560 Sky cord is a generic astropy uh class 309 00:11:49,120 --> 00:11:53,279 that represents the coordinates of 310 00:11:50,560 --> 00:11:54,600 things in the sky and just like time 311 00:11:53,279 --> 00:11:58,600 there are a whole bunch of different 312 00:11:54,600 --> 00:11:59,839 ways to specify them uh you can ask for 313 00:11:58,600 --> 00:12:01,680 uh a simple 314 00:11:59,839 --> 00:12:03,800 passing two values and if you just pass 315 00:12:01,680 --> 00:12:06,519 two values it recognizes the first one 316 00:12:03,800 --> 00:12:09,800 is right Ascension and the second one is 317 00:12:06,519 --> 00:12:12,360 declination you uh specify the unit with 318 00:12:09,800 --> 00:12:14,839 this unit argument so here both of those 319 00:12:12,360 --> 00:12:17,639 values the first one and the second one 320 00:12:14,839 --> 00:12:20,000 they're in degrees if you want to pass 321 00:12:17,639 --> 00:12:23,399 an a r Ascension in hours then instead 322 00:12:20,000 --> 00:12:26,839 of passing um degrees as a unit you pass 323 00:12:23,399 --> 00:12:28,519 a tupal and the tupal represents the the 324 00:12:26,839 --> 00:12:30,240 units for the first parameter and the 325 00:12:28,519 --> 00:12:35,079 units for the second parameter so that 326 00:12:30,240 --> 00:12:36,320 is 1.234 hours andus 2634 de for R 327 00:12:35,079 --> 00:12:39,680 ension 328 00:12:36,320 --> 00:12:41,480 declaration for uh C we're specifying 329 00:12:39,680 --> 00:12:43,560 the right exension as what's called a SE 330 00:12:41,480 --> 00:12:47,240 admal value that's just hours minutes 331 00:12:43,560 --> 00:12:50,360 and seconds just like you'd specify time 332 00:12:47,240 --> 00:12:52,839 123456 and you can specify either hours 333 00:12:50,360 --> 00:12:54,639 minute seconds uh or degrees minute 334 00:12:52,839 --> 00:12:58,639 seconds you can specify the degrees 335 00:12:54,639 --> 00:13:01,360 value Asus 32 uh degrees 3 minutes and 4 336 00:12:58,639 --> 00:13:03,680 seconds and by the units we've specified 337 00:13:01,360 --> 00:13:06,839 exactly that it's 12 hours and 34 338 00:13:03,680 --> 00:13:10,199 minutes and not 12° and 34 339 00:13:06,839 --> 00:13:13,480 minutes uh if you pass a third argument 340 00:13:10,199 --> 00:13:15,519 uh without a um a parameter name then 341 00:13:13,480 --> 00:13:17,199 it's the distance and again we've 342 00:13:15,519 --> 00:13:18,639 specified the units for that distance as 343 00:13:17,199 --> 00:13:21,279 light years there's a whole bunch of 344 00:13:18,639 --> 00:13:22,920 different units you can use if you ask 345 00:13:21,279 --> 00:13:26,399 for the attributes you can ask for the 346 00:13:22,920 --> 00:13:29,120 value of uh the RA in degrees if you'd 347 00:13:26,399 --> 00:13:30,560 said a. ra. hour you'd get the value 348 00:13:29,120 --> 00:13:33,920 back in hours as you can see on the 349 00:13:30,560 --> 00:13:35,839 second line they're also internally um 350 00:13:33,920 --> 00:13:39,120 storing this as a cartisian 351 00:13:35,839 --> 00:13:41,639 representation so uh you can ask for the 352 00:13:39,120 --> 00:13:44,240 cartisian value and you'll get your x y 353 00:13:41,639 --> 00:13:46,680 and Zed in light years uh and because 354 00:13:44,240 --> 00:13:49,040 these are ICS coordinates it's inight is 355 00:13:46,680 --> 00:13:50,360 from the center of the solar system if 356 00:13:49,040 --> 00:13:52,680 you don't have a distance for that 357 00:13:50,360 --> 00:13:56,160 coordinate then what you get are an XYZ 358 00:13:52,680 --> 00:14:00,720 value in dimensionless um unit one 359 00:13:56,160 --> 00:14:00,720 radius sphere so it's not as useful 360 00:14:01,839 --> 00:14:05,480 you can also look up objects by name 361 00:14:04,000 --> 00:14:07,800 internally that uses what's called a 362 00:14:05,480 --> 00:14:10,600 sesame website run by research 363 00:14:07,800 --> 00:14:11,800 organization in France uh so you can ask 364 00:14:10,600 --> 00:14:14,680 for the name of a whole bunch of 365 00:14:11,800 --> 00:14:16,639 different objects um in from you know 366 00:14:14,680 --> 00:14:18,240 random catalog names in catalogs of 367 00:14:16,639 --> 00:14:20,759 pulsars through to things like alphas 368 00:14:18,240 --> 00:14:22,399 and T once you created it it behaves 369 00:14:20,759 --> 00:14:23,880 like any other Sky coordinate object so 370 00:14:22,399 --> 00:14:26,160 you're going to ask for the hour or the 371 00:14:23,880 --> 00:14:30,480 the RA in hours or the the declination 372 00:14:26,160 --> 00:14:32,240 degrees or the cartisian representation 373 00:14:30,480 --> 00:14:33,800 uh it does not supply distances if you 374 00:14:32,240 --> 00:14:35,120 ask for the distance of alpha centor you 375 00:14:33,800 --> 00:14:37,000 won't get it you'll need to look it up 376 00:14:35,120 --> 00:14:38,880 in a in a catalog and I'll talk about 377 00:14:37,000 --> 00:14:42,560 that 378 00:14:38,880 --> 00:14:44,759 later so uh for objects inside the solar 379 00:14:42,560 --> 00:14:46,920 system we have get sun to tell you the 380 00:14:44,759 --> 00:14:48,680 position of sun get moon tell you where 381 00:14:46,920 --> 00:14:51,399 the Moon is or get body to tell you 382 00:14:48,680 --> 00:14:53,360 where Jupiter or Europa or uh whatever 383 00:14:51,399 --> 00:14:55,040 other solar system body you want and 384 00:14:53,360 --> 00:14:56,800 these things need time as an argument 385 00:14:55,040 --> 00:14:58,839 because all of these things move around 386 00:14:56,800 --> 00:15:01,880 the position of m42 doesn't move it's a 387 00:14:58,839 --> 00:15:03,959 it's a a Galaxy um well not in human 388 00:15:01,880 --> 00:15:07,440 time scales position of the Moon and Sun 389 00:15:03,959 --> 00:15:09,240 and Europa do move so you create a time 390 00:15:07,440 --> 00:15:12,120 and you ask for the position of the Sun 391 00:15:09,240 --> 00:15:15,639 or the moon or what else you want they 392 00:15:12,120 --> 00:15:17,639 return Sky coed instances but um because 393 00:15:15,639 --> 00:15:19,320 they're almost all used to well all of 394 00:15:17,639 --> 00:15:20,800 these functions are used to return the 395 00:15:19,320 --> 00:15:22,680 position of things inside the solar 396 00:15:20,800 --> 00:15:24,279 system they return the positions 397 00:15:22,680 --> 00:15:26,480 relative to the Center of the Earth not 398 00:15:24,279 --> 00:15:29,199 relative to the center of the sun you 399 00:15:26,480 --> 00:15:32,199 can convert it if you want to convert 400 00:15:29,199 --> 00:15:33,839 gcrs uh coordinate to an ICS then you 401 00:15:32,199 --> 00:15:35,720 can do it just the same way you do for 402 00:15:33,839 --> 00:15:37,680 an Al asth conversion and I'll talk 403 00:15:35,720 --> 00:15:38,959 about that later and that's useful 404 00:15:37,680 --> 00:15:41,120 because if you want to get the cartisian 405 00:15:38,959 --> 00:15:43,440 representation back you can ask for the 406 00:15:41,120 --> 00:15:45,440 coordinates of the Sun Moon Europa any 407 00:15:43,440 --> 00:15:47,800 solar system bodies you want convert 408 00:15:45,440 --> 00:15:49,519 them to ICS and then you the cartisian 409 00:15:47,800 --> 00:15:51,360 coordinates Define where these bodies 410 00:15:49,519 --> 00:15:53,079 are in the solar system if you to you 411 00:15:51,360 --> 00:15:54,240 know plot them in a a game or whatever 412 00:15:53,079 --> 00:15:58,240 else you want to 413 00:15:54,240 --> 00:15:59,279 do you can also get uh the location in 414 00:15:58,240 --> 00:16:04,279 cartisian 415 00:15:59,279 --> 00:16:08,079 with velocity so the um OBS do 416 00:16:04,279 --> 00:16:10,399 geolocation um will tell you that the 417 00:16:08,079 --> 00:16:12,519 distance 418 00:16:10,399 --> 00:16:14,319 uh sorry I was talking about the next 419 00:16:12,519 --> 00:16:17,160 slide so this is the cartisian 420 00:16:14,319 --> 00:16:20,720 coordinates of the Sun as seen from the 421 00:16:17,160 --> 00:16:23,199 earth you can see the distance is 99 358 422 00:16:20,720 --> 00:16:25,920 astronomical units not light 423 00:16:23,199 --> 00:16:27,959 years if you want to do alth conversion 424 00:16:25,920 --> 00:16:29,639 to work at things where appear to be uh 425 00:16:27,959 --> 00:16:30,880 for a particular Observer 426 00:16:29,639 --> 00:16:33,560 you need to create what's called an 427 00:16:30,880 --> 00:16:35,199 earth location uh you can do that either 428 00:16:33,560 --> 00:16:36,560 with a from geodetic call where you give 429 00:16:35,199 --> 00:16:38,959 it a latitude and longitude and a height 430 00:16:36,560 --> 00:16:40,759 above the ground or if it's an 431 00:16:38,959 --> 00:16:42,880 observatory you can just ask a location 432 00:16:40,759 --> 00:16:45,480 of parks for example or 433 00:16:42,880 --> 00:16:48,920 mwa internally they're stor as Earth 434 00:16:45,480 --> 00:16:50,839 centered gcrs coordinates in meters uh 435 00:16:48,920 --> 00:16:52,319 but not including the rotation of the 436 00:16:50,839 --> 00:16:55,360 earth so if you ask for the location of 437 00:16:52,319 --> 00:16:58,600 the mwa you'll get back a fixed set of 438 00:16:55,360 --> 00:17:02,120 numbers in meters um defining where the 439 00:16:58,600 --> 00:17:04,720 m W is and that uses the the computed 440 00:17:02,120 --> 00:17:07,120 geode of the earth not assuming it's a 441 00:17:04,720 --> 00:17:09,319 sphere so you're can ask for the Y value 442 00:17:07,120 --> 00:17:11,799 or the cartisian representation in X Y 443 00:17:09,319 --> 00:17:15,480 and Z 444 00:17:11,799 --> 00:17:18,160 uh you can also ask for the um position 445 00:17:15,480 --> 00:17:22,280 and velocity if you pass it a time that 446 00:17:18,160 --> 00:17:24,919 get gcrs posel uh function um Returns 447 00:17:22,280 --> 00:17:27,679 the position of the the mwa telescope 448 00:17:24,919 --> 00:17:29,520 now and the Velocity in x y and Zed in 449 00:17:27,679 --> 00:17:31,760 m/s 450 00:17:29,520 --> 00:17:33,600 uh which is kind of Handy if you want to 451 00:17:31,760 --> 00:17:36,520 plot the Earth turning or how the Earth 452 00:17:33,600 --> 00:17:38,240 is moving in in time and that's used for 453 00:17:36,520 --> 00:17:39,480 a whole bunch of internal calculations 454 00:17:38,240 --> 00:17:42,120 as 455 00:17:39,480 --> 00:17:44,280 well if you want to transform a 456 00:17:42,120 --> 00:17:47,320 coordinate from where it is in the sky 457 00:17:44,280 --> 00:17:50,280 to where it looks like on the ground uh 458 00:17:47,320 --> 00:17:52,960 you create uh Earth location where 459 00:17:50,280 --> 00:17:56,039 you're observing from you create a time 460 00:17:52,960 --> 00:17:58,240 using the same uh Creator we saw before 461 00:17:56,039 --> 00:18:00,559 you create a position for example a 462 00:17:58,240 --> 00:18:03,240 Galaxy called NGC 2997 that's my 463 00:18:00,559 --> 00:18:06,360 favorite Galaxy um you create a 464 00:18:03,240 --> 00:18:08,720 reference frame called alt as um and 465 00:18:06,360 --> 00:18:12,000 that's in the astropod coordinates um 466 00:18:08,720 --> 00:18:14,960 Library so Al as has two parameters an 467 00:18:12,000 --> 00:18:17,720 observing time which is when you're uh 468 00:18:14,960 --> 00:18:19,559 looking at this object and a location 469 00:18:17,720 --> 00:18:22,400 which is where you're looking at it from 470 00:18:19,559 --> 00:18:26,679 and that coordinate frame encodes all of 471 00:18:22,400 --> 00:18:30,520 the scary MTH to transform positions to 472 00:18:26,679 --> 00:18:32,960 um as seen from mwa at that time and 473 00:18:30,520 --> 00:18:35,280 again your observing time can be an 474 00:18:32,960 --> 00:18:37,919 array of values it can be one time 475 00:18:35,280 --> 00:18:41,000 object with 500 times in it uh your 476 00:18:37,919 --> 00:18:43,840 location can have uh a numpy array of 477 00:18:41,000 --> 00:18:46,640 locations in it uh your Sky coordinate 478 00:18:43,840 --> 00:18:49,400 object can have a numpy array of 479 00:18:46,640 --> 00:18:52,280 positions they don't broadcast well uh 480 00:18:49,400 --> 00:18:54,000 you you could generally have one scaler 481 00:18:52,280 --> 00:18:56,159 and a bunch of arrays if you want to 482 00:18:54,000 --> 00:18:58,080 broadcast that one scaler over all the 483 00:18:56,159 --> 00:19:00,200 array values or you need to make sure 484 00:18:58,080 --> 00:19:03,320 all the array values are of the same 485 00:19:00,200 --> 00:19:06,400 dimensions um so if you have 100 times 486 00:19:03,320 --> 00:19:08,640 on 100 positions you get 100 locations 487 00:19:06,400 --> 00:19:10,919 of that each one position at the 488 00:19:08,640 --> 00:19:14,000 corresponding 489 00:19:10,919 --> 00:19:16,280 time your new object after you've used 490 00:19:14,000 --> 00:19:18,200 this transform two function is also a 491 00:19:16,280 --> 00:19:20,200 sky coed object it represents the same 492 00:19:18,200 --> 00:19:22,559 position on the sky but it has a couple 493 00:19:20,200 --> 00:19:25,799 of extra attributes called alt and as 494 00:19:22,559 --> 00:19:28,159 and those Alton as uh are the altitude 495 00:19:25,799 --> 00:19:29,919 above the Horizon and the the aamus the 496 00:19:28,159 --> 00:19:32,440 compass bearing 497 00:19:29,919 --> 00:19:36,039 now all of these attributes of raas and 498 00:19:32,440 --> 00:19:39,440 decks uh and positions and distances 499 00:19:36,039 --> 00:19:41,840 they're all ASI um dimensioned objects 500 00:19:39,440 --> 00:19:43,640 called Unit objects and that's good if 501 00:19:41,840 --> 00:19:45,679 you want to um make sure you're 502 00:19:43,640 --> 00:19:48,120 extracting the right value if you just 503 00:19:45,679 --> 00:19:49,720 ask for the value of the ra you won't 504 00:19:48,120 --> 00:19:51,360 know immediately whether it's in degrees 505 00:19:49,720 --> 00:19:52,720 or hours if you ask for the value of the 506 00:19:51,360 --> 00:19:54,640 distance you won't know it's whether 507 00:19:52,720 --> 00:19:56,600 it's in meters or astronomical units or 508 00:19:54,640 --> 00:20:01,000 light years so you generally need to ask 509 00:19:56,600 --> 00:20:04,159 for the specific unit that you want so 510 00:20:01,000 --> 00:20:06,880 uh al. deg means you're asking for the 511 00:20:04,159 --> 00:20:11,679 value and degrees of the altitude if you 512 00:20:06,880 --> 00:20:14,840 asked for alt dot um hours you could in 513 00:20:11,679 --> 00:20:16,480 theory convert the altitude hours um you 514 00:20:14,840 --> 00:20:18,400 can use these units objects in your own 515 00:20:16,480 --> 00:20:20,679 calculations if you want to create a 516 00:20:18,400 --> 00:20:24,159 value in um kilograms and another value 517 00:20:20,679 --> 00:20:26,159 in meters and divide one U of these 518 00:20:24,159 --> 00:20:30,520 variables by the other youd need to ask 519 00:20:26,159 --> 00:20:32,520 for the result in um kilog per meter uh 520 00:20:30,520 --> 00:20:33,919 and that makes you sure that your 521 00:20:32,520 --> 00:20:34,960 dimensions are correct when you're doing 522 00:20:33,919 --> 00:20:38,120 your 523 00:20:34,960 --> 00:20:40,640 calculations in other words NGC 2997 as 524 00:20:38,120 --> 00:20:44,360 viewed from the mwa at that time on that 525 00:20:40,640 --> 00:20:46,960 date was 60.7 de above the Horizon and a 526 00:20:44,360 --> 00:20:51,280 little bit south of G 527 00:20:46,960 --> 00:20:54,799 West you can also use Astro query Astro 528 00:20:51,280 --> 00:20:59,440 query is a library it's part of asai 529 00:20:54,799 --> 00:20:59,440 that um lets you import 530 00:21:00,400 --> 00:21:06,200 classes that let you interrogate 531 00:21:02,720 --> 00:21:08,919 websites Vier for example is a website 532 00:21:06,200 --> 00:21:12,840 run again by the same guys that do uh 533 00:21:08,919 --> 00:21:14,919 Sesame uh in France and it has many 534 00:21:12,840 --> 00:21:16,960 hundreds of catalogs and each of those 535 00:21:14,919 --> 00:21:18,799 cataloges has many thousands or 536 00:21:16,960 --> 00:21:21,640 sometimes millions or billions of 537 00:21:18,799 --> 00:21:25,080 objects Vier is just one website the 538 00:21:21,640 --> 00:21:28,760 Astro query Library supports dozens of 539 00:21:25,080 --> 00:21:30,679 websites each one of them has its own um 540 00:21:28,760 --> 00:21:34,080 subl Library as 541 00:21:30,679 --> 00:21:37,480 curvier creates a Vier class to um 542 00:21:34,080 --> 00:21:39,960 explore the Vier website as query. 543 00:21:37,480 --> 00:21:42,000 simbad might have a different CL a 544 00:21:39,960 --> 00:21:44,279 different uh class that explores a 545 00:21:42,000 --> 00:21:46,360 simbad website each of these websites is 546 00:21:44,279 --> 00:21:48,039 run by different organizations they'll 547 00:21:46,360 --> 00:21:50,559 have different types of librar some of 548 00:21:48,039 --> 00:21:52,840 these uh cataloges and libraries return 549 00:21:50,559 --> 00:21:55,039 positions and brightnesses and other 550 00:21:52,840 --> 00:21:58,200 parameters for objects some of them 551 00:21:55,039 --> 00:22:00,240 return images so there's an astro cury 552 00:21:58,200 --> 00:22:02,679 Library that that's you return James web 553 00:22:00,240 --> 00:22:04,760 Space Telescope images of whatever field 554 00:22:02,679 --> 00:22:06,159 you want each of them has a slightly 555 00:22:04,760 --> 00:22:09,120 different interface because each of them 556 00:22:06,159 --> 00:22:11,159 is specific to that website there are 557 00:22:09,120 --> 00:22:13,640 some things that they have in common uh 558 00:22:11,159 --> 00:22:18,400 an SQL like search Syntax for finding 559 00:22:13,640 --> 00:22:18,400 things called um 560 00:22:18,640 --> 00:22:23,520 Astro I can't remember what it's called 561 00:22:20,440 --> 00:22:26,080 anyway SQL like so for visier in 562 00:22:23,520 --> 00:22:27,520 particular we can uh do things like 563 00:22:26,080 --> 00:22:28,919 search for catalogs that might be of 564 00:22:27,520 --> 00:22:31,360 interest you can either do that by going 565 00:22:28,919 --> 00:22:34,159 to the viia website and looking or 566 00:22:31,360 --> 00:22:37,279 there's a a query called find catalogs 567 00:22:34,159 --> 00:22:39,440 let you specify some Search terms and 568 00:22:37,279 --> 00:22:41,559 get a catalog list and that catalog list 569 00:22:39,440 --> 00:22:44,080 if you ask for the catalog name of the 570 00:22:41,559 --> 00:22:46,440 description gives you a string which is 571 00:22:44,080 --> 00:22:47,840 the name and the description which is 572 00:22:46,440 --> 00:22:50,440 just a on line summary of what the 573 00:22:47,840 --> 00:22:52,159 description is now when you actually do 574 00:22:50,440 --> 00:22:56,039 that it returns 10 or 12 different 575 00:22:52,159 --> 00:22:59,480 catalogs one of them is called ja a67 576 00:22:56,039 --> 00:23:02,360 a19 that's the the code for that catalog 577 00:22:59,480 --> 00:23:04,679 called the fifth catalog of nearby stars 578 00:23:02,360 --> 00:23:06,480 and that's got about 6,000 nearby stars 579 00:23:04,679 --> 00:23:10,000 in it it's relatively recent it's got 580 00:23:06,480 --> 00:23:13,480 lots of data it looks like it might be 581 00:23:10,000 --> 00:23:15,320 useful so first of all we say the row 582 00:23:13,480 --> 00:23:18,080 limits are minus one by default viio 583 00:23:15,320 --> 00:23:22,480 will return just a few rows to minimize 584 00:23:18,080 --> 00:23:24,720 um load on their server we ask for um 585 00:23:22,480 --> 00:23:27,679 that particular catalog we get a list of 586 00:23:24,720 --> 00:23:30,159 cataloges with that one entry in it uh 587 00:23:27,679 --> 00:23:33,320 and we can ask for element zero of that 588 00:23:30,159 --> 00:23:36,159 list NSC is now what's called an astropy 589 00:23:33,320 --> 00:23:39,320 table astropy tables are pretty cool 590 00:23:36,159 --> 00:23:41,799 first of all they've got a nice um uh 591 00:23:39,320 --> 00:23:43,880 representation uh we can see that we're 592 00:23:41,799 --> 00:23:46,960 pretty printing it we're skipping over 593 00:23:43,880 --> 00:23:49,919 all of the um col columns that we can't 594 00:23:46,960 --> 00:23:50,840 fit across the width we're summarizing 595 00:23:49,919 --> 00:23:53,679 the 596 00:23:50,840 --> 00:23:55,880 rows uh and it's got a bunch of stuff in 597 00:23:53,679 --> 00:23:57,520 it you usually don't need to lose the 598 00:23:55,880 --> 00:23:58,960 whole catalog many catalogs have 599 00:23:57,520 --> 00:24:00,840 billions of entries 600 00:23:58,960 --> 00:24:03,919 well many catalogs have thousands most 601 00:24:00,840 --> 00:24:06,799 have millions and some have billions so 602 00:24:03,919 --> 00:24:09,799 you use um attribute you use methods on 603 00:24:06,799 --> 00:24:12,520 that visier object uh to filter however 604 00:24:09,799 --> 00:24:14,600 you want you can ask for uh the area of 605 00:24:12,520 --> 00:24:16,840 all records in a given area of sky for 606 00:24:14,600 --> 00:24:18,799 example query region you're asking for 607 00:24:16,840 --> 00:24:22,120 the records in a small region of sky in 608 00:24:18,799 --> 00:24:25,000 this case around m81 you know 10 art 609 00:24:22,120 --> 00:24:27,679 minutes around m81 uh you can also 610 00:24:25,000 --> 00:24:30,480 filter by brightness or any other 611 00:24:27,679 --> 00:24:34,360 parameter want dist um any parameter you 612 00:24:30,480 --> 00:24:38,520 want you can specify in this uh filters 613 00:24:34,360 --> 00:24:41,200 column and you get what a list of table 614 00:24:38,520 --> 00:24:43,000 objects table objects are kind of cool 615 00:24:41,200 --> 00:24:45,559 you can ask for the keys and and 616 00:24:43,000 --> 00:24:48,320 represent it as a dictionary uh so in 617 00:24:45,559 --> 00:24:53,000 this case you've got 31 keys with things 618 00:24:48,320 --> 00:24:55,520 like Parallax and uh ra and deck you can 619 00:24:53,000 --> 00:24:58,919 also index by a row number so the 620 00:24:55,520 --> 00:25:00,960 catalog at entry 5 at r aj200 621 00:24:58,919 --> 00:25:03,360 is exactly the same as the catalog at 622 00:25:00,960 --> 00:25:07,000 r2000 entry number five both of them are 623 00:25:03,360 --> 00:25:08,679 the same you can Google that catalog uh 624 00:25:07,000 --> 00:25:11,520 name or you can search for it on the VIS 625 00:25:08,679 --> 00:25:14,360 site you can see that ra2000 and deck 626 00:25:11,520 --> 00:25:18,360 2000 are the coordinates and plx is the 627 00:25:14,360 --> 00:25:20,080 parallx uh pmra PMD and RV are the the 628 00:25:18,360 --> 00:25:22,000 proper motion how fast it's moving in 629 00:25:20,080 --> 00:25:24,799 the sky and the radio velocity which is 630 00:25:22,000 --> 00:25:26,159 how fast is moving towards us so they 631 00:25:24,799 --> 00:25:28,520 represent 632 00:25:26,159 --> 00:25:31,200 velocities Parallax is the difference in 633 00:25:28,520 --> 00:25:32,600 position of that object as seen from 634 00:25:31,200 --> 00:25:34,520 when the earth is in one side of its 635 00:25:32,600 --> 00:25:36,679 orbit and when it's in the other side of 636 00:25:34,520 --> 00:25:38,520 its orbit if it's nearby the angle 637 00:25:36,679 --> 00:25:40,679 appears to move by a lot if it's far 638 00:25:38,520 --> 00:25:43,799 away the angle doesn't move much at all 639 00:25:40,679 --> 00:25:46,320 one Parc has a parallax of one Arc so we 640 00:25:43,799 --> 00:25:48,159 can create a new aray called distances 641 00:25:46,320 --> 00:25:51,360 which is um 642 00:25:48,159 --> 00:25:55,159 32656 that's the uh light year to par to 643 00:25:51,360 --> 00:25:57,000 paret conversion divided by The Parallax 644 00:25:55,159 --> 00:25:59,880 and then we just create a sky coordinate 645 00:25:57,000 --> 00:26:01,640 object that has an RA value which is a 646 00:25:59,880 --> 00:26:03,399 numpy array of all of the raas in the 647 00:26:01,640 --> 00:26:04,720 table a deck value which is a numpy 648 00:26:03,399 --> 00:26:06,880 array of all the declinations in the 649 00:26:04,720 --> 00:26:08,360 table and a distance value which is all 650 00:26:06,880 --> 00:26:10,840 the distances in the 651 00:26:08,360 --> 00:26:11,960 table and then that Sky coordinate 652 00:26:10,840 --> 00:26:14,120 object you can do whatever you want you 653 00:26:11,960 --> 00:26:17,679 can ask for the cartisian uh attribute 654 00:26:14,120 --> 00:26:20,520 to get those X Y and Z values in uh in 655 00:26:17,679 --> 00:26:22,919 um coordinates in in light years or you 656 00:26:20,520 --> 00:26:24,840 can use transform to Al as to get the 657 00:26:22,919 --> 00:26:27,520 altitude and asouth of them or whatever 658 00:26:24,840 --> 00:26:28,880 else you want if you want to go further 659 00:26:27,520 --> 00:26:31,840 give me an email there's a lot of stuff 660 00:26:28,880 --> 00:26:34,880 I glossed over uh astropy documentation 661 00:26:31,840 --> 00:26:36,480 is very cool but very complicated uh I'd 662 00:26:34,880 --> 00:26:38,440 highly recommend skyfield if you're 663 00:26:36,480 --> 00:26:40,039 using anything inside the solar system 664 00:26:38,440 --> 00:26:41,600 skyfield is written by Brandon rhods 665 00:26:40,039 --> 00:26:45,159 who's been out and done Keynotes here at 666 00:26:41,600 --> 00:26:48,039 as Pon a couple of times astrop plan is 667 00:26:45,159 --> 00:26:50,720 good for planning observations um if 668 00:26:48,039 --> 00:26:53,000 you're actually uh planning a telescope 669 00:26:50,720 --> 00:26:56,360 use so I'd highly recommend those guys 670 00:26:53,000 --> 00:26:56,360 and that's it 671 00:27:01,120 --> 00:27:04,480 awesome thank you very much I really 672 00:27:02,760 --> 00:27:05,559 enjoyed it and I really like astronomy 673 00:27:04,480 --> 00:27:07,919 so that was quite 674 00:27:05,559 --> 00:27:11,720 nice just as a quick thank you we've got 675 00:27:07,919 --> 00:27:14,360 a mug for you y thank you little p on 676 00:27:11,720 --> 00:27:15,880 our you mug so cool yeah thanks a lot 677 00:27:14,360 --> 00:27:18,120 thanks very 678 00:27:15,880 --> 00:27:20,399 much now we're going to have a quick 679 00:27:18,120 --> 00:27:24,120 10minute break and then we've got our 680 00:27:20,399 --> 00:27:24,120 next talk on napari