Skip to content

Commit

Permalink
#67 Add sub-scan label
Browse files Browse the repository at this point in the history
  • Loading branch information
astropenguin committed Aug 9, 2024
1 parent b6240a4 commit 3f63774
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ da = MS.new(
| | chan | Dimension | Channel ID | - | 0 | numpy.ndarray | (chan,) | int64 |
| Labels | beam | Coordinate | Beam label | - | "" | numpy.ndarray | (time,) | str (<U16) |
| | scan | Coordinate | Scan label | - | "" | numpy.ndarray | (time,) | str (<U16) |
| | subscan | Coordinate | Sub-scan label | - | "" | numpy.ndarray | (time,) | str (<U16) |
| | state | Coordinate | State label | - | "" | numpy.ndarray | (time,) | str (<U16) |
| Telescope pointing | lon | Coordinate | Sky longitude | deg | 0.0 | numpy.ndarray | (time,) | float64 |
| | lat | Coordinate | Sky latitude | deg | 0.0 | numpy.ndarray | (time,) | float64 |
Expand Down
7 changes: 7 additions & 0 deletions dems/d2.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ class Scan:
long_name: Attr[str] = "Scan label"


@dataclass
class Subscan:
data: Data[Ti, Literal["U16"]]
long_name: Attr[str] = "Sub-scan label"


@dataclass
class State:
data: Data[Ti, Literal["U16"]]
Expand Down Expand Up @@ -355,6 +361,7 @@ class MS(AsDataArray):
# labels
beam: Coordof[Beam] = ""
scan: Coordof[Scan] = ""
subscan: Coordof[Subscan] = ""
state: Coordof[State] = ""
# telescope pointing
lon: Coordof[Lon] = 0.0
Expand Down

0 comments on commit 3f63774

Please sign in to comment.