How long should map projections take on a pc?
Show older comments
Hello All,
I work for a university and I have a researcher who is asking about why it takes hours and sometimes days to plot a map projection and they claim that it never used to take this long.
They say the following script takes hours
load data; (size is data = 360x145, lat = 145x1, lon = 360x1)
figure
ha = axesm('eckert4','MapLatLimit',latlim,'MapLonLimit',lonlim,...
'Frame','on','Grid','on','MeridianLabel','on','ParallelLabel','on');
setm(ha,'origin',[],'MapLatLimit',[-90 90],'MapLonLimit',[0 360],...
'fontsize',15,'fontweight','b');
contourfm(lat,lon,data,[datamin:0.1:datamax],'linecolor','none');
colormap(tmp_map);
colorbar(‘eastoutside’);
And this script was left to run over the weekend and still was never able to finish and never displayed any error messages, the researcher just quit it when they came in the next week,
load data (size is sp = 632x1440, deltalat = 632x1440, deltalon = 632x1440, lat = 632x1, lon = 1440x1)
figure
ha = axesm('eckert4','MapLatLimit',latlim,'MapLonLimit',lonlim,...
'Frame','on','Grid','on','MeridianLabel','on','ParallelLabel','on');
setm(ha,'origin',[],'MapLatLimit',[-90 90],'MapLonLimit',[0 360],...
'fontsize',15,'fontweight','b','fontname','Helvetica Neue'); %'plabelmeridian',360,'mlabelparallel',0);
contourfm(lat,lon,sp,[-1:1:60],'linecolor','none')
colormap(spd_maps);
hold on;
plotm(coastlat,coastlon,'color',[0.1 0.1 0.1],'linewidth', 3)
for ii = 1:5:size(lat,1)
qa=quiverm(lat(ii,1:5:end),lon(ii,1:5:end),deltalat(ii,1:5:end),...
deltalon(ii,1:5:end),'k',0.09,'filled');
set(qa,'linewidth',1);
end
cb=colorbar('eastoutside');
The PC uses Matlab 2020a, has 32g ram, intel core i-7 7700 3.6 ghz and an old GeForce GT 730 graphics card. The researcher tells me that they are not using a lot of data points so it shouldnt take as long as it takes.
Does anyone know what could be slowing it down or is this a normal run time for these projections?
Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!