Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
16 Oct 2009 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer Jonathan

Hello,

Thank you for such a useful toolbox! I have a question, however, regarding transforming lat,lon on the WGS84 ellipsoid to local North East Up. If I use the same lat,lon coordinate as both my point to convert and my origin, why would I get a -21.5 km local North value? Shouldn't North and East both be zero?

Thanks again,
Jon

<SNIP>

>> [a,b,e2,finv] = refell('WGS84'); %get ellipsoid params
rlat = deg2rad(40); rlon = deg2rad(-108); %lat,lon
[Xec Yec Zec] = ell2xyz(rlat,rlon,0,a,e2) %convert to ECEF xyz
[N E Up] = ct2lg(Xec,Yec,Zec,rlat,rlon) %convert to local NEU

Xec =
  -1.5119e+06
Yec =
  -4.6532e+06
Zec =
   4.0780e+06

N =
  -2.1054e+04
E =
     0
Up =
   6.3693e+06

</SNIP>

29 Jul 2009 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer Sepideh

Thanks for that, very useful

24 Feb 2009 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer Craymer, Mike

I corrected the bug for vector and array input to function ell2utm per Sebastian Holz's comments and posted a new version 2.91. Unfortunately, the fix only worked for row vectors. I've corrected it again in version 2.92 and tested it this time to make sure it works. Sorry for any problems this may have caused. In addition to error checking, I'll consider adding array input to all functions in the next major release (this Summer I hope).

18 Feb 2009 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer Hölz, Sebastian

There is a potential bug in function ell2UTM, which may lead to wrong results in the calculated northing, if the funciton is called with a vector containing coordinates from both southern and northern hemisphere. Change lines 23-27, which read ...

if lat>=0
  No=0;
else
  No=10000000;
end

to ...

No(size(lat))=0; % False northing (north)
No(lat<0) = 1e7; % False northing (south)

Sebastian

27 Jan 2009 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer Christopher

under matlab which file do i put this in so that it is being used?

11 Sep 2008 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer torres, jaime

gracias

09 Jul 2008 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer Newton, Gene

Thank you.

01 Mar 2008 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer Borough, Ray

Very Useful

25 Feb 2008 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer A.warangkul, Jagkrich

Thanks

05 Oct 2007 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer Ebrahimi, Ali

28 Jun 2007 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer Work, Nice

Nice work

15 Jun 2007 Geodetic Toolbox Toolbox for angle, coordinate and date conversions and transformations. Version 2.92a. Author: Mike Craymer D'Errico, John

This seems pretty good from what I checked. There are many conversions in here.

A couple of minor points. I notice that there is no error checking. For example, in ellradii one must provide an axis length and eccentricity (squared). But there are no checks on the proper number of parameters or even on the sign of the eccentricity.

In dms2deg, I noticed one interesting feature. Converting from 32 degrees, 12 minutes, -3 seconds, results in a degree prediction of:

dms2deg([32 12 -3])
ans =
      -32.201

Overall, its still pretty good.

 

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