Changeset 27277


Ignore:
Timestamp:
09/10/22 06:13:08 (3 years ago)
Author:
vverjans
Message:

BUG reverting files that should not have been modified

Location:
issm/trunk-jpl/src/m/contrib/morlighem/modeldata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/contrib/morlighem/modeldata/interpBedmachineGreenland.m

    r27276 r27277  
    4545                ['/Users/larour/ModelData/BedMachine/' basename '-' ncdate '.nc'],...
    4646                ['./' basename '-' ncdate '.nc'],...
    47                 '/media/vincent/TOSH4TB/GeorgiaTech/DataSearch/BedMachine/BedMachineGreenland-2021-04-20.nc',...
    4847                };
    4948
     
    9089if strcmp(string,'mask') | strcmp(string,'source'),
    9190        %Need nearest neighbor to avoid interpolation between 0 and 2
    92         %output = InterpFromGrid(xdata,ydata,data,double(X),double(Y),'nearest');
    93         output = InterpFromGridToMesh(xdata,flipud(ydata),flipud(data),double(X),double(Y),NaN); %VV
     91        output = InterpFromGrid(xdata,ydata,data,double(X),double(Y),'nearest');
    9492else
    95         %output = InterpFromGrid(xdata,ydata,data,double(X),double(Y));
    96         output = InterpFromGridToMesh(xdata,flipud(ydata),flipud(data),double(X),double(Y),NaN); %VV
     93        output = InterpFromGrid(xdata,ydata,data,double(X),double(Y));
    9794end
    9895
  • issm/trunk-jpl/src/m/contrib/morlighem/modeldata/interpSeaRISE.m

    r27276 r27277  
    5858                        searisenc='/totten_1/ModelData/SeaRISE/Antarctica_5km_dev1.0.nc';
    5959                end
    60    case {'vincentxps159500'}
    61                 if hemisphere==1
    62                         searisenc = '/media/vincent/TOSH4TB/GeorgiaTech/ISSM/fromSeroussi/GrIS04Feb2022/seariseData/Greenland_5km_dev1.2.nc';
    63                 end
    6460        otherwise
    6561                error('hostname not supported yet');
     
    8480if verbose, disp(['   -- SeaRISE: interpolating ' string]); end
    8581if strcmpi(string,'LandMask');
    86         %dataout = InterpFromGrid(xdata,ydata,data,xproj,yproj,'nearest');
    87         dataout = InterpFromGridToMesh(xdata,ydata,data,xproj,yproj,NaN); %VV
     82        dataout = InterpFromGrid(xdata,ydata,data,xproj,yproj,'nearest');
    8883else
    89         %dataout = InterpFromGrid(xdata,ydata,data,xproj,yproj);
    90         dataout = InterpFromGridToMesh(xdata,ydata,data,xproj,yproj,NaN); %VV
     84        dataout = InterpFromGrid(xdata,ydata,data,xproj,yproj);
    9185end
    9286dataout = reshape(dataout,size(X,1),size(X,2));
Note: See TracChangeset for help on using the changeset viewer.