wind = atmoshwm(latitude,longitude,altitude)
implements the U.S. Naval Research Laboratory Horizontal Wind Model (HWM™) routine to calculate the meridional and zonal components of the wind for
one or more sets of geographic coordinates: latitude,
longitude, and altitude.
This example shows how to calculate the total horizontal wind model for a latitude of 45 degrees south, longitude of 85 degrees west, and altitude of 25,000 m above mean sea level (msl). The date is the 150th day of the year, at 11 am UTC, using an Ap index of 80. The horizontal model version is 14.
w = atmoshwm(-45,-85,25000,'day',150,'seconds',39600,'apindex',80,'model','total', 'version', '14')
Calculate the quiet horizontal wind model for a latitude of 50 degrees north, two altitudes of 100,000 m and 150,000 m above msl, and a longitude of 20 degrees west. The date is midnight UTC of January 30. The default horizontal model version is 14.
w = atmoshwm([50;50],[-20;-20],[100000;150000],'day',[30;30])
Calculate the disturbed horizontal wind model for an altitude of 150,000 m above msl at latitude 70 degrees north, longitude 65 degrees west. The date is midnight UTC of June 15. The default horizontal model version is 14.
Geodetic latitudes, in degrees, specified as a scalar or M-by-1
array.
Example: -45
Data Types: double
Geodetic longitudes, in degrees, specified as a scalar or M-by-1
array.
Example: -85
Data Types: double
Geopotential heights, in meters, within the range of 0 to 500 km, specified as a scalar or
M-by-1 array. Values are held outside the range 0 to 500 km.
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN, where Name is
the argument name and Value is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and encloseNamein quotes.
Example: 'apindex',80,'model','total' specifies
that the total horizontal wind model be calculated for an Ap index
of 80.
Ap index for the Coordinated Universal Time (UTC) at which atmoshwm
evaluates the model, specified as an M-by-1 array of zeroes, a
scalar, or an M-by-1 array. M is the number of
requested geographic coordinates. Select the index from the NOAA National
Geophysical Data Center, which contains three-hour interval geomagnetic
disturbance index values. If the Ap index value is greater than zero, the model
evaluation accounts for magnetic effects.
Specify the Ap index as a value from 0 through 400. Specify
an Ap index value for only the disturbance or total wind model type.
Data Types: double
Day of year in UTC. Specify the day as a value from 1 through 366 (for a leap year), specified
as an M-by-1 array of zeroes, a scalar, or an
M-by-1 array. Values are wrapped to within 1 to 366 days.
Data Types: double
Elapsed seconds since midnight for the selected day, in UTC, specified as specified as an
M-by-1 array of zeroes, a scalar, or an M-by-1
array.
Specify the seconds as a value from 0 through 86,400. Values are wrapped to within 0 to 86400
seconds.
Data Types: double
Horizontal wind model type for which to calculate the wind components.
This setting applies to all the sets of geophysical data in M.
'quiet'
Calculates the horizontal wind model without the magnetic disturbances. Quiet model types do
not account for Ap index values. For this model type, do not specify an Ap index
value.
'disturbance'
Calculates the effect of only magnetic disturbances in the wind.
For this model type, specify Ap index values greater than or equal
to zero.
'total'
Calculates the combined effect of the quiet and magnetic disturbances.
for this model type, specify Ap index values greater than or equal
to zero.
Data Types: char | string
Function behavior when inputs are out of range, specified as
one of these values. This type applies to all the sets of geophysical
data in M.
Value
Description
'None'
No action.
'Warning'
Warning in the MATLAB® Command Window, model simulation
continues.
'Error'
MATLAB returns an exception, model simulation stops.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.