The Math Forum

Search All of the Math Forum:

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

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

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

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: 90
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/', '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);


latlim = [-15 15];

lonlim = [-30 30];


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


caxis([24 48]);

hold on



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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.