| Mapping Toolbox | Search  Help Desk |
| smoothlong | Examples See Also |
Remove discontinuities in longitudes
Syntax
ang = smoothlong(angin) ang = smoothlong(angin,units)
Description
ang = smoothlong(angin) removes discontinuities in longitude data. The resulting angles may cover more than one revolution. ang = smoothlong(angin,units) removes
mat = spcread(cols) uses the units defined by the input string units. If omitted, default units of 'degrees' are assumed.
Examples
long = npi2pi(0:10:720); long2 = smoothlong(long); figure;hold on plot(long,'--'); plot(long2) xlabel 'Point Number'; ylabel Longitude
Remarks
This function can remove large jumps in longitude that might otherwise result in spurious data when interpolating withinterpm.
See Also
npi2pi |
Truncates angles into the -180 deg to 180 deg range |
zero22pi |
Truncates angles into the 0 deg to 360 deg range |
interpm |
Interpolates vector data to a specified data separation |