Rank: 805 based on 138 downloads (last 30 days) and 1 file submitted
photo

Andrew Roberts

E-mail
Company/University
Arctic Region Supercomputing Center, University of Alaska Fairbanks
Lat/Long
64.85933, -147.85097

Personal Profile:

Post-doctoral fellow at the International Arctic Research Center and Arctic Region Supercomputing Center, University of Alaska, Fairbanks.

Professional Interests:
signal processing, oceanography, meteorology

 

Watch this Author's files

 

Files Posted by Andrew
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Jan 2009 Screenshot ncquiverref Quiver (vector) with a reference vector or color code on map or Cartesian axes. Author: Andrew Roberts color vector, quiver, meteorology, earth science, earth sciences, legend 138 2
  • 5.0
5.0 | 3 ratings
Comments and Ratings on Andrew's Files View all
Updated File Comment by Comments Rating
02 Oct 2009 ncquiverref Quiver (vector) with a reference vector or color code on map or Cartesian axes. Author: Andrew Roberts Sippel, Jason

Great code! After chatting with the author, I have found that the below addendum is useful for plotting a small subdomian of model output. This would be useful if, for example, you are tracking a tropical cyclone in a Lagrangian system with ilat,flat,ilon, and flon sampled from your model grid based on the number of grid points from the storm center.

If you don't do something similar to this, the physical size of the map frame on the screen may not match from one figure to the next.

Here's the code:

    tightmap
    xlim=get(gca,'xlim');
    ylim=get(gca,'ylim');
    
   cutfactor = 1.3;
   xcenter=mean(xlim);
   xoffset=diff(xlim)/2;
   ycenter=mean(ylim);
   yoffset=diff(ylim)/2;
   set(gca,'Xlim',[xcenter-cutfactor*xoffset xcenter+cutfactor*xoffset]);
   set(gca,'Ylim',[ycenter-cutfactor*yoffset ycenter+cutfactor*yoffset]);

25 Sep 2009 ncquiverref Quiver (vector) with a reference vector or color code on map or Cartesian axes. Author: Andrew Roberts Sippel, Jason

02 Jul 2009 ncquiverref Quiver (vector) with a reference vector or color code on map or Cartesian axes. Author: Andrew Roberts M, Ibrahim

This is genius!

For it to work in multiple colors, you make sure your x and y are produced with/as meshgrid. Also specify your colors according to your choice of colorbar. Eg if your caxis ([15 30]) for SST, then you should have the function as:

ncquiverref(x,y,xx,yy, 'DegC','mean',0,'col',[15 20 25 30]);

Nice work Andrew!

Thank you very much for sharing!!

Ibrahim

Top Tags Applied by Andrew
color vector, earth science, earth sciences, general, legend
Files Tagged by Andrew
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Jan 2009 Screenshot ncquiverref Quiver (vector) with a reference vector or color code on map or Cartesian axes. Author: Andrew Roberts color vector, quiver, meteorology, earth science, earth sciences, legend 138 2
  • 5.0
5.0 | 3 ratings
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com