({{, (RefLink[WindVectorData, paclet:ref/WindVectorData])[] 
gives the most recent weather station measurement for wind vector near the current location.}, {, (RefLink[WindVectorData, paclet:ref/WindVectorData])[datespec]
gives the wind vector value for the specified time near the current location.}, {, (RefLink[WindVectorData, paclet:ref/WindVectorData])[locationspec]
gives the most recent measurement for wind vector near the specified location.}, {, (RefLink[WindVectorData, paclet:ref/WindVectorData])[locationspec,datespec]
gives the value or values for the specified date and location.}, {, (RefLink[WindVectorData, paclet:ref/WindVectorData])[{{(Subscript[location, 1]),(Subscript[date, 1])},{(Subscript[location, 2]),(Subscript[date, 2])},…}]
gives values for all specified locations on the specified dates.}})

OpenersNotesSection(Spacer1)Details and Options

(RefLink[WindVectorData, paclet:ref/WindVectorData]) gives current and historical wind vector data for all standard weather stations worldwide. Wind vectors combine wind direction and speed into a two-component upwind wind velocity. The components {lat,lon} are aligned latitudinally and longitudinally.

Upwind refers to the direction the wind comes from, and (RefLink[WindVectorData, paclet:ref/WindVectorData]) results point in that direction. Downwind vectors can be obtained by using the "DownwindGeoVector" and "DownwindGeoVectorENU" format specifications as third arguments to (RefLink[WindVectorData, paclet:ref/WindVectorData]).

(RefLink[WindVectorData, paclet:ref/WindVectorData])[] makes use of (RefLink[$GeoLocation, paclet:ref/$GeoLocation]) and (RefLink[$TimeZone, paclet:ref/$TimeZone]) to determine your location and time zone. It returns the most recent measurement of the wind vector for the nearest high-reliability weather station to the location specified by (RefLink[$GeoLocation, paclet:ref/$GeoLocation]).

The location can be specified as an ICAO code such as "KNYC", a WMO code such as "WMO12345", an amateur weather station code such as "C1234", or another standardized weather station identifier.

The location can also be specified by latitude/longitude pairs, assuming degrees as units, a (RefLink[GeoPosition, paclet:ref/GeoPosition]) specification, or (RefLink[Entity, paclet:ref/Entity]) objects, assuming they represent objects with geographic coordinates. They can also be (RefLink[GeoGraphics, paclet:ref/GeoGraphics]) primitives such as (RefLink[GeoDisk, paclet:ref/GeoDisk]) or a city specification of the type used in (RefLink[CityData, paclet:ref/CityData]). (RefLink[WindVectorData, paclet:ref/WindVectorData]) gives results for the nearest high-reliability weather station to the location.

locationspec can be either individual locations or lists of them.

datespec can be specified as a date list, a string in (RefLink[DateString, paclet:ref/DateString]) format, or a (RefLink[DateObject, paclet:ref/DateObject]).

(RefLink[WindVectorData, paclet:ref/WindVectorData])[locationspec,datespec] by default takes datespec to be given in local time and uses UTC for all output times.

When specific times are given, an interpolated result for that time is returned. datespec specifications for a day or longer period return the interval of wind direction measurements.

datespec can be specified as {start,end,step} for compatibility with (RefLink[DateRange, paclet:ref/DateRange]) specifications. step can be (RefLink[All, paclet:ref/All]), "Day", "Week", "Month", or "Year". (RefLink[All, paclet:ref/All]) gives all recorded observations. If omitted, step is assumed to have the value (RefLink[All, paclet:ref/All]).

Location and date can also be specified together as (RefLink[Association, paclet:ref/Association])["Location"->locationspec,"Date"->datespec].

(RefLink[WindVectorData, paclet:ref/WindVectorData])[locationspec,datespec,func] is used to specify the format of output when locations are specified.

Possible settings for func include:

Wind vector is returned as a pair of (RefLink[Quantity, paclet:ref/Quantity]) objects in either kilometers per hour or miles per hour.

The option (RefLink[UnitSystem, paclet:ref/UnitSystem]) controls output units. The default value is set by (RefLink[$UnitSystem, paclet:ref/$UnitSystem]). The following settings can also be used:

(RefLink[WindVectorData, paclet:ref/WindVectorData])[locationspec,"property"] returns the specified weather station property for the location corresponding to locationspec.

Properties related to identifying weather stations include:

(RefLink[WindVectorData, paclet:ref/WindVectorData]) can retrieve observational wind vector data from meteorological stations throughout the world.

OpenersPrimaryExamplesSection(Spacer1)Examples  (25)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Find the most recent wind vector measurement near your current location:

WindVectorData[]

Extract the north-south wind speed measurement:

First@WindVectorData[]

Wind vector results can be returned in kilometers per hour or miles per hour:

WindVectorData[UnitSystem->"Imperial"]

Obtain the wind vector reading for a specific weather station:

WindVectorData["KMCI"]

Find the interpolated wind vector at a specific date near a specified location:

WindVectorData["KSAC",DateObject[{2012,6,8},TimeObject[{9,53}]]]

OpenersExampleSection1(Spacer1)Scope  (19)

OpenersExampleSubsection0(Spacer1)Location Specification  (6)

The current wind vector measurement from a high-reliability station at the approximate coordinates of "KBOS":

WindVectorData["KBOS"]

Coordinates can be supplied for a location:

WindVectorData[{41,-100}]

WindVectorData[GeoPosition[{41,-100}]]

(RefLink[Entity, paclet:ref/Entity]) objects can be used:

WindVectorData[Entity["Building","SearsTower"]]

Obtain the appropriate (RefLink[Entity, paclet:ref/Entity]) using free-form input ((Key1[ctrl, ==])):

WindVectorData[(Entity["Willis Tower", Entity["Building","SearsTower"], "Entity[\"Building\", \"SearsTower\"]", "building"])]

Discover the range of wind vector readings in a 180-degree arc to the west of Paris:

WindVectorData[GeoDisk[EntityValue[(Entity["Paris", Entity["City",{"Paris","IleDeFrance","France"}], "Entity[\"City\", {\"Paris\", \"IleDeFrance\", \"France\"}]", "city"]),"Coordinates"],Quantity[100,"Miles"],{180,360}]]

Find the wind vector measurement range across a geographic region:

WindVectorData[Polygon[(Entity["United Kingdom", Entity["Country","UnitedKingdom"], "Entity[\"Country\", \"UnitedKingdom\"]", "country"])]]

To return the station from coordinates or a city name, use the "StationName" property:

WindVectorData[{42.3, -71.0}, "StationName"]

OpenersExampleSubsection1(Spacer1)Station Properties  (3)

Find the name and coordinates of the station used:

WindVectorData["StationName"]

WindVectorData["Coordinates"]

Discover the relative distance of the station used from a specified location:

WindVectorData[{40.67,-73.94},"StationDistance"]

Learn a station's altitude:

WindVectorData["KCMI","Elevation"]

OpenersExampleSubsection2(Spacer1)Date Specification  (3)

Dates can be input using (RefLink[DateObject, paclet:ref/DateObject]):

WindVectorData["KSAC",DateObject[{2012,6,18},TimeObject[{10,0,0}]]]

Dates can also be specified in (RefLink[DateList, paclet:ref/DateList]) format:

WindVectorData["KSAC",{2012,6,18,10,0,0}]

Date ranges in the format {start,end} will return all data within that range:

WindVectorData["KMCI",{DateObject[{2012,1,1}],DateObject[{2012,1,2}]}]

%["Values"]//Short

Date specifications for a time period longer than an hour will return the (RefLink[Interval, paclet:ref/Interval]) for the wind vectors for that time period:

WindVectorData["KSAC",DateObject[{2012,1,1}]]

OpenersExampleSubsection3(Spacer1)Lists of Locations  (3)

Lists of locations can be provided:

WindVectorData[{"KSAC",Entity["Building","EmpireStateBuilding"],{40.11`,-88.24`}}]

Search for interpolated wind vectors for multiple locations at a specific time:

WindVectorData[{"KSAC",Entity["Building","EmpireStateBuilding"],{40.11`,-88.24`}},DateObject[{2012,6,17},TimeObject[{17}]]]

Find the calculated wind vectors of multiple locations and dates:

WindVectorData[{{"KCMI",DateObject[{2008,8,4},TimeObject[{12}]]},{"KSAC",DateObject[{2008,8,4},TimeObject[{12}]]},{"KISP",DateObject[{2012,6,6},TimeObject[{13}]]}}]

OpenersExampleSubsection4(Spacer1)Format Specification  (2)

Find the wind vector range for an extended location:

WindVectorData[GeoDisk[{40,-90},Quantity[25,"Miles"]],DateObject[{2008,8,4},TimeObject[{12}]]]

Obtain the maximum or minimum wind vector by magnitude:

WindVectorData[GeoDisk[{40,-90},Quantity[25,"Miles"]],DateObject[{2008,8,4},TimeObject[{12}]],Max]

WindVectorData[GeoDisk[{40,-90},Quantity[25,"Miles"]],DateObject[{2008,8,4},TimeObject[{12}]],Min]

Use the setting (RefLink[Mean, paclet:ref/Mean]) to obtain the average recorded wind magnitude:

WindVectorData[GeoDisk[{40,-90},Quantity[25,"Miles"]],DateObject[{2008,8,4},TimeObject[{12}]],Mean]

Return the station for all displayed values:

WindVectorData[Polygon[{{-99.24`,39.11`},{-99.24`,41.11`},{-101.24`,41.11`},{-101.24`,39.11`}}],DateObject[{2011,6,14},TimeObject[{12,30}]],"Stations"]

OpenersExampleSubsection5(Spacer1)Association Specification  (2)

Date and location can be specified together using (RefLink[Association, paclet:ref/Association]):

WindVectorData[Association["Location"->"KSAC","Date"->DateObject[{2012,1,1}]]]

(RefLink[Association, paclet:ref/Association]) specification works with format arguments:

WindVectorData[Association["Location"->"KSAC","Date"->DateObject[{2012,1,1}]], Mean]

OpenersExampleSection2(Spacer1)Options  (1)

OpenersExampleSubsection6(Spacer1)UnitSystem  (1)

By default, results use the format given by (RefLink[$UnitSystem, paclet:ref/$UnitSystem]):

$UnitSystem

Set (RefLink[UnitSystem, paclet:ref/UnitSystem]) to "Imperial" to specify miles per hour:

WindVectorData[UnitSystem->"Imperial"]

Or set (RefLink[UnitSystem, paclet:ref/UnitSystem]) to "Metric" to specify kilometers per hour:

WindVectorData[UnitSystem->"Metric"]

OpenersExampleSection4(Spacer1)Properties & Relations  (2)

By default, location is specified by (RefLink[$GeoLocation, paclet:ref/$GeoLocation]):

WindVectorData[]

WindVectorData[$GeoLocation]

(RefLink[WindVectorData, paclet:ref/WindVectorData]) combines the functionality of (RefLink[WindDirectionData, paclet:ref/WindDirectionData]) and (RefLink[WindSpeedData, paclet:ref/WindSpeedData]):

WindVectorData[]

WindSpeedData[]*({Cos[#],Sin[#]}&@WindDirectionData[])

OpenersExampleSection5(Spacer1)Possible Issues  (1)

(RefLink[WindVectorData, paclet:ref/WindVectorData]) returns vectors in the upwind direction by default:

WindVectorData["KBOS"]

WindDirectionData["KBOS"]

Use "DownwindGeoVectorENU" or "DownwindGeoVector" to get the vector in the direction the wind blows:

WindVectorData["KBOS",Now,"DownwindGeoVectorENU"]

WindVectorData["KBOS",Now,"DownwindGeoVector"]

OpenersExampleSection6(Spacer1)Neat Examples  (1)

Look at the wind vectors across the state of Illinois convolved with white noise:

data=Table[{{lon,lat},Reverse@QuantityMagnitude@(WindVectorData[{lat,lon}]/.Missing[_]->{0,0})},{lon,-92,-86,0.5},{lat,37,43,0.5}];

poly=EntityValue[Entity["AdministrativeDivision",{"Illinois",
         "UnitedStates"}],"Polygon"]/.GeoPosition[x_]:>Map[Reverse,x,{-2}];

ListLineIntegralConvolutionPlot[data,Epilog->{EdgeForm[Directive[Thin,GrayLevel[0.3]]],LightGray,Opacity[0.4],poly}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[WeatherData, paclet:ref/WeatherData])  ▪  (RefLink[WeatherForecastData, paclet:ref/WeatherForecastData])  ▪  (RefLink[AirPressureData, paclet:ref/AirPressureData])  ▪  (RefLink[AirTemperatureData, paclet:ref/AirTemperatureData])  ▪  (RefLink[WindDirectionData, paclet:ref/WindDirectionData])  ▪  (RefLink[WindSpeedData, paclet:ref/WindSpeedData])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Weather Data, paclet:guide/WeatherData])}})}})