Rank: 484 based on 245 downloads (last 30 days) and 10 files submitted
photo

Val Schmidt

E-mail
Company/University
University of New Hamsphire Center for Coastal and Ocean Mapping

Personal Profile:

 

Watch this Author's files

 

Files Posted by Val Schmidt View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Feb 2014 raytrace A function to model acoustic refraction due to variations in sound speed. Author: Val Schmidt acoustics, ocean engineering, ray tracing, refraction, modeling, underwater acoustics 44 5
  • 5.0
5.0 | 3 ratings
25 Apr 2012 gps_chksum A function to calculate the checksum for a NMEA/GPS string. Author: Val Schmidt gps, nmea 10 0
25 Apr 2012 dist2plane A function to calculate the distance from a point to a plane. Author: Val Schmidt mathematics, point, plane 25 3
24 Apr 2012 Screenshot circle_fit A function to fit a circle to a set of 2D points Author: Val Schmidt circle, fit, mathematics 13 2
  • 3.0
3.0 | 1 rating
24 Apr 2012 Screenshot planefit A function to fit a plane to a 3D point cloud. Author: Val Schmidt plane, fit 54 0
Comments and Ratings by Val Schmidt View all
Updated File Comments Rating
07 Jan 2014 A pointer (or reference) in Matlab Get the behavior of a pointer. Author: Andrew

07 Aug 2013 geotiffwrite Write a 2D or 3D array to a single or multi-band GeoTIFF file Author: Jimmy Shen

Jimmy,
I'm having some trouble with your code and need some advice. I'm trying to read a JPEG image, and write it as a GeoTiff. Specifically, I'm unable to properly specify a colormap to retain the color in the resulting tif. I suspect, I simply don't understand how to properly specify the "options".

I'm not explicitly specifying a colormap (see code snippet below) and the resulting tiff is black and white (from an original color image).

I've tried using rgb2ind to create a colormap and apply it and I either get an unreadable image or a black and white one whose colors are scrambled.

Do you have any suggestions on how to do this properly?

Thanks,
Val

% Read the image
I = imread('inputimage,jpg');
outfile = 'outputimage.tif');

% Set the options:
option.GTModelTypeGeoKey = 1;
option.ModelTiepointTag = [0, 0, 0, P(1,:),...
I_info.Height, 0,0, P(2,:),...
I_info.Height, I_info.Width, 0, P(3,:),...
0, I_info.Width, 0, P(4,:)];
option.GeogEllipsoidGeoKey = 7030; % WGS-84
option.PCSCitationGeoKey = ['UTM Zone ' zone ' with WGS84'];

if zone(end) >= 'N'
option.ProjectedCSTypeGeoKey = str2double(['326' zone(1:2)]);
else
option.ProjectedCSTypeGeoKey = str2double(['327' zone(1:2)]);
end

% Write the file:
geotiffwrite(outfile,[],I,8,option)

10 May 2012 Google Earth Toolbox Various plotting/drawing functions that can be saved as KML output, and loaded in Google Earth Author: scott lee davis

10 May 2012 Google Earth Toolbox Various plotting/drawing functions that can be saved as KML output, and loaded in Google Earth Author: scott lee davis

This is a great tool and it seems very thoughtfully written. I do have a request:

When I create kmz files I get a zipped kml file but any images to display are not included. I would like the kmz files to consist of a zipped bundle of the kml and all its component parts (images to display for example) so that the result is completely self-contained. To me, that's the real advantage of kmz over kml - a single portable file without others to look after.

Thanks,

Val

10 May 2012 Google Earth Toolbox Various plotting/drawing functions that can be saved as KML output, and loaded in Google Earth Author: scott lee davis

Comments and Ratings on Val Schmidt's Files View all
Updated File Comment by Comments Rating
06 Aug 2014 Convert Unix Time (seconds since Jan 1 1970) to MATLAB Serial Time Converts unix time to MATLAB serial time. Author: Val Schmidt Jerry Gregoire

May require tweaking since this requires the Financial toolbox at least for 2014a release.

27 Mar 2014 circle_fit A function to fit a circle to a set of 2D points Author: Val Schmidt li

22 Jan 2014 raytrace A function to model acoustic refraction due to variations in sound speed. Author: Val Schmidt anastasia

Getting back to say that it worked!!! Thank a lot!!!!

15 Jan 2014 raytrace A function to model acoustic refraction due to variations in sound speed. Author: Val Schmidt anastasia

I have trouble making this work.
I am new to matlab and don't know what i am doing wrong. i am making a raytrace.m that has my speed profile but when i run the function this error appears:

function [xxf zzf ttf ddf] = raytrace(xo,zo, theta0,tt,zz,cc,plotflag)
|
Error: Function definitions are not permitted in this context.

15 Jan 2014 raytrace A function to model acoustic refraction due to variations in sound speed. Author: Val Schmidt anastasia

Contact us