Rank: 1775 based on 33 downloads (last 30 days) and 2 files submitted
photo

Andrew Roberts

E-mail
Company/University
Department of Oceanography, Naval Postgraduate School
Lat/Long
36.59000015258789, -121.8499984741211

Personal Profile:
Professional Interests:
Polar Oceanography & Meteorology, Arctic System Modeling, Cryospheric Sciences, Signal Processing

 

Watch this Author's files

 

Files Posted by Andrew View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
14 Feb 2011 Screenshot ncpolarm Generates polar stereographic maps of the Arctic or Antarctic as a square or rectangular plot. Author: Andrew Roberts oceanography, meteorology, arctic, antarctic, southern ocean, map 8 0
14 Feb 2011 Screenshot ncquiverref Quiver (vector) with a reference vector or color code on a map or Cartesian axes. Author: Andrew Roberts reference vector, oceanography, general, color vector, legend, earth sciences 25 6
  • 4.66667
4.7 | 7 ratings
Comments and Ratings by Andrew
Updated File Comments Rating
01 Sep 2010 ncquiverref Quiver (vector) with a reference vector or color code on a map or Cartesian axes. Author: Andrew Roberts

Hi Hamed,

If you have tested using "max" instead of "median" for reftype, or your color vectors are too long, it is easy to adjust the variable "scalelength" to a fraction of its current value in the code. Change line 186 to:
scalelength=X*min(mean(z1(~isnan(z1))),mean(z2(~isnan(z2))));
where 0<X<1.
The main reason you may have to make this manual adjustment is if your vector magnitudes are strongly negatively skewed.

cheers
Andrew

Comments and Ratings on Andrew's Files View all
Updated File Comment by Comments Rating
25 May 2011 ncquiverref Quiver (vector) with a reference vector or color code on a map or Cartesian axes. Author: Andrew Roberts Harrison, Cheryl

Is there any way to get this to plot vectors over a pcolor plot? I can get the vectors on just fine, but as soon as I plot the reference vector it whites everything out. Modification ideas?

25 Jan 2011 ncquiverref Quiver (vector) with a reference vector or color code on a map or Cartesian axes. Author: Andrew Roberts Jones, Josh
21 Jan 2011 ncquiverref Quiver (vector) with a reference vector or color code on a map or Cartesian axes. Author: Andrew Roberts Leroy, Thibaut
01 Sep 2010 ncquiverref Quiver (vector) with a reference vector or color code on a map or Cartesian axes. Author: Andrew Roberts Roberts, Andrew

Hi Hamed,

If you have tested using "max" instead of "median" for reftype, or your color vectors are too long, it is easy to adjust the variable "scalelength" to a fraction of its current value in the code. Change line 186 to:
scalelength=X*min(mean(z1(~isnan(z1))),mean(z2(~isnan(z2))));
where 0<X<1.
The main reason you may have to make this manual adjustment is if your vector magnitudes are strongly negatively skewed.

cheers
Andrew

01 Sep 2010 ncquiverref Quiver (vector) with a reference vector or color code on a map or Cartesian axes. Author: Andrew Roberts Babazadeh, Hamed Babazadeh

Great code, just a question,

how to scale vector field as it is in quiver command, the default size of vectors is too much for my application.

Thanks

Top Tags Applied by Andrew
earth science, meteorology, oceanography, antarctic, arctic
Files Tagged by Andrew View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
14 Feb 2011 Screenshot ncpolarm Generates polar stereographic maps of the Arctic or Antarctic as a square or rectangular plot. Author: Andrew Roberts oceanography, meteorology, arctic, antarctic, southern ocean, map 8 0
14 Feb 2011 Screenshot ncquiverref Quiver (vector) with a reference vector or color code on a map or Cartesian axes. Author: Andrew Roberts reference vector, oceanography, general, color vector, legend, earth sciences 25 6
  • 4.66667
4.7 | 7 ratings

Contact us at files@mathworks.com