Skip to content

Commit afbdfdd

Browse files
authored
#58 Merge pull request from deshima-dev/astropenguin/issue57
Add DESHIMA-specific filter and response information
2 parents 0236a50 + eea9aac commit afbdfdd

6 files changed

Lines changed: 43 additions & 5 deletions

File tree

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ message: "If you use this software, please cite it as below."
33

44
title: "dems"
55
abstract: "DESHIMA measurement set by DataArray"
6-
version: 0.9.0
7-
date-released: 2023-12-04
6+
version: 0.10.0
7+
date-released: 2024-07-09
88
license: "MIT"
99
doi: "10.5281/zenodo.8151950"
1010
url: "https://github.com/deshima-dev/dems"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022-2023 Akio Taniguchi
3+
Copyright (c) 2022-2024 Akio Taniguchi
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ da = MS.new(
8585
| | aste_misti_frame | Coordinate | [ASTE] MiSTI sky coordinate frame | - | "altaz" | numpy.ndarray | () | str (<U16) |
8686
| DESHIMA 2.0 specific | d2_mkid_type | Coordinate | [DESHIMA 2.0] MKID type | - | "" | numpy.ndarray | (chan,) | str (<U16) |
8787
| | d2_mkid_frequency | Coordinate | [DESHIMA 2.0] MKID center frequency | Hz | 0.0 | numpy.ndarray | (chan,) | float64 |
88+
| | d2_mkid_q | Coordinate | [DESHIMA 2.0] MKID quality factor | - | 0.0 | numpy.ndarray | (chan,) | float64 |
89+
| | d2_resp_fwd | Coordinate | [DESHIMA 2.0] Forward efficiency | - | 0.0 | numpy.ndarray | (chan,) | float64 |
90+
| | d2_resp_p0 | Coordinate | [DESHIMA 2.0] Proportional coefficient of responsivity | K^-0.5 | 0.0 | numpy.ndarray | (chan,) | float64 |
91+
| | d2_resp_t0 | Coordinate | [DESHIMA 2.0] Correction temperature of responsivity | K | 0.0 | numpy.ndarray | (chan,) | float64 |
8892
| | d2_roomchopper_isblocking | Coordinate | [DESHIMA 2.0] Whether room chopper is blocking sensor | - | False | numpy.ndarray | (time,) | bool |
8993
| | d2_skychopper_isblocking | Coordinate | [DESHIMA 2.0] Whether sky chopper is blocking sensor | - | False | numpy.ndarray | (time,) | bool |
9094
| | d2_ddb_version | Attribute | [DESHIMA 2.0] DDB version | - | "" | str | - | - |

dems/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__all__ = ["d1", "d2"]
2-
__version__ = "0.9.0"
2+
__version__ = "0.10.0"
33

44

55
# submodules

dems/d2.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,32 @@ class D2MkidFrequency:
299299
units: Attr[str] = "Hz"
300300

301301

302+
@dataclass
303+
class D2MkidQ:
304+
data: Data[Ch, float]
305+
long_name: Attr[str] = "[DESHIMA 2.0] MKID quality factor"
306+
307+
308+
@dataclass
309+
class D2RespFwd:
310+
data: Data[Ch, float]
311+
long_name: Attr[str] = "[DESHIMA 2.0] Forward efficiency"
312+
313+
314+
@dataclass
315+
class D2RespP0:
316+
data: Data[Ch, float]
317+
long_name: Attr[str] = "[DESHIMA 2.0] Proportional coefficient of responsivity"
318+
units: Attr[str] = "K^-0.5"
319+
320+
321+
@dataclass
322+
class D2RespT0:
323+
data: Data[Ch, float]
324+
long_name: Attr[str] = "[DESHIMA 2.0] Correction temperature of responsivity"
325+
units: Attr[str] = "K"
326+
327+
302328
@dataclass
303329
class D2RoomchopperIsblocking:
304330
data: Data[Ti, bool]
@@ -377,6 +403,10 @@ class MS(AsDataArray):
377403
# DESHIMA 2.0 specific
378404
d2_mkid_type: Coordof[D2MkidType] = ""
379405
d2_mkid_frequency: Coordof[D2MkidFrequency] = 0.0
406+
d2_mkid_q: Coordof[D2MkidQ] = 0.0
407+
d2_resp_fwd: Coordof[D2RespFwd] = 0.0
408+
d2_resp_p0: Coordof[D2RespP0] = 0.0
409+
d2_resp_t0: Coordof[D2RespT0] = 0.0
380410
d2_roomchopper_isblocking: Coordof[D2RoomchopperIsblocking] = False
381411
d2_skychopper_isblocking: Coordof[D2SkychopperIsblocking] = False
382412
d2_ddb_version: Attr[str] = ""
@@ -424,6 +454,10 @@ class Cube(AsDataArray):
424454
# DESHIMA 2.0 specific
425455
d2_mkid_type: Coordof[D2MkidType] = ""
426456
d2_mkid_frequency: Coordof[D2MkidFrequency] = 0.0
457+
d2_mkid_q: Coordof[D2MkidQ] = 0.0
458+
d2_resp_fwd: Coordof[D2RespFwd] = 0.0
459+
d2_resp_p0: Coordof[D2RespP0] = 0.0
460+
d2_resp_t0: Coordof[D2RespT0] = 0.0
427461
d2_ddb_version: Attr[str] = ""
428462
d2_demerge_version: Attr[str] = ""
429463
d2_dems_version: Attr[str] = ""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "dems"
3-
version = "0.9.0"
3+
version = "0.10.0"
44
description = "DESHIMA measurement set by DataArray"
55
authors = ["Akio Taniguchi <taniguchi@a.phys.nagoya-u.ac.jp>"]
66
license = "MIT"

0 commit comments

Comments
 (0)