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 183 event = cast_GCTAEventAtom(event)
184 184  
185 185 # Determine sky pixel
186   - skydir = event.dir().skydir()
  186 + skydir = event.dir().dir()
187 187 pixel = map.dir2pix(skydir)
188 188  
189 189 # Set pixel
... ... @@ -237,7 +237,7 @@ def modmap(obs, eref=0.1, proj="TAN", coord="GAL", xval=0.0, yval=0.0, \
237 237  
238 238 # Get sky direction
239 239 skydir = map.pix2dir(pixel)
240   - instdir.skydir(skydir)
  240 + instdir.dir(skydir)
241 241  
242 242 # Create event atom for map pixel
243 243 atom = GCTAEventAtom()
... ... @@ -295,7 +295,7 @@ def set(pntdir, tstart=0.0, duration=1800.0, deadc=0.95, \
295 295 # Set ROI
296 296 roi = GCTARoi()
297 297 instdir = GCTAInstDir()
298   - instdir.skydir(pntdir)
  298 + instdir.dir(pntdir)
299 299 roi.centre(instdir)
300 300 roi.radius(rad)
301 301  
... ...