Interpolation/
lbcorca.pro
check the lateral boundaries condition (east-west and north) of a 2D/3D/4D array
located on a grif of the orca grid familly.
lbcorca
ORCA grid
result = lbcorca(arr, grid[, psign][, VERBOSE=0 or 1][, CORRECTION=0 or 1])
Return value
the number of wrong lateral boundary condition found in arr (-> 0 means arr is OK)
Parameters
arr
in
required
type: 2D/3D/4D array
array to be checked (and corrected if CORRECTION keyword is activated)
grid
in
required
type: scalar string
type of grid-point on which is located the array: 'T', 'U', 'V' or 'F'
psign
in
optional
type: 1. or -1.
default: 1.
Keywords
VERBOSE
optional
type: 0 or 1
default: 0
Activate to get error information when getting a wrong lateral boundaries condition
CORRECTION
optional
type: 0 or 1
default: 0
Activate to correct the wrong lateral boundary condition in arr (in that case arr is changed)
Examples
IDL> @tst_initorca2
IDL> a = dist(jpiglo, jpjglo)
IDL> print, lbcorca(a, 'T')
IDL> dummy = lbcorca(a, 'T', /correction)
IDL> print, lbcorca(a, 'T')
Version history
Version
$Id: lbcorca.pro 371 2008-08-07 09:32:02Z pinsard $
History
Mai 2007: Creation, smasson@locean-ipsl.upmc.fr
Known issues
Restrictions
only ORCA2, ORCA05 and ORCA025 are coded (but others are very easy to add...)
Produced by IDLdoc 2.0.