Changeset 231 for trunk/SRC/ToBeReviewed/CALCULS/level2index.pro
- Timestamp:
- 03/19/07 18:15:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/CALCULS/level2index.pro
r163 r231 1 ;------------------------------------------------------------2 ;------------------------------------------------------------3 ;------------------------------------------------------------4 1 ;+ 5 2 ; 6 ; @file_comments 7 ; We want, from a 3d matrix, to extract a 2d (x,y) array whose each element 8 ; has been extract from a level specified by the 2d level array (typically, 3 ; @file_comments 4 ; We want, from a 3d matrix, to extract a 2d (x,y) array whose each element 5 ; has been extract from a level specified by the 2d level array (typically, 9 6 ; we want to obtain the salinity along an isopycn we have repered by its level). 10 ; level2index is a function who give, in function of level, a 2d indexes array 7 ; level2index is a function who give, in function of level, a 2d indexes array 11 8 ; which will allow to extract the 2d array from the 3d array... 12 9 ; … … 28 25 ; 29 26 ;- 30 ;------------------------------------------------------------ 31 ;------------------------------------------------------------ 32 ;------------------------------------------------------------ 27 ; 33 28 FUNCTION level2index, level 34 ; An element of 3d array (whose the two first dimensions are nx and ny) whose 29 ; An element of 3d array (whose the two first dimensions are nx and ny) whose 35 30 ; coordinates are i, j and k have for index in the same 3d array i + j*nx + k*(nx*ny) 36 31 ; level given, for each point of level, we know i, j et k,
Note: See TracChangeset
for help on using the changeset viewer.