Changeset 2953


Ignore:
Timestamp:
02/03/10 23:19:09 (15 years ago)
Author:
Eric.Larour
Message:

Took out system calls in OS, because Matlab tends to hang with system commands.
oshostname should not return the hostname, without trailing whites.
Added routines for analysis runs, typically found in runme.m files.
BamgCallFromMetric: can now call Bamg with metric directly.
ddewhite,ddeblank,ddeblank: strip trailing whites from string.

Location:
issm/trunk/src/m/utils
Files:
7 added
5 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/OS/issmssh.m

    r2538 r2953  
    2929        else
    3030                %just use standard unix ssh
    31                 system(['ssh ' host ' ' command]);
     31                eval(['!ssh ' host ' ' command]);
    3232        end
    3333end
  • issm/trunk/src/m/utils/OS/oshostname.m

    r2213 r2953  
    1919        end
    2020        hostname=hostname(1:end-1);
     21        hostname=ddewhite(hostname);
    2122end
  • issm/trunk/src/m/utils/OS/scpin.m

    r2259 r2953  
    5858                string=[string packages{end} '\}'];
    5959
    60                 system(['scp ' host ':' path '/' string ' ./']);
     60                eval(['!scp ' host ':' path '/' string ' ./']);
    6161                for i=1:numel(packages),
    6262                        if ~exist(['./' packages{i}]),
  • issm/trunk/src/m/utils/OS/scpout.m

    r2306 r2953  
    4848                end
    4949                string=[string ' '];
    50                 [status,result]=system(['scp ' string host ':' path]);
    51                 if status,
    52                         error('scpout error message: could not call scp on *nix system');
    53                 end
     50                eval(['!scp ' string host ':' path]);
    5451        end
    5552end
  • issm/trunk/src/m/utils/Plot/basinzoom.m

    r2912 r2953  
    104104
    105105function regions=InitializeRegionInfo()
    106         regions=AddAvailableRegion([],'abbot',-2.1473*10^6,-1.6815*10^6,-3.5119*10^5,.3785*10^5);
     106        regions=AddAvailableRegion([],'abbot',-2.1473*10^6,-1.6815*10^6,-4.519*10^5,.3785*10^5);
    107107        regions=AddAvailableRegion(regions,'adelieland',2.699*10^4,2.4636*10^6,-2.1848*10^6,-5.2865*10^5);
    108108        regions=AddAvailableRegion(regions,'ameryiceshelf',1.5945*10^6,2.3807*10^6,5.1372*10^5,9.0186*10^5);
     
    112112        regions=AddAvailableRegion(regions,'banzarecoast',1.6*10^6,2.3*10^6,-1.9*10^6,-1.2*10^6);
    113113        regions=AddAvailableRegion(regions,'berknerisland',-1.0709*10^6,-.6405*10^6,5.1823*10^5,9.8177*10^5);
     114        regions=AddAvailableRegion(regions,'berkner',-1.0709*10^6,-.6405*10^6,5.1823*10^5,9.8177*10^5);
    114115        regions=AddAvailableRegion(regions,'borchgrevinkcoast',3*10^5,7*10^5,-2.05*10^6,-1.6*10^6);
     116        regions=AddAvailableRegion(regions,'brunt',-8.36*10^5,-4.4*10^5,1.33*10^6,1.64*10^6);
    115117        regions=AddAvailableRegion(regions,'bryan',-1.9727*10^6,-1.7421*10^6,-0.4427*10^5,1.9010*10^5);
    116118        regions=AddAvailableRegion(regions,'buddcoast',2.1*10^6,2.7*10^6,-1.3*10^6,-.7*10^6);
     
    130132        regions=AddAvailableRegion(regions,'jakobshavn',-2.4*10^5,-.8*10^5,-2.3*10^6,-2.2*10^6);
    131133        regions=AddAvailableRegion(regions,'larseniceshelf',-2.3855*10^6,-1.9649*10^6,0.9498*10^6,1.2996*10^6);
     134        regions=AddAvailableRegion(regions,'larc',-2.3855*10^6,-1.9649*10^6,0.9498*10^6,1.2996*10^6);
     135        regions=AddAvailableRegion(regions,'larc2',-2.332760*10^6,-1.995350*10^6,0.9895*10^6,1.28559*10^6);
    132136        regions=AddAvailableRegion(regions,'mcmurdo',1.3750*10^5,4.8255*10^5,-1.4569*10^6,-1.1119*10^6);
    133137        regions=AddAvailableRegion(regions,'nimrodglacier',1*10^5,3.8*10^5,-9*10^5,-7*10^5);
     
    142146        regions=AddAvailableRegion(regions,'roosevelt',-6.2797*10^5,-1.5414*10^5,-1.2734*10^6,-.9609*10^6);
    143147        regions=AddAvailableRegion(regions,'rossiceshelf',-8*10^5,4.5*10^5,-13.8*10^5,-5*10^5);
     148        regions=AddAvailableRegion(regions,'rois',-8*10^5,4.5*10^5,-13.8*10^5,-5*10^5);
    144149        regions=AddAvailableRegion(regions,'ruppertcoast',-11*10^5,-8.5*10^5,-1.34*10^6,-1.14*10^6);
    145150        regions=AddAvailableRegion(regions,'scottcoast',2.5*10^5,6*10^5,-1.6*10^6,-1.2*10^6);
Note: See TracChangeset for help on using the changeset viewer.