Code covered by the BSD License  

Highlights from
Wind barb plotter

3.5

3.5 | 2 ratings Rate this file 27 Downloads (last 30 days) File Size: 2.91 KB File ID: #33851
image thumbnail

Wind barb plotter

by

 

21 Nov 2011 (Updated )

Plots wind barbs (in knots) using Matlab's mapping toolbox.

| Watch this File

File Information
Description

%WINDBARBM Project wind barbs onto map axes
%
% WINDBARBM(lat,lon,u,v) projects two dimensional wind barbs onto the
% current map axes. The vector components (u,v) are in units of knots and
% are specified at the points (lat,lon). It handles winds up to 130 knots.
% Winds exceeding 130 knots will appear as 130 knots.
%
% WINDBARBM(lat,lon,u,v,s) uses the input s to scale the vectors after
% they have been automatically scaled to fit within the grid. If omitted,
% s = 0.9 is assumed.
%
% WINDBARBM(lat,lon,u,v,'PropertyName',PropertyValue,...) and
% WINDBARBM(lat,lon,u,v,s,'PropertyName',PropertyValue,...) uses the
% windbarbm object properties specified to display the windbarb objects.
% The properties supported by windbarbm are the same as the properties
% supported by linem.
%
%
% MFILE: windbarbm.m
% MATLAB: 7.8.0 (R2009a)
% VERSION: 1.3 (28 November 2011)
% AUTHOR: Nick Siler
% CONTACT: siler@atmos.washington.edu

Required Products Mapping Toolbox
MATLAB
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
18 Jun 2014 Nicholas

I keep getting this error even though my array is double and 2d:

Error using LINEM
Expected input number 1, LAT, to be one of these types:

double

Instead its type was single.

Error in linem (line 57)
validateattributes(lat, {'double'}, {'2d'}, 'LINEM', 'LAT', 1)

Error in windbarbm (line 161)
eval(['linem(y,x,',wbproperties,')']);

02 Dec 2013 Yang xm  
Updates
22 Nov 2011

Now handles winds up to 130 knots.

28 Nov 2011

Now accommodates user specification of wind barb properties (e.g., 'Color', 'LineWidth', etc.)

Contact us