Changeset 1293
- Timestamp:
- 07/10/09 16:20:23 (16 years ago)
- Location:
- issm/trunk/src/m/classes/public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/plot_overlay.m
r844 r1293 35 35 36 36 %Ok, first we need to recover the radar map. 37 md=radarpower(md,options_structure.highres); 37 if ~isnan(options_structure.xlim), 38 xlim=options_structure.xlim; 39 else 40 xlim=[min(md.x) max(md.x)]; 41 end 42 if ~isnan(options_structure.ylim), 43 ylim=options_structure.ylim; 44 else 45 ylim=[min(md.y) may(md.y)]; 46 end 47 if ~any(isnan(md.sarxm)) & ~any(isnan(md.sarym)) 48 choice=input('This model seems to have a radar power image. Do you want to use it? (y/n)','s'); 49 if ~strcmp(choice,'y') 50 md=radarpower(md,xlim,ylim,options_structure.highres); 51 end 52 else 53 md=radarpower(md,xlim,ylim,options_structure.highres); 54 end 55 38 56 39 57 writefile('contours.exp',md.domainoutline); … … 48 66 interpolation='element'; 49 67 end 50 data_mesh2grid=GriddataMeshToGrid(elements,x,y,contours,data,min(x ),max(y),...51 (max(x )-min(x))/length(md.sarxm),(max(y)-min(y))/length(md.sarym),length(md.sarym),length(md.sarxm),...68 data_mesh2grid=GriddataMeshToGrid(elements,x,y,contours,data,min(xlim),max(ylim),... 69 (max(xlim)-min(xlim))/length(md.sarxm),(max(ylim)-min(ylim))/length(md.sarym),length(md.sarym),length(md.sarxm),... 52 70 interpolation,'average',options_structure.windowsize); 53 71 else -
issm/trunk/src/m/classes/public/radarpower.m
r837 r1293 1 function md=radarpower(md, highres)1 function md=radarpower(md,xlim,ylim,highres) 2 2 %RADARPOWER - overlay a power radar image on an existing mesh 3 3 % … … 16 16 17 17 %find gdal coordinates 18 x0=min( md.x);19 x1=max( md.x);18 x0=min(xlim); 19 x1=max(xlim); 20 20 21 y0=min( md.y);22 y1=max( md.y);21 y0=min(ylim); 22 y1=max(ylim); 23 23 24 24 %Get path to gdal binaries -
issm/trunk/src/m/classes/public/solversettoasm.m
r1 r1293 5 5 % md=solversettoasm(md) 6 6 7 md.solverstring=' -mat_type aij -ksp_type cgs -pc_type asm -sub_mat_type mumps -sub_pc_type lu -pc_asm_overlap 2';7 md.solverstring=' -mat_type aij -ksp_type cgs -pc_type asm -sub_mat_type mumps -sub_pc_type lu -pc_asm_overlap 4 '; 8 8 %md.solverstring=' -mat_type aij -ksp_type cgs -pc_type asm -sub_pc_type lu -pc_asm_overlap 2 ';
Note:
See TracChangeset
for help on using the changeset viewer.