No BSD License  

Highlights from
Gauss2lats

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

Gauss2lats

by Tom Holt

 

23 Oct 2002 (Updated 23 Oct 2003)

Estimates the latitudes of a Gaussian grid.

| 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

Contact us at files@mathworks.com