History Files |
Run history-files.pl if:
Otherwise, run ACE-update.pl for nominal weekly loads
ACIS Ops maintains a set of state files to record the state of the spacecraft operations that pertain to ACIS. The files indicate the time of the state change and the item recorded. The files are collectively referred to as "History Files".
The ACIS realtime webpages for hardware monitoring use these files to determine the state of the spacecraft at the real time contacts. If the information in the history files does not match the spacecraft telemetry, an alert is sent.
We update these files once a command load is approved for flight with ACE_update.pl or when there is a need to interrupt the current plan with history-files.pl.
The base files (master copies) are stored in: /proj/sot/acis/FLU-MON.
All processing is done on the base files and then copied to the real-time
processing locations.
Those four real-time processing locations are:
For historical reasons, copies are also maintained here:
SCS-107's, Full Stops, TOO's and go's.
/data/acis/LoadReviews/NonLoadTrackedEvents.txtThis is the "For Score" version and must be correct for good thermal model performance.
history-files also creates a set of history files which covers only the time range of the load under review. These files are stored in the directory of the load week under review.
During normal weeks, the way to update the history files is to run ACE-update.pl once the FOT Mission Planners announce the loads are approved by the flight director. The script is stored in the /data/acis/LoadReviews/scripts directory and the user must be acisdude. The script will check and fail if the user is not acisdude to protect the write permissions on the files.
ACE-update.pl will check the file: /data/acis/LoadReviews/current_load.txt. This file was populated with the last load to be passed through the load review process. You will be asked if this is the load to approve. Enter either Y or N and follow instructions on the screen.
In an interrupt situation, you would run history-files.pl instead. ACE-update.pl is called from within history-files.pl. So, there is no need to call ACE-update.pl directly. Follow the directions in the history-files.pl section.
In rare occasions, the new load approved starts seconds or minutes before the last load ends. These are really not an issue, but can make the history files look like they run backwards in time for that time frame. To prevent this, ACE-update.pl does a time check and will present a question to the user.
Checking mission file times... GRATHIST-2001.dat: 2012:219:01:29:35.494 to be replaced by 2012:219:01:27:00.00 DITHHIST.dat: 2012:219:01:29:35.494 to be replaced by 2012:219:01:27:00.00 FPHIST-2001.dat: 2012:219:01:29:35.494 to be replaced by 2012:219:01:27:00.00 OBSHIST.dat: 2012:219:01:29:35.494 to be replaced by 2012:219:01:27:00.00 TLMHIST.data: 2012:219:01:29:35.494 to be replaced by 2012:219:01:27:00.00 Do you wish to replace the mission history starting at time 2012:219:01:27:00.0?[Y/N]
The answer is almost always yes. If you are unsure, type N and the code will exit. Then go back to the mission history files and the load and confirm the times are reasonable.
During any type of interrupt situation, history-files.pl must be called to modify the set of history files. Interrupt situations include:
Note: science load is stopped; vehicle load continues
It is important to know that SCS-107 is executed for Full Stops.
Safing modes:
From SOP_SAFE_MODE_RESPONSE_CONTINGENCY:
The best indication that a Safe Mode has been triggered is that OBC-A is halted.
Backup OBC comes up in Safe Mode and the reconfiguration SCS in the Backup OBC
repeats time critical safing actions
Example: NSM
Safing Action:
OBC or ground based actions to safe spacecraft components and/or functions.
Examples: Bright Star Holds and SCS-107 (Ground or spacecraft initiated) runs.
Non-Safe Mode Safing Actions, which can perform any or all of the following:
For more information, see: Course EN114 - Safing/Safe Mode Overview
history-files.pl -s107 [time of load stop] [current state]
history-files.pl -stop [time of load stop] [current state]
history-files.pl [-go]
history-files.pl -too [time of load interrupt] [current state]
history-files.pl [-man]
The goal of history-files.pl is to edit the history files when a
change from the nominal weekly load occurs.
There are basically 6 cases:
An SCS-107 alone will stop the observational/science loads. Vehicle loads will continue.
So you need to use the -s107 option with history-files. The history files containing observational
load items will be truncated to the latest time prior to the STOP. Followed by a line containing the
stop time you specified in your history-files command, followed by the the pertinent spacecraft
element you specified in the history-files command.
Lastly a line with the time stamp set to 9999:999:99:99:99.999 is appended.
FPHIST-2001.datThese are not modified:
GRATHIST-2001.dat
OBSHIST.dat
TSCHIST.dat
DITHHIST.dat
TLMHIST.dat
SCS155HIST.dat
If a Safing Action occurs, both the observational and vehicle loads will be stopped.
In this case, use the -STOP option when running history files. All history files will be
truncated to the latest time prior to the STOP. Then a line is appended containing the
stop time you specified in your history-files command, followed by the the pertinent spacecraft
element you specified in the history-files command.
Lastly a line with the time stamp set to 9999:999:99:99:99.999 is appended.
Unlike a normal weekly load, where ACE-update.pl is executed, execute the command:
history-files.pl -go.This removes the 9999:999:99:99:99.999 lines and runs ACE-update.pl to append the resumption
A target of opportunity (TOO) may cause the mission planners to interrupt a planned week and uplink a new load. The -too option will replace the already planned information with the status at the time of the interrupt and then execute ACE-update.pl to append the new load information onto the history files. After a too is approved, history-files.pl should be run instead of ACE-update.pl
Regardless of the mistake the primary thing to recognize is that BEFORE you do ANYTHING else,
you must FIRST clean up some files before you run history-files again.
Here are the steps:
If you DON'T do things in that order you have just made your life far more complicated.
Recall that when you run history files, one of the first things it does is take whatever is in
the *HIST*.dat files and copies them into the /proj/sot/acis/FLU-MON/*HIST*-temp.dat files.
This is your safety net.
Then it proceeds to modify some or all of the *HIST*.dat files. Were you to run history-files
a second time without first restoring the *HIST*.dat files, the program will take the
already-incorrectly-modified *HIST*.dat files and copy them to the *HIST*-temp.dat's
thusly clobbering the last correct copy you had of the history files.
And if you don't clean out the NLET file then the thermal models will give you some very
interesting and quite incorrect results.
Always remember that the history for just the load under review is stored in the OFLS directory.
So if you need to reconstruct one or more history files you can use the -temp.dat files, or the files
you may have copied, and the history files within each review load OFLS directory - going back as far
as you need to in order to get to uncorrupted history.
Last updated by Gregg Germain: 02/28/23