Creating TIDE Housekeeping Trend Plots (revised 12/02/05) -------------------------------------- As part of the daily TIDE summary plot generation, files containing the TIDE housekeeping bytes are created. These daily files are stored on griffin in /export/data/tide/hk The filenames are tyymmdd0000_2400.hk. They are binary files containing time and 49 housekeeping bytes every major frame (9.2 seconds). Each file will be ~619,000 bytes long, unless there is missing telemetry data. If a file is much larger than 619000, it needs to be recreated. See the summary plot documentation for instructions on creating the file. Before creating the summary plots, the daily files need to be concatenated. This needs to be done each month when all the data for a month is available or whenever trend plots are requested. To concatenate the files: del cat_hk ls -1 tyymn*hk > cat_hk vi cat_hk type icat JJjJJjJJjJJ continue the JJj sequence until all the lines have been joined. move to the end of the first line and type a \j until you get to the last line type .j on the last line type a > tyymm.hk type :wq chmod +x cat_hk cat_hk You should now have a binary file containing a months worth of data. Once you have the large hk file type psi_trend. You will be asked the name of the hk file and the name of the output file, use 'tyymm_trend.psi'. You will be asked how many points to plot, use 3. psi_trend creates the input to the PSI trend plot routine. To create the TIDE trend input, type tide_trend. Call the output file 'tyymm_trend.tide'. To plot the data, get into idl. IDL> .run tide_trend TIDE Trend filename: tyymm_trend.tide what next: 1 what next: 0 IDL> .run psi_trend PSI Trend filename: tyymm_trend.psi what next: 1 what next: 0 IDL> exit Edit pdf_make and change the filenames, then run it to convert the ps to pdf files. Use cp_plots to copy the trend plots to the temporary plots storage site on satyr. Move tyymm.hk to old_data and qzip it. Delete all the tyymmdd0000_2400.hk daily files for the month and all the tyymm* plot and trend files.