FUNCTION TimeScale, t, t0=t0, tu=tu ;+ ; NAME: ; TimeScale ; PURPOSE: ; Returns range of time axis to data units established by ; a previous call to href=TimeXAxis= ; CATEGORY: ; Telling time ; CALLING SEQUENCE: ; R = TimeScale(t) ; INPUTS: ; t array; type: time structure ; time array to be converted to data units ; OPTIONAL INPUT PARAMETERS: ; OUTPUTS: ; R array; type: float ; times converted to data units ; INCLUDE: @compile_opt.pro ; On error, return to caller ; CALLS: ; TimeOp ; COMMON BLOCKS: common TimeScale, torigin, trange, tunit, texact ; PROCEDURE: ; > The common block is set by a call to href=TimeXAxis=. ; MODIFICATION HISTORY: ; JULY-2001, Paul Hick (UCSD/CASS; pphick@ucsd.edu) ;- t0 = torigin tu = tunit RETURN, TimeOp(/subtract, t, torigin, tunit) & END