File:Various radii vs. latitude.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 560 × 420 pixels, file size: 47 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Various radii vs. latitude
    Date
    Source Own work
    Author Fgnievinski
    SVG development
    InfoField
     The source code of this SVG is invalid due to an error.
     This W3C-invalid structural formula was created with Batik.

    Source code

    % using https://www.mathworks.com/matlabcentral/fileexchange/44848-geod-yet-another-geodetic-toolbox
    
    lat = linspace(0, 90)';
    ell = get_ellipsoid('wgs84');
    
    M = get_radius_meridional(lat, ell);
    N = get_radius_normal(lat, ell);
    
    Rc = get_radius_gaussian(lat, ell);
    Rm = get_radius_mean(lat, ell);
    
    R = get_radius_geocentric(lat, ell);
    
    %tmp = [N R Rc Rm M];
    %lab = {'Transverse', 'Geocentric', 'Gaussian', 'Mean', 'Meridional'};
    tmp = [N R Rc M];
    lab = {'Transverse', 'Geocentric', 'Gaussian & Mean', 'Meridional'};
    
    %%
    figure
    hold on
    %plot(lat, tmp./1000)
    plot(lat, tmp(:,1)./1000, '-r')
    plot(lat, tmp(:,2)./1000, '-k')
    plot(lat, tmp(:,3)./1000, '-g')
    plot(lat, tmp(:,4)./1000, '-b')
    xlim([0 90])
    xlabel('Latitude (degrees)')
    ylabel('Radii of curvature (km)')
    h = legend(lab, 'Location','northwest');
      set(h, 'Box','off')
    grid on
    hline(ell.a/1000, ':k')
    hline(ell.b/1000, '--k')
    text(77, ell.a/1000, sprintf('equatorial\nradius'))
    text(82, ell.b/1000, sprintf('polar\nradius'))
    

    Licensing

    Fgnievinski, the copyright holder of this work, hereby publishes it under the following license:
    w:en:Creative Commons
    attribution
    This file is licensed under the Creative Commons Attribution 4.0 International license.
    Attribution:
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

    Captions

    Various radii vs. latitude

    Items portrayed in this file

    depicts

    29 July 2025

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current21:10, 29 July 2025Thumbnail for version as of 21:10, 29 July 2025560 × 420 (47 KB)wikimediacommons>Fgnievinskireplace tilde for ampersand

    There are no pages that use this file.