Changeset 819
- Timestamp:
- 06/05/09 14:52:58 (16 years ago)
- Location:
- issm/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/GriddataMeshToGridx/GriddataMeshToGridx.cpp
r132 r819 13 13 #include "../EnumDefinitions/EnumDefinitions.h" 14 14 15 16 17 15 void GriddataMeshToGridx( double** pgriddata,double* index,int nel,double* x,double* y,int nods, Contour** contours,int numcontours, 18 16 double* meshdata,double cornereast,double cornernorth,double xposting,double yposting,int nlines,int ncols, … … 26 24 double* griddata=NULL; 27 25 int* sparsity=NULL; 28 29 26 30 27 /*intermediary: */ … … 41 38 double* yc=NULL; 42 39 43 44 45 46 47 40 /*First, allocate griddata: */ 48 41 griddata=(double*)xcalloc(nlines*ncols,sizeof(double)); … … 56 49 maxi=nods; 57 50 } 58 else if (interpolation== 0){51 else if (interpolation==1){ 59 52 maxi=nel; 60 53 } … … 85 78 if (gridi>=nlines)continue; 86 79 if (gridj>=ncols)continue; 87 88 80 89 81 /*printf("yi %g cornersouth %g posting %g yi-cornersouth %g gridi %i\n",yi,cornersouth,posting,yi-cornersouth,gridi); … … 103 95 /*Using this box, we add value in the box. If filter is average, we add 1 to sparsity for each member of this 104 96 * box, if filter is nearest, we set 1 to sparisty for each member of this box: */ 105 106 97 if(filter==0){ 107 98 /*average: */ … … 123 114 } 124 115 } //for(i=0;i<maxi;i++) 125 126 116 127 117 /*Ok, now we have griddata, and sparsity. Divide griddata by sparsity: */ … … 178 168 } 179 169 180 181 170 /*Assign output pointers: */ 182 171 *pgriddata=griddata; -
issm/trunk/src/m/classes/public/buildoverlay.m
r1 r819 61 61 62 62 md.cluster='none'; 63 md=solve(md,' mesh2grid','cielo');63 md=solve(md,'analysis_type','mesh2grid','package','cielo'); 64 64 65 65 %Ok, we have two images, double format: -
issm/trunk/src/m/classes/public/plot/plot_overlay.m
r1 r819 23 23 transparency=options_structure.alpha; 24 24 else 25 transparency=1.5; % rignot setting.25 transparency=1.5; %Rignot setting. 26 26 end 27 27 … … 65 65 66 66 %colorbar 67 if ~isnan(options_structure.colorbar),67 if options_structure.colorbar, 68 68 69 69 %create colorbar with correct colors and position … … 72 72 colorbar_image_handle=get(colorbar_handle,'Children'); 73 73 set(colorbar_image_handle,'CData',colorbar_rgb); 74 set(colorbar_handle,'Position',options_structure.colorbarpos); 74 if options_structure.colorbarpos, 75 set(colorbar_handle,'Position',options_structure.colorbarpos); 76 end 75 77 76 78 %modify ticks. -
issm/trunk/src/m/classes/public/radarpower.m
r1 r819 20 20 21 21 %Get path to gdal binaries 22 path_gdal=[ISSM_DIR '/ Libs/gdal/install'];22 path_gdal=[ISSM_DIR '/externalpackages/gdal/install/bin/']; 23 23 24 24 %Was gdal compiled? 25 if exist([path_gdal 'gdal_translate'])==0,26 error(['radarpower error message: GDAL library needs to be compiled to use this routine. Compile GDAL in ' ISSM_DIR '/ Libs/gdal to use this routine.']);25 if ~exist([path_gdal 'gdal_translate']), 26 error(['radarpower error message: GDAL library needs to be compiled to use this routine. Compile GDAL in ' ISSM_DIR '/externalpackages/gdal to use this routine.']); 27 27 end 28 28 29 29 %the geotiff image is either 200m or 1km accuracy. 30 30 if highres, 31 geotiff_name=[MODELDATA 'MosaicTiffRsat/amm125m_v2_200m.tif']; 31 if ~exist([MODELDATA '/MosaicTiffRsat/amm125m_v2_200m.tif']), 32 error(['radarpower error message: file ' MODELDATA '/MosaicTiffRsat/amm125m_v2_200m.tif not found. Check MODELDATA variable..']); 33 end 34 geotiff_name=[MODELDATA '/MosaicTiffRsat/amm125m_v2_200m.tif']; 32 35 else 33 geotiff_name=[MODELDATA 'MosaicTiffRsat/amm125m_v2_1km.tif']; 36 if ~exist([MODELDATA '/MosaicTiffRsat/amm125m_v2_1km.tif']), 37 error(['radarpower error message: file ' MODELDATA '/MosaicTiffRsat/amm125m_v2_1km.tif not found. Check MODELDATA variable..']); 38 end 39 geotiff_name=[MODELDATA '/MosaicTiffRsat/amm125m_v2_1km.tif']; 34 40 end 35 41
Note:
See TracChangeset
for help on using the changeset viewer.