Skip to content

Commit

Permalink
#39 Merge pull request from deshima-dev/astropenguin/issue34
Browse files Browse the repository at this point in the history
Add coordinates for ASTE subreflector logs
  • Loading branch information
astropenguin authored Oct 28, 2023
2 parents 273ec76 + 3c60f29 commit 7a00815
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dems",
"image":"python:3.12",
"image":"python:3.11",
"onCreateCommand": "pip install poetry==1.6.1",
"postCreateCommand": "poetry install",
"containerEnv": {
Expand All @@ -18,8 +18,10 @@
"settings": {
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"python.formatting.provider": "black",
"python.languageServer": "Pylance",
"[python]": {
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.tabSize": 4
}
Expand Down
48 changes: 48 additions & 0 deletions dems/d2.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,48 @@ class AsteCabinTemperature:
units: Attr[str] = "K"


@dataclass
class AsteSubrefX:
data: Data[Ti, float]
long_name: Attr[str] = "[ASTE] Subreflector offset of X axis"
units: Attr[str] = "mm"


@dataclass
class AsteSubrefY:
data: Data[Ti, float]
long_name: Attr[str] = "[ASTE] Subreflector offset of Y axis"
units: Attr[str] = "mm"


@dataclass
class AsteSubrefZ:
data: Data[Ti, float]
long_name: Attr[str] = "[ASTE] Subreflector offset of Z axis"
units: Attr[str] = "mm"


@dataclass
class AsteSubrefXt:
data: Data[Ti, float]
long_name: Attr[str] = "[ASTE] Subreflector rotation of X axis"
units: Attr[str] = "deg"


@dataclass
class AsteSubrefYt:
data: Data[Ti, float]
long_name: Attr[str] = "[ASTE] Subreflector rotation of Y axis"
units: Attr[str] = "deg"


@dataclass
class AsteSubrefZt:
data: Data[Ti, float]
long_name: Attr[str] = "[ASTE] Subreflector rotation of Z axis"
units: Attr[str] = "deg"


@dataclass
class AsteMistiLon:
data: Data[Ti, float]
Expand Down Expand Up @@ -302,6 +344,12 @@ class MS(AsDataArray):
telescope_coordinates: Attr[Tuple[float, float, float]] = ASTE_ITRS_COORDS
# ASTE specific
aste_cabin_temperature: Coordof[AsteCabinTemperature] = 0.0
aste_subref_x: Coordof[AsteSubrefX] = 0.0
aste_subref_y: Coordof[AsteSubrefY] = 0.0
aste_subref_z: Coordof[AsteSubrefZ] = 0.0
aste_subref_xt: Coordof[AsteSubrefXt] = 0.0
aste_subref_yt: Coordof[AsteSubrefYt] = 0.0
aste_subref_zt: Coordof[AsteSubrefZt] = 0.0
aste_misti_lon: Coordof[AsteMistiLon] = 0.0
aste_misti_lat: Coordof[AsteMistiLat] = 0.0
aste_misti_pwv: Coordof[AsteMistiPwv] = 0.0
Expand Down

0 comments on commit 7a00815

Please sign in to comment.