Skip to content

Instantly share code, notes, and snippets.

@dbuscombe-usgs
Created July 26, 2013 02:10
Show Gist options
  • Save dbuscombe-usgs/6085510 to your computer and use it in GitHub Desktop.
Save dbuscombe-usgs/6085510 to your computer and use it in GitHub Desktop.
Craigslist part 2, clean and plot
f=isnan(lat);
lat(f)=[];
lon(f)=[];
maps(f)=[];
prices(f)=[];
f=find(lat>(mean(lat)+2*std(lat)));
lat(f)=[]; lon(f)=[]; maps(f)=[]; prices(f)=[];
f=find(lat<(mean(lat)-2*std(lat)));
lat(f)=[]; lon(f)=[]; maps(f)=[]; prices(f)=[];
f=find(lon>(mean(lon)+2*std(lon)));
lat(f)=[]; lon(f)=[]; maps(f)=[]; prices(f)=[];
f=find(lon<(mean(lon)-2*std(lon)));
lat(f)=[]; lon(f)=[]; maps(f)=[]; prices(f)=[];
kmlStr = ge_scatter(lon(:),lat(:),...
'marker','*',...
'markerEdgeColor','FFFF00FF',...
'markerFaceColor','80FF00FF',...
'markerScale',1e-3);
ge_output('scatter.kml',[kmlStr])
system(['google-earth "',pwd,filesep,'scatter.kml" &'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment