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

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.

toplbcorca 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 262 2007-08-21 14:19:32Z 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...)

Statistics

McCabe cyclic 55
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.