<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

ToBeReviewed/CALCULS/

div.pro

calculation of the divergence of a 2d field

topdiv Calculation

result = div(uu, vv)

Return value

RES A 2d matrix

Parameters

uu       

Matrix representing coordinates of a field of vectors

vv       

Matrix representing coordinates of a field of vectors

Version history

Version

$Id: div.pro 157 2006-08-21 09:01:50Z navarro $

History

Guillaume Roullet (grlod@ipsl.jussieu.fr) Creation : printemps 1998 Sebastien Masson (smasson@lodyc.jussieu.fr) adaptation to work with a reduce domain 12/1/2000;

Known issues

Restrictions

U and V matrices can be 2 or 4d. Beware, to discern different configuration of U and V (xy, xyz, xyt, xyzt), we look at the variable of the common -time which contain the calendar in IDL julian days to which U and V refered to, in the same way as the variable -jpt which is the number of time's step to consider in time. U and V arrays are cut in the same geographic domain. Because of the gap of T, U, V and F grids, it is possible that these two arrays has not the same size and refered to different indexes. In this case, arrays are re-cut on common indexes and the domain is redefined to match with these common indexes. To avoid these re-cuts, use the keyword /memeindice in domdef.pro Points on the drawing edge are at !values.f_nan

Other attributes

Uses routines

common.pro

Statistics

McCabe cyclic 54
McCabe essential 5
McCabe modular design 1
Produced by IDLdoc 2.0.