Rank: 202 based on 967 downloads (last 30 days) and 8 files submitted
Personal Profile:

Professional Interests:
oceanography, sediment transport, benthic habitat mapping

 

Watch this Author's files

 

Files Posted by Andrew View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Aug 2009 Screenshot CURVVEC draw curved vectors from 2D vector data Author: Andrew Stevens vector field, stream lines, specialized plotting, quiver, 2d 139 1
  • 5.0
5.0 | 1 rating
01 Apr 2009 Screenshot BIN2MAT Create a matrix from scattered data without interpolation Author: Andrew Stevens accumarray, reshape, gridding, vector 113 0
31 Mar 2009 ARCGRIDWRITE Write gridded data set in Arc ASCII Grid Format Author: Andrew Stevens arc, data import, grid, data export, esri, raster 175 2
  • 4.5
4.5 | 2 ratings
04 Mar 2009 Screenshot GESCATTER Create a scatter plot in Google Earth (.kml) Author: Andrew Stevens kml, data export, google earth, scatter 112 0
29 Oct 2008 Screenshot CMAPLINE apply a colormap to lines in a plot Author: Andrew Stevens specialized plot, graphics, lines, colormap, plotting, specialized 126 3
  • 4.0
4.0 | 1 rating
Comments and Ratings by Andrew View all
Updated File Comments Rating
10 Sep 2009 xyzplotter Transforms lists xin,yin,zin into matrices which can be used with the functions surf and mesh. Author: Jack Kohoutek

This code worked fine for the example that I tried. Here are a couple comments and questions that I think, if addressed, will improve the code and clarify its function.

1)The help section is in a non-standard format and an H1 line would be useful.
2) What does the code do with repeat x and y values?
3) What is the cell-size of the resulting grid? Answers to 2 and 3 should be added to the help section.
4) Efficiency: This code uses a triple loop to fill the grid. For large datasets, this will be extremely slow. An alternative approach is to use a combination of HISTC and ACCUMARRAY to populate the grid that will be fast.

-Andrew

31 Mar 2009 ARCGRIDWRITE Write gridded data set in Arc ASCII Grid Format Author: Andrew Stevens

Colin,

Thanks for your comments. I found after playing with a couple examples, I determined that if I simply change the output filename from .txt to .asc that the file can be read directly into arc without doing the raster conversion.

I would also be careful with your modification of the way the header is written in the output file. Your modification forces the cell-size to be an integer which would produce a large error in many of my datasets.

Andrew

Comments and Ratings on Andrew's Files View all
Updated File Comment by Comments Rating
09 Sep 2009 ARCGRIDWRITE Write gridded data set in Arc ASCII Grid Format Author: Andrew Stevens Daniya

03 Sep 2009 CURVVEC draw curved vectors from 2D vector data Author: Andrew Stevens Bhat, Sandeep

I am using this to visualize blood flow in heart images and it works great. So far so good

31 Mar 2009 ARCGRIDWRITE Write gridded data set in Arc ASCII Grid Format Author: Andrew Stevens Stevens, Andrew

Colin,

Thanks for your comments. I found after playing with a couple examples, I determined that if I simply change the output filename from .txt to .asc that the file can be read directly into arc without doing the raster conversion.

I would also be careful with your modification of the way the header is written in the output file. Your modification forces the cell-size to be an integer which would produce a large error in many of my datasets.

Andrew

13 Mar 2009 ARCGRIDWRITE Write gridded data set in Arc ASCII Grid Format Author: Andrew Stevens Lazauski, Colin

This is a nice file and works well. Modification of the header section write format will allow the file to be read directly by ESRI Arc-GIS. My modification is:

%write header
fprintf(fid,'%s','ncols ');
fprintf(fid,' %d\n',nz);
fprintf(fid,'%s','nrows ');
fprintf(fid,' %d\n',mz);
fprintf(fid,'%s','xllcorner ');
fprintf(fid,[dc,'\n'],minX);
fprintf(fid,'%s','yllcorner ');
fprintf(fid,[dc,'\n'],minY);
fprintf(fid,'%s','cellsize ');
fprintf(fid,'%-6.0d\n',dx);
fprintf(fid,'%s','NODATA_value ');
fprintf(fid,'%-5.0d\n',-9999);

This place the numeric values starting in column 15 and removes the trailing zeros from the last two values.

29 Nov 2008 CMAPLINE apply a colormap to lines in a plot Author: Andrew Stevens Ollos, Ryan

@ Carlos: "I think this was the idea of VARYCOLOR, but it missed it."

I don't see this as being the case. The purpose of VARYCOLOR is to create a colormap with maximum color variation. The purpose of this function seems to be applying a colormap to lines in an axes. They seem to have completely different purposes.

Top Tags Applied by Andrew
data export, data import, gui tools, raster, vector
Files Tagged by Andrew View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Aug 2009 Screenshot CURVVEC draw curved vectors from 2D vector data Author: Andrew Stevens vector field, stream lines, specialized plotting, quiver, 2d 139 1
  • 5.0
5.0 | 1 rating
01 Apr 2009 Screenshot BIN2MAT Create a matrix from scattered data without interpolation Author: Andrew Stevens accumarray, reshape, gridding, vector 113 0
31 Mar 2009 ARCGRIDWRITE Write gridded data set in Arc ASCII Grid Format Author: Andrew Stevens arc, data import, grid, data export, esri, raster 175 2
  • 4.5
4.5 | 2 ratings
04 Mar 2009 Screenshot GESCATTER Create a scatter plot in Google Earth (.kml) Author: Andrew Stevens kml, data export, google earth, scatter 112 0
29 Oct 2008 Screenshot CMAPLINE apply a colormap to lines in a plot Author: Andrew Stevens specialized plot, graphics, lines, colormap, plotting, specialized 126 3
  • 4.0
4.0 | 1 rating
 

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