Changeset 411 for trunk/src/civ_matlab.m
- Timestamp:
- May 7, 2012, 3:32:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ_matlab.m
r410 r411 490 490 491 491 %% Apply mask 492 % Convention for mask 492 % Convention for mask IDEAS TO IMPLEMENT ? 493 493 % mask >200 : velocity calculated 494 494 % 200 >=mask>150;velocity not calculated, interpolation allowed (bad spots) 495 495 % 150>=mask >100: velocity not calculated, nor interpolated 496 % 100>=mask> 20: velocity not calculated, impermeable (no flux through mask boundaries) TO IMPLEMENT496 % 100>=mask> 20: velocity not calculated, impermeable (no flux through mask boundaries) 497 497 % 20>=mask: velocity=0 498 498 checkmask=0; … … 504 504 end 505 505 % check_noflux=(par_civ.Mask<100) ;%TODO: to implement 506 check_undefined=(par_civ.Mask<200 & par_civ.Mask>= 100 );506 check_undefined=(par_civ.Mask<200 & par_civ.Mask>=20 ); 507 507 par_civ.ImageA(check_undefined)=min(min(par_civ.ImageA));% put image A to zero (i.e. the min image value) in the undefined area 508 508 par_civ.ImageB(check_undefined)=min(min(par_civ.ImageB));% put image B to zero (i.e. the min image value) in the undefined area
Note: See TracChangeset
for help on using the changeset viewer.