Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: political boundaries
Replies: 2   Last Post: Nov 8, 2013 2:02 PM

 Messages: [ Previous | Next ]
 Jonathan W Smith Posts: 90 Registered: 12/17/10
political boundaries
Posted: Nov 7, 2013 5:47 PM

Good evening:

How do I plot political boundaries outside of the US with the contourfm function? I have the domain below for the eastern Equatorial Atlantic Ocean.

clear all

wrf_tropospheric_prime = fliplr(wrf_tropospheric);

o3_trop = rot90(wrf_tropospheric_prime);

lon_contraints = linspace(-30, 30, 332);

lat_contraints = linspace(-15, 15, 165);

latlim = [-15 15];

lonlim = [-30 30];

axesm('mercator','MapLatLimit',latlim,'MapLonLimit',lonlim,'Frame','on','Grid','on','MeridianLabel','on','ParallelLabel','on','FontSize',12,'FontWeight','bold')

hold on

h = displaym(POline);

set(h, 'LineWidth', 2.0, 'Color', 'k');

hold on

[C,p_labels] = contourfm(lat_contraints, lon_contraints, squeeze(double(o3_trop(:,:))),'Fill','on');

q_labels = clabelm(C,p_labels);

set(q_labels, 'FontSize', 15, 'Color', 'white', 'FontWeight', 'bold', 'BackgroundColor', 'none');

hold on

map_line = plotm(lat,long,'k');

hold on

colorbar('location','southoutside');

caxis([24 48]);

hold on

set(gca,'FontSize',15)

set(gca,'FontWeight','bold')

title('June 2006 WRF-Chem Tropospheric Column Ozone (Dobson Units)'

Date Subject Author
11/7/13 Jonathan W Smith
11/8/13 Rob Comer
11/8/13 Jonathan W Smith