Previous SAXO Documentation Assistant: Overview Next

Grid/

numbisland.pro

recursive function. for one given point on an island, check if its neighbors are on the same island given a 2D land-sea mask, give a number to each island

numbisland Grid

result = numbisland(mskin)

Return value

A 2d array with 0 on the ocean and a different number for each island

Parameters

mskin        in required type: 2D array of 0 and 1

land-sea mask with 0 on the land and 1 on the ocean

Examples

   IDL> a = numbisland(tmask[*,*,0])

    

Version history

Version

$Id: numbisland.pro 325 2007-12-06 10:04:53Z pinsard $

History

Jan 2006: sebastien masson (smasson@locean-ipsl.upmc.fr)

Known issues

Restrictions

- mask must be periodic along the x direction. - Periodicity along y direction is not taken into account - must have less than ~32700 islands;

 


  Produced by IDLdoc 2.0.