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

Remove EPHIN msids and facilitate arc and snapshot decoupling #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

malgosias
Copy link
Contributor

@malgosias malgosias commented Dec 18, 2023

This PR removes 3 MSIDs related to EPHIN temperature from the snap display: "Ephin Temp", "EIO Temp", "Eph temp", and adds a functionality to write Chandra snapshot in the json format to remove Replan Central dependency on the chandra.snapshot layout changes.

Affected files: snap_format.pm, tlogr_linux.pl. The new layout can be inspected on BUOCC Snapshot on luke-v. The code change was tested on old telemetry and produced the following chandra.snapshot layout differences:

...
Pitch Mom. 2.251 SCS 132 ACT Warm Rad -79.6
Yaw Mom. -17.247 SCS 133 ACT RadMon ENAB
PMTANKP 118.159 SCS 107 INAC
...

to be compared with

...
Pitch Mom. 2.251 SCS 132 ACT Ephin Temp 0.0000 Warm Rad -79.6
Yaw Mom. -17.247 SCS 133 ACT EIO Temp 0.0000 RadMon ENAB
PMTANKP 118.159 SCS 107 INAC EPH temp 115.28
...

The chandra.snapshot.json file is formatted as follows:

{MSID1: {"time": ..., "value": ..., "status": ...}, MSID2: {"time": ..., "value": ..., "status": ...}, ...}

@malgosias malgosias changed the title Removed EPHIN temperature related msids from the display Remove EPHIN msids and write snapshot in json format to facilitate arc and snapshot decoupling Feb 7, 2024
@malgosias malgosias changed the title Remove EPHIN msids and write snapshot in json format to facilitate arc and snapshot decoupling Remove EPHIN msids and facilitate arc and snapshot decoupling Feb 7, 2024
}
}

$new_hash{$msid} = {'time' => $h{$msid}[0],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Output this time as a string in the standard YYYY:DOY:HH:MM:SS.sss format so there is no ambiguity in interpretation by downstream apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants