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.
|
| 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). |
|
Contact us at files@mathworks.com