Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coordinates for ASTE subreflector logs #39

Merged
merged 2 commits into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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