Ignore:
Timestamp:
11/04/10 09:30:52 (14 years ago)
Author:
seroussi
Message:

Some fixing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/plot/plot_overlay.m

    r6492 r6493  
    2020
    2121%Get xlim and ylim (used to extract radar image)
    22 xlim=getfieldvalue(options,'xlim',[min(md.x) max(md.x)]);
    23 ylim=getfieldvalue(options,'ylim',[min(md.y) max(md.y)]);
     22xlim=getfieldvalue(options,'xlim',[min(x) max(x)]);
     23ylim=getfieldvalue(options,'ylim',[min(y) max(y)]);
     24xlim2=xlim/getfieldvalue(options,'unit',1);
     25ylim2=ylim/getfieldvalue(options,'unit',1);
    2426
    2527%radar power {{{1
     
    2830else
    2931        disp('Extracting radar image...');
    30         md=radarpower(md,xlim,ylim,getfieldvalue(options,'highres',0));
     32        md=radarpower(md,xlim2,ylim2,getfieldvalue(options,'highres',0));
    3133end%}}}
    32 %InterpFromMeshToGrid -> data_grid {{{1
     34%InterpFromMeshToGrid{{{1
    3335cornereast =min(xlim);
    3436cornernorth=max(ylim);
Note: See TracChangeset for help on using the changeset viewer.