- Timestamp:
- 02/20/09 16:39:43 (15 years ago)
- Location:
- trunk/SRC/ToBeReviewed
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/GRILLE/domdef.pro
r370 r393 429 429 ;------------------------------------------------------------------- 430 430 (keyword_set(xindex) AND keyword_set(yindex)) OR keyword_set(index):BEGIN 431 fstx = min( [x1, x2], max = lstx)432 fsty = min( [y1, y2], max = lsty)431 fstx = min(long([x1, x2]), max = lstx) 432 fsty = min(long([y1, y2]), max = lsty) 433 433 IF fstx LT 0 OR lstx GE jpi THEN BEGIN 434 434 ras = report('Bad definition of X1 or X2') … … 488 488 ;------------------------------------------------------------------- 489 489 keyword_set(xindex):BEGIN 490 fstx = min( [x1, x2], max = lstx)490 fstx = min(long([x1, x2]), max = lstx) 491 491 IF fstx LT 0 OR lstx GE jpi THEN BEGIN 492 492 ras = report('Bad definition of X1 or X2') … … 656 656 ;------------------------------------------------------------------- 657 657 keyword_set(yindex):BEGIN 658 fsty = min( [y1, y2], max = lsty)658 fsty = min(long([y1, y2]), max = lsty) 659 659 IF fsty LT 0 OR lsty GE jpj THEN BEGIN 660 660 ras = report('Bad definition of Y1 or Y2') … … 935 935 ENDIF ELSE BEGIN 936 936 CASE N_PARAMS() OF 937 2:fstz = min( [x1, x2], max = lstz)937 2:fstz = min(long([x1, x2]), max = lstz) 938 938 4:return 939 6:fstz = min( [z1, z2], max = lstz)939 6:fstz = min(long([z1, z2]), max = lstz) 940 940 ENDCASE 941 941 IF fstz LT 0 OR lstz GE jpk THEN BEGIN -
trunk/SRC/ToBeReviewed/TRIANGULATION/section.pro
r386 r393 92 92 ; -> problem... why 10 points as a test value??? 93 93 ; how can we find a good test value? 94 IF nx * ny LE 10 THEN domdef, GRIDTYPE = grillechoice, _extra = ex94 IF nx * ny LE 10 THEN domdef, [0, jpi-1, 0, jpj-1, localbox[4:5]], /xindex, /yindex, GRIDTYPE = grillechoice, _extra = ex 95 95 ; We redefine lon1, ... in case findalways has been used in domdef 96 96 lon1 = min([endpoints[0], endpoints[2]], max = lon2)
Note: See TracChangeset
for help on using the changeset viewer.