Changeset 1293


Ignore:
Timestamp:
07/10/09 16:20:23 (16 years ago)
Author:
Mathieu Morlighem
Message:

fixed overlay

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  
    3535
    3636        %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
    3856
    3957        writefile('contours.exp',md.domainoutline);
     
    4866                interpolation='element';
    4967        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),...
    5270                interpolation,'average',options_structure.windowsize);
    5371else
  • issm/trunk/src/m/classes/public/radarpower.m

    r837 r1293  
    1 function md=radarpower(md,highres)
     1function md=radarpower(md,xlim,ylim,highres)
    22%RADARPOWER - overlay a power radar image on an existing mesh
    33%
     
    1616
    1717%find gdal coordinates
    18 x0=min(md.x);
    19 x1=max(md.x);
     18x0=min(xlim);
     19x1=max(xlim);
    2020
    21 y0=min(md.y);
    22 y1=max(md.y);
     21y0=min(ylim);
     22y1=max(ylim);
    2323
    2424%Get path  to gdal binaries
  • issm/trunk/src/m/classes/public/solversettoasm.m

    r1 r1293  
    55%      md=solversettoasm(md)
    66
    7 md.solverstring=' -mat_type aij -ksp_type cgs -pc_type asm -sub_mat_type mumps -sub_pc_type lu -pc_asm_overlap 2 ';
     7md.solverstring=' -mat_type aij -ksp_type cgs -pc_type asm -sub_mat_type mumps -sub_pc_type lu -pc_asm_overlap 4 ';
    88%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.