Changeset 25 for trunk/ToBeReviewed/CALCULS/depth2level.pro
- Timestamp:
- 05/02/06 14:59:12 (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/ToBeReviewed/CALCULS/depth2level.pro
r23 r25 60 60 ;------------------------------------------------------------ 61 61 in = litchamp(tab) 62 grille,mask,glam,gphi,gdep,nx,ny,nz,premierx,premiery,premierz,dernierx,derniery,dernierz 63 glam = 1 64 gphi = 1 62 grille,mask,-1,-1,gdep,nx,ny,nz,firstx,firsty,firstz,lastx,lasty,lastz 65 63 ;--------------------------------------------------------------- 66 64 ; verification de la coherence entre la taille du tableau et le domaine definit par domdef … … 70 68 if taille[0] NE 2 then return, report('le champ en entree doit contenir un tableau 2d') 71 69 case 1 of 72 taille[1] eq jpi and taille[2] eq jpj:in=in[ premierx:dernierx, premiery:derniery]70 taille[1] eq jpi and taille[2] eq jpj:in=in[firstx:lastx, firsty:lasty] 73 71 taille[1] eq nx and taille[2] eq ny: 74 72 else:return, report('Probleme d''adequation entre les tailles du domaine et celle du champ.') … … 85 83 ;------------------------------------------------------------ 86 84 ; on passe en tableaux qui ont la taille des tableaux 3d 87 prof=replicate(1,nx*ny)#gdep[ premierz:dernierz]85 prof=replicate(1,nx*ny)#gdep[firstz:lastz] 88 86 in = in[*]#replicate(1, nz) 89 87 ; … … 94 92 if keyword_set(upper) then begin 95 93 levels = levels-1 96 notvalid = where(levels EQ 0)94 notvalid = where(levels EQ -1) 97 95 ENDIF ELSE notvalid = where(levels EQ nz) 98 96 IF notvalid[0] NE -1 THEN levels[notvalid] = !values.f_nan
Note: See TracChangeset
for help on using the changeset viewer.