Changeset 2328
- Timestamp:
- 09/25/09 11:21:13 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/modeldefault/modeldefault_process.m
r2216 r2328 7 7 %retrieve some paths 8 8 global ISSM_DIR 9 modeldatapath='/u/ wilkes-r1b/larour/ModelData';9 modeldatapath='/u/astrid-r1b/larour/ModelData'; 10 10 11 11 %initialize output -
issm/trunk/src/m/classes/public/plot/plot_overlay.m
r2303 r2328 7 7 % See also: PLOTMODEL 8 8 9 %process mesh and data 10 [x y z elements is2d]=processmesh(md,options_structure); 11 [data isongrid isquiver]=processdata(md,data,options_structure); 9 12 10 %check that buildoverlay has not already been called 13 %check is2d 14 if ~is2d, 15 error('buildoverlay error message: overlay not supported for 3d meshes, project on a layer'); 16 end 17 18 %get xlim and ylim 19 if ~isnan(options_structure.xlim), 20 xlim=options_structure.xlim; 21 else 22 xlim=[min(md.x) max(md.x)]; 23 end 24 if ~isnan(options_structure.ylim), 25 ylim=options_structure.ylim; 26 else 27 ylim=[min(md.y) max(md.y)]; 28 end 29 30 %radar power 31 redo=1; 32 if ~any(isnan(md.sarxm)) & ~any(isnan(md.sarym)) 33 choice=input('This model seems to have a radar power image. Do you want to use it? (y/n)','s'); 34 if strcmp(choice,'y'), redo=0; end 35 end 36 if redo, 37 t1=clock; fprintf('%s','Extracting radar image...'); 38 md=radarpower(md,xlim,ylim,options_structure.highres); 39 t2=clock;fprintf('%s\n',[' done (' num2str(etime(t2,t1)) ' seconds)']); 40 end 41 42 %mesh2grid 11 43 redo=1; 12 44 if (ischar(data) & isstruct(md.mesh2grid_parameters) & ismember(data,mesh2grid_parameters)), … … 14 46 if strcmp(choice,'y') 15 47 disp('use previous mesh2grid result'); 48 x_m=md.mesh2grid_x_m; 49 y_m=md.mesh2grid_y_m; 50 data_grid=md.mesh2grid_data; 16 51 redo=0; 17 52 end 18 53 end 19 20 if redo 21 %process mesh and data 22 [x y z elements is2d]=processmesh(md,options_structure); 23 [data isongrid isquiver]=processdata(md,data,options_structure); 24 54 if redo, 25 55 %apply caxis if required 26 56 if ~isnan(options_structure.caxis), 27 57 data(find(data<options_structure.caxis(1)))=options_structure.caxis(1); 28 58 data(find(data>options_structure.caxis(2)))=options_structure.caxis(2); 29 end30 31 %check is2d32 if ~is2d,33 error('buildoverlay error message: overlay not supported for 3d meshes, project on a layer');34 end35 36 %Ok, first we need to recover the radar map.37 if ~isnan(options_structure.xlim),38 xlim=options_structure.xlim;39 else40 xlim=[min(md.x) max(md.x)];41 end42 if ~isnan(options_structure.ylim),43 ylim=options_structure.ylim;44 else45 ylim=[min(md.y) max(md.y)];46 end47 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 end52 else53 md=radarpower(md,xlim,ylim,options_structure.highres);54 59 end 55 60 … … 61 66 nlines=length(md.sarym); 62 67 ncols =length(md.sarxm); 68 t1=clock; fprintf('%s','Interpolating data on grid...'); 63 69 [x_m y_m data_grid]=InterpFromMeshToGrid(elements,x,y,data,cornereast,cornernorth,xspacing,yspacing,nlines,ncols,0); 64 else 65 %process mesh and data 66 [x y z elements is2d]=processmesh(md,options_structure); 67 [data isongrid isquiver]=processdata(md,data,options_structure); 70 t2=clock;fprintf('%s\n',[' done (' num2str(etime(t2,t1)) ' seconds)']); 68 71 end 69 72 -
issm/trunk/src/m/classes/public/radarpower.m
r2130 r2328 13 13 14 14 %if MODELDATA has not been initialized (ie: empty), use default path. 15 if isempty(MODELDATA), MODELDATA='/u/ wilkes-r1b/larour/ModelData'; end15 if isempty(MODELDATA), MODELDATA='/u/astrid-r1b/larour/ModelData'; end 16 16 17 17 %find gdal coordinates
Note:
See TracChangeset
for help on using the changeset viewer.