Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


Math Forum » Discussions » Software » comp.soft-sys.matlab

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

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jonathan W Smith

Posts: 84
Registered: 12/17/10
political boundaries
Posted: Nov 7, 2013 5:47 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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 = ncread('/discover/nobackup/jwsmit12/MATLAB_FILES/AVERAGING_KERNELS/wrf_trop_col.nc', 'trop_col');

wrf_tropospheric_prime = fliplr(wrf_tropospheric);

o3_trop = rot90(wrf_tropospheric_prime);

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

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

load('coast.mat');

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

load('worldlo.mat')

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

%load('coast.mat')

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)'



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.