generic.py 529 Bytes
Newer Older
1
2
3
4
5
6
7
from abc import ABC, abstractmethod


class WCSGenerator(ABC):
    @abstractmethod
    def make_wcs_cards(self):
        """Generate WCS cards for the underlying file"""
8
9
10
11

    @abstractmethod
    def reordered_data(self):
        """Generate WCS cards for the underlying file"""
12
13
14
15
16
17
18
19

    @abstractmethod
    def data_shape(self):
        """Return the shape of the data array after translation"""

    @abstractmethod
    def rotate_reference_coords(self, X, Y, angle):
        """Rotate a set of reference coords by a given angle"""