Kris Walker's Scripts, Codes, and Hacks

Kris Walker's Scripts, Codes, and Hacks


During my research I've collected, modified, or created a number of programs for use on a Mac running OS 10 (OSX). However, many of these programs will also run on other POSIX systems with compatible versions of certain programs (like awk or date--Sun computers, while being old workhorses, lack many enhanced codes that the Macs have out-of-the-box). I make no statements about the following code's elegance or accuracy. I just ask that if you find a bug, please let me know.

  • Site dedicated to CSS data management and shell scripts
  • reftek_watchdog.csh: Watchdog program to monitor Reftek SOH and DAT streaming to RTPD Server
  • ellipse_buffer_time_length.m: Calculate the ellipse buffer time length given phssiz, ellsiz, elldcm, and fss
  • std_median.m: Standard deviation from the median
  • makeeven.m: Make vector have an even length by truncating one sample (if nec)
  • makeodd.m: Make vector have an odd length by truncating one sample (if nec)
  • isodd.m: Check if number is even or odd
  • taper.m: generalized taper function (better than Matlab's internal one
  • julday.m get julian day from [mo dy]
  • get_day.m get [mo dy] from julian day
  • e2dat.m convert epoch time (sec from 1970) to [yr mo dy hr mn sc]
  • dat2e.m convert [yr mo dy hr mn sc] to epoch seconds
  • readcss.m to read time series data from a wfdisc file.
  • readcss2.m to read time series data from a wfdisc file (this version accepts start/stop times by year month day hour min sec format). Check out this readcss example.
  • bpfilt.m bandpass, lowpass, highpass filter matlab function. use no other! Tips: deman and detrend data first before bandpass or highpass filtering.
  • psdpdf.m to calculate a probability distribution function of power spectral densities for the input even-spaced time series (example).
  • run_ellipse_synthetics.m Script to calculate synthetic ellipses and evaluate pass_ellispe_parm() function (also below) (Test Results).
  • pass_ellipse_parm.mto determine if an ellipse specified by ellipse parameters is "good" or "bad" (Test Results).
  • run_ellipse_synthetics.m Script to calculate synthetic ellipses and evaluate pass_ellispe_data() function (also below) (Test Results).
  • pass_ellipse_data.mto determine if an ellipse specified by ellipse xy data is "good", "bad", or "of concern" (Test Results).

    Shell Scripts that Work Everywhere

  • getofis - download CSS CEL OFIS and MB2K array data (combines cello1, cello2, and ELLT CEL01-06; usage: getofis 2008:222-03:00:00 2008:222-04:00:00 pf32 1 newdir) Click here for more info on getofis (near bottom).
  • getfemto - download CSS FEMTO data from athene (usage: getfemto sfodi1 p1s32:p2s32 2008:200-00:00:00 2008:226-00:00:00)

    Binary Downloads

    Mac PPCMac/intelSunOS/Solaris
    css2asc: located in /home/walker/DEV on epicenter, femto, and athene
    julday
    julday
    e2dat
    dat2e
    plotfemto
    femtofilter v1.8; READMEfemtofilter v1.8; README


    Revised: Thursday, 10-Sep-2009 12:43:53 PDT