예제 #1
0
파일: drift.py 프로젝트: piyanatk/scripts
 def im2uv(self):
     if self.sky_img is None:
         raise _InputError('No imagae file', self.im2uv.__name__,
                           self.__name__)
     else:
         print '# im2uv: ' + self.name
         maps.im2uv(self.sky_img, verbose=False)
         self.vis_in = self.sky_img.rsplit('/', 1)[-1][0:-5] + '.dat'
         self.update_spec()
         self.append_log('# $> im2uv({0})\n'
                         '# >>> sky uvgrid: {1}\n'
                         .format(self.sky_img, self.vis_in))