Be the first to rate this file! 11 downloads (last 30 days) File Size: 4.06 KB File ID: #2586

Gauss2lats

by Tom Holt

 

23 Oct 2002 (Updated 23 Oct 2003)

No BSD License  

Estimates the latitudes of a Gaussian grid.

Download Now | Watch this File

File Information
Description

Spectral atmospheric models provide data on a Gaussian grid that has regular longitude spacing but irregular latitude spacing. Gauss2lats provides the latitudes for such data. This information is needed, for example, when making a contour map.

The function determines the Gaussian latitudes by finding the roots of the ordinary Legendre polynomial of degree NLAT using Newton's iteration method. The only input required is the number of latitude lines in the Gaussian grid. The outputs are Gaussian latitudes, latitude spacing, and cosine of latitude.

MATLAB release MATLAB 6.1 (R12.1)
Other requirements The code has been tested and runs satisfactorily on an IBM PC and G4 Mac. Compares to within 13 decimal places of results from a Cray J90.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
24 Oct 2002

Correction to typing error in the comments section of the .m file. Plus correction to error in description

23 Oct 2003

Comments in code and limitations changed following improved estimate of accuracy by Lee Panetta (21.10.2003).

Tag Activity for this File
Tag Applied By Date/Time
gaussian grid Tom Holt 22 Oct 2008 06:53:06
gaussian latitude Tom Holt 22 Oct 2008 06:53:06
gcm Tom Holt 22 Oct 2008 06:53:06
spectral model Tom Holt 22 Oct 2008 06:53:06
 

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