Sband logfiles
25nov11
Creating
the logfiles: (top)
The sband logfiles are written by the 723
control program (running dos on a pc). The sequence to write
the files is:
- Each entry contains a 8 bytes ascii time, 8 byte ascii data,
47 bytes of status (bit) information, 32 (short) meter values.
- The record length is : 8 + 8 + 32*2 + 47 = 127 bytes.
- Entries are written whenever the status changes or at least
once every 30 minutes.
- The data is stored in the 723.LOGS file.
- The program can handle up to 32K entries (it uses a short int
to manipulate things?).
- Whenever the logfile begins to fill up:
- in dos the operator uses bkzip to create a zipped copy
of the file:
- for floppy we usually use:
- bkzip b:mmddyy.zip 723.LOG
- After zipping the file, you can delete 723.LOGS.
- you can also delete the file from within the 723 program
by:
- go to misc screen (enter misc)
- set the logfile number to 0
- say yes to ok to delete the file.
Generating plots from the
logfiles: (top)
- Plots can be generated for:
- the 47 status bytes
- the 32 meter values.
- The logfiles are moved to linux via floppy disc.
- I'm storing the logfiles at
/share/megs/phil/x101/sband/logdata/
- The idl routines to generate the plots:
- @phil .. then @sbinit to initialize the paths
for the sb routines.
- sblogget() - input a log file
- sbinpstatinfo() - input file describing how to plot the
status bytes.
- this routine reads an ascii file to determine what to
output.
- See idl/sb/statInfoStd.dat
- If you wanted to change how the status bits are grouped,
and plotted, just edit this file (or a copy of it
and then pass the copy to sbipstatinfo().
- sbplotstat() - plot the status info
- sbplotmet() - plot the meter info
- to get idl help on these routines:
- explain,sbdoc
- explain,sblogget etc..
- A script to input and plot logfiles can be found at:
- /share/megs/phil/x101/sb/plotlogs.pro
- Some idl program can then be used to make plots of the
status and meter values.
Check date range in logfiles
The 723.LOG zipped files are copied to
/share/megs/phil/x101/sband/logdata and then unzipped and renamed to
yymmdd.logs. The idl routine chklogdates.pro
(/share/megs/phil/x101/sband/) will scan these files and output the
date range in each file.
The current
list of sband logfiles copied to linux (.txt)
processing:
x101/sband/chklogdates.pro
Logfile plots: (top)
<- page
up
home_~phil