Commit 9f639824ceece848ea185c8e70f7490b2f7b87ea

Authored by Jürgen Knödlseder
1 parent ff28a928

Use dir() instead of skydir().

Showing 1 changed file with 3 additions and 3 deletions
scripts/obsutils.py
@@ -183,7 +183,7 @@ def cntmap(obs, proj="TAN", coord="GAL", xval=0.0, yval=0.0, \ @@ -183,7 +183,7 @@ def cntmap(obs, proj="TAN", coord="GAL", xval=0.0, yval=0.0, \
183 event = cast_GCTAEventAtom(event) 183 event = cast_GCTAEventAtom(event)
184 184
185 # Determine sky pixel 185 # Determine sky pixel
186 - skydir = event.dir().skydir() 186 + skydir = event.dir().dir()
187 pixel = map.dir2pix(skydir) 187 pixel = map.dir2pix(skydir)
188 188
189 # Set pixel 189 # Set pixel
@@ -237,7 +237,7 @@ def modmap(obs, eref=0.1, proj="TAN", coord="GAL", xval=0.0, yval=0.0, \ @@ -237,7 +237,7 @@ def modmap(obs, eref=0.1, proj="TAN", coord="GAL", xval=0.0, yval=0.0, \
237 237
238 # Get sky direction 238 # Get sky direction
239 skydir = map.pix2dir(pixel) 239 skydir = map.pix2dir(pixel)
240 - instdir.skydir(skydir) 240 + instdir.dir(skydir)
241 241
242 # Create event atom for map pixel 242 # Create event atom for map pixel
243 atom = GCTAEventAtom() 243 atom = GCTAEventAtom()
@@ -295,7 +295,7 @@ def set(pntdir, tstart=0.0, duration=1800.0, deadc=0.95, \ @@ -295,7 +295,7 @@ def set(pntdir, tstart=0.0, duration=1800.0, deadc=0.95, \
295 # Set ROI 295 # Set ROI
296 roi = GCTARoi() 296 roi = GCTARoi()
297 instdir = GCTAInstDir() 297 instdir = GCTAInstDir()
298 - instdir.skydir(pntdir) 298 + instdir.dir(pntdir)
299 roi.centre(instdir) 299 roi.centre(instdir)
300 roi.radius(rad) 300 roi.radius(rad)
301 301