File: delta_function.jnl

package info (click to toggle)
ferret-vis 7.6.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 218,500 kB
  • sloc: fortran: 234,502; ansic: 51,843; csh: 2,516; makefile: 1,613; sh: 1,571; pascal: 569; sed: 184; lisp: 122; awk: 26
file content (16 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! delta_function.jnl
! Description: Defines a Dirac delta function at central point in time

! Programmed by E. D. Cokelet, NOAA/PMEL, 30 Nov 1999

! Usage:  go delta_function central_point_index_number output_function_name
! The output delta function's time range will be 2*(central_point_index_number)

can mode verify

define axis/units=hours/t=1:`2*$1`:1 t_ax_delta
let tim_delta = t[gt=t_ax_delta]
define grid/t=t_ax_delta grid_delta

let delta_delta = if tim_delta eq `$1` then 1 else 0
let $2 = delta_delta[g=grid_delta]