### init(start:end:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/datecomponentsinterval/init%28start%3Aend%3A%29 Initializes a DateComponentsInterval with a start and end DateComponents. ```APIDOC ## Initializer: init(start:end:) ### Description Initializes a new instance of `DateComponentsInterval` using specified start and end `DateComponents`. ### Method `init` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response None ### Code Signature ```swift init( start: DateComponents, end: DateComponents ) ``` ``` -------------------------------- ### Access the start property Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/datecomponentsinterval/start Defines the start property as a DateComponents instance. ```swift var start: DateComponents ``` -------------------------------- ### SwiftMETAR Initializer: init(start:end:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/datecomponentsinterval/init%28start%3Aend%3A%29 Use this initializer to create a date components interval by specifying the start and end date components. ```swift init( start: DateComponents, end: DateComponents ) ``` -------------------------------- ### DateComponentsInterval - start Property Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/datecomponentsinterval/start The 'start' property represents the starting date components for an interval. ```APIDOC ## Instance Property: start ### Description Represents the starting date components of the interval. ### Type `DateComponents` ### Access Read-only ``` -------------------------------- ### Initialize DateComponents with Start and Duration Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/datecomponentsinterval/init%28start%3Aduration%3A%29 Use this initializer to create a DateComponents object specifying a start date and a duration. This is useful for defining time intervals. ```swift init( start: DateComponents, duration: TimeInterval ) ``` -------------------------------- ### DateComponentsInterval Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/datecomponentsinterval/init%28start%3Aduration%3A%29 Documentation for the init(start:duration:) initializer used to create a DateComponentsInterval instance. ```APIDOC ## init(start:duration:) ### Description Initializes a new DateComponentsInterval with a start date component and a duration. ### Parameters - **start** (DateComponents) - Required - The starting date components. - **duration** (TimeInterval) - Required - The duration of the interval. ### Request Example ```swift init(start: DateComponents, duration: TimeInterval) ``` ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/remark/highcloudtype/formatstyle/init%28from%3A%29 Documentation for the Decodable initializer used in SwiftMETAR. ```APIDOC ## init(from:) ### Description Initializes a new instance from the given decoder. This is inherited from the Decodable protocol. ### Method Initializer ### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Throws - Throws an error if the data is invalid or cannot be decoded. ``` -------------------------------- ### init() Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remarkcomparator/init%28%29 Initializes a new instance of the SwiftMETAR component. ```APIDOC ## init() ### Description Initializes a new instance of the SwiftMETAR library. ### Method Initializer ### Request Example ```swift init() ``` ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/turbulence/init%28from%3A%29 Documentation for the Decodable initializer for the Turbulence structure. ```APIDOC ## init(from:) ### Description Initializes a Turbulence instance from a decoder. This method is inherited from the Decodable protocol. ### Method Initializer ### Parameters #### Path Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ``` -------------------------------- ### Get RunwayVisibility.FormatStyle Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/visibility-51pjj Access the static property `visibility` to get the `RunwayVisibility.FormatStyle`. This is available when `Self` is `RunwayVisibility.FormatStyle`. ```swift static var visibility: RunwayVisibility.FormatStyle { get } ``` -------------------------------- ### init(from:) Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/windsaloft/station/entry/init%28from%3A%29 Documentation for the Decodable initializer used to create a WindsAloft.Station.Entry instance from a decoder. ```APIDOC ## init(from:) ### Description Initializes a new instance of WindsAloft.Station.Entry by decoding data from the provided decoder. This method is inherited from the Decodable protocol. ### Method Initializer ### Parameters #### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Request Example ```swift init(from decoder: any Decoder) throws ``` ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/condition/ceilingtype/formatstyle/init%28from%3A%29 Initializes a new instance from the provided decoder, conforming to the Decodable protocol. ```APIDOC ## init(from:) ### Description Initializes a new instance from the provided decoder. This method is inherited from the Decodable protocol. ### Method Initializer ### Parameters #### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Request Example ```swift init(from decoder: any Decoder) throws ``` ``` -------------------------------- ### Define TAF period start date Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/taf/group/period-swift.enum/from%28_%3A%29 Specifies the start date for a forecast period using DateComponents. ```swift case from(_: DateComponents) ``` -------------------------------- ### SwiftMETAR Cloud Coverage Remark: Scattered Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/coverage/scattered Use this case to represent cloud coverage between 3 and 4 oktas. No specific setup or imports are required beyond the SwiftMETAR library. ```swift case scattered ``` -------------------------------- ### Turbulence.Location init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/turbulence/location-swift.enum/init%28from%3A%29 Documentation for the Decodable initializer for Turbulence.Location. ```APIDOC ## init(from:) ### Description Initializes a new instance of Turbulence.Location from the provided decoder. This is inherited from the Decodable protocol. ### Method Initializer ### Parameters #### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ``` -------------------------------- ### Get Ratio FormatStyle Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/ratio Access the static 'ratio' property to get the Rational.FormatStyle. Available when Self is Rational.FormatStyle. ```swift static var ratio: Rational.FormatStyle { get } ``` -------------------------------- ### RemarkEntry init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remarkentry/init%28from%3A%29 Documentation for the RemarkEntry initializer inherited from Decodable. ```APIDOC ## init(from:) ### Description Initializes a RemarkEntry instance from a decoder. This method is inherited from the Decodable protocol. ### Method Initializer ### Parameters #### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Request Example ```swift init(from decoder: any Decoder) throws ``` ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/direction/init%28from%3A%29 Documentation for the Decodable initializer used to create a Remark.Direction instance from a decoder. ```APIDOC ## init(from:) ### Description Initializes a new Remark.Direction instance from the provided decoder. This method is inherited from the Decodable protocol. ### Method Initializer ### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Request Example ```swift init(from decoder: any Decoder) throws ``` ``` -------------------------------- ### init(from:) Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/windshear/init%28from%3A%29 Documentation for the Decodable initializer used to decode Windshear data. ```APIDOC ## init(from:) ### Description Initializes a new instance of the object from the provided decoder. This is inherited from the Decodable protocol. ### Method Initializer ### Parameters #### Path Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ``` -------------------------------- ### TAF.Group.Period.from(_:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/taf/group/period-swift.enum/from%28_%3A%29 Initializes a TAF.Group.Period with a specific start date. ```APIDOC ## TAF.Group.Period.from(_:) ### Description Forecast is valid starting at a date. ### Method `case from(_: DateComponents)` ### Parameters #### Path Parameters - **from** (DateComponents) - Required - The start date. ``` -------------------------------- ### Define Cloud Coverage as Few Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/coverage/few Use this case to represent cloud coverage between 1 and 2 oktas. No specific setup or imports are required beyond the SwiftMETAR library. ```swift case few ``` -------------------------------- ### Enumeration: Remark.EventType Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/eventtype Defines the start or end status of a meteorological event. ```APIDOC ## Remark.EventType ### Description An enumeration representing whether a meteorological event began or ended. ### Enumeration Cases - **began**: The event has started. - **ended**: The event has concluded. ### Initializers - **init?(rawValue: String)**: Initializes the event type from a raw string value. ### Relationships - **Conforms To**: CaseIterable, Decodable, Encodable, Equatable, Hashable, RawRepresentable, Sendable, SendableMetatype ``` -------------------------------- ### init(from:) Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/turbulence/frequency-swift.enum/init%28from%3A%29 Documentation for the Decodable initializer used in Turbulence.Frequency. ```APIDOC ## init(from:) ### Description Initializes a new instance of Turbulence.Frequency from the provided decoder. This method is inherited from the Decodable protocol. ### Method Initializer ### Parameters #### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ``` -------------------------------- ### GET hashValue Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/metar/observer-swift.enum/hashvalue Retrieves the hash value for types conforming to Hashable and RawRepresentable. ```APIDOC ## hashValue ### Description Returns the hash value of the instance. Inherited from `RawRepresentable.hashValue`. ### Availability Available when `Self` conforms to `Hashable` and `RawValue` conforms to `Hashable`. ### Property Definition ```swift var hashValue: Int { get } ``` ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/metar/issuance/formatstyle/init%28from%3A%29 Documentation for the Decodable initializer used to decode METAR data. ```APIDOC ## init(from:) ### Description Initializes a new instance from the provided decoder. This is inherited from the Decodable protocol. ### Method Initializer ### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Throws - **Error** - Throws an error if the data is invalid or cannot be decoded. ``` -------------------------------- ### init(from:) Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/thunderstormevent/init%28from%3A%29 Documentation for the Decodable initializer used in Remark.ThunderstormEvent. ```APIDOC ## init(from:) ### Description Initializes a new instance of Remark.ThunderstormEvent from the provided decoder. This method is inherited from the Decodable protocol. ### Method Initializer ### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Request Example ```swift init(from decoder: any Decoder) throws ``` ``` -------------------------------- ### Get Temperature FormatStyle Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/temperature Retrieves the FormatStyle for temperature. Available when Self is TAF.Temperature.FormatStyle. ```swift static var temperature: TAF.Temperature.FormatStyle { get } ``` -------------------------------- ### GET coverage property Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/coverage Retrieves the coverage format style for METAR formatting. ```APIDOC ## coverage ### Description A static property that returns the coverage format style for Remark. ### Property Definition `static var coverage: Remark.Coverage.FormatStyle { get }` ### Availability Available when `Self` is `Remark.Coverage.FormatStyle`. ``` -------------------------------- ### init(from:) Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/windsaloft/header-swift.struct/init%28from%3A%29 Documentation for the Decodable initializer used to decode WindsAloft data. ```APIDOC ## init(from:) ### Description Initializes a new instance of the object from the provided decoder. This method is inherited from the Decodable protocol. ### Method Initializer ### Parameters #### Path Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Response - **Throws** - Throws an error if the decoding process fails. ``` -------------------------------- ### Related Structures and Topics Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark Links to related structures and introductory guides for SwiftMETAR. ```APIDOC ## See Also ### Basics Getting Started A basic tutorial on using SwiftMETAR to parse METAR and TAF products. `struct METAR` An aviation routine weather reports. METARs are generated by human observers or sensor packages at many airports throughout the world. METARs are typically generated hourly, but can also be produced as needed when weather changes more frequently. `struct TAF` Terminal aerodrome forecasts (TAFs) are point forecasts of a 5-mile area around a forecast location. They are generated every 6 hours, and are valid for 24 or 28 hours depending on the reporting station. Winds and Temperatures Aloft Parse NWS Winds and Temperatures Aloft (FB/FD) products into structured data. Winds and Temperatures Aloft Parse NWS Winds and Temperatures Aloft (FB/FD) products into structured data. * Remark * Topics * Relationships * See Also ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/condition/ceilingtype/init%28from%3A%29 Initializes a new instance from the provided decoder, inherited from RawRepresentable. ```APIDOC ## init(from:) ### Description Initializes a new instance from the provided decoder. This method is inherited from `RawRepresentable.init(from:)`. ### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Request Example ```swift init(from decoder: any Decoder) throws ``` ``` -------------------------------- ### init(from:) Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/highcloudtype/init%28from%3A%29 Documentation for the Decodable initializer used in SwiftMETAR types. ```APIDOC ## init(from:) ### Description Initializes a new instance of the type from the provided decoder. This is inherited from RawRepresentable.init(from:). ### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Requirements - Available when Self conforms to Decodable and RawValue is String. ``` -------------------------------- ### GET weather property Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/weather Access the static weather property for formatting METAR data. ```APIDOC ## static var weather ### Description A static property that returns a Weather.FormatStyle instance for formatting weather data. ### Endpoint Weather.FormatStyle.weather ### Response - **weather** (Weather.FormatStyle) - The format style instance for weather data. ``` -------------------------------- ### GET /visibility Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/visibility-51pjj Accesses the static visibility format style for runway visibility data. ```APIDOC ## static var visibility ### Description Returns the format style for runway visibility. ### Property `static var visibility: RunwayVisibility.FormatStyle { get }` ### Availability Available when `Self` is `RunwayVisibility.FormatStyle`. ``` -------------------------------- ### init(rawValue:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/extreme/init%28rawvalue%3A%29 Documentation for the Remark.Extreme initializer which conforms to RawRepresentable. ```APIDOC ## init(rawValue:) ### Description Initializes a new instance from a raw string value. Inherited from RawRepresentable.init(rawValue:). ### Parameters #### Request Body - **rawValue** (String) - Required - The raw string value used to initialize the object. ### Request Example ``` init?(rawValue: "example_string") ``` ``` -------------------------------- ### init(from:) Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/coverage/init%28from%3A%29 Documentation for the init(from:) initializer inherited from RawRepresentable. ```APIDOC ## init(from:) ### Description Initializes a new instance from the provided decoder. This is inherited from RawRepresentable and is available when the type conforms to Decodable and has a RawValue of String. ### Method Initializer ### Parameters #### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ``` -------------------------------- ### GET /TAF/Group/Period/FormatStyle/period Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/period Accesses the static period property for TAF group period formatting. ```APIDOC ## static var period ### Description A static property that provides a FormatStyle for TAF group periods. ### Definition `static var period: TAF.Group.Period.FormatStyle { get }` ### Availability Available when `Self` is `TAF.Group.Period.FormatStyle`. ``` -------------------------------- ### init(from:) Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/remark/proximity/formatstyle/init%28from%3A%29 Documentation for the Decodable initializer used in the Remark.Proximity structure. ```APIDOC ## init(from:) ### Description Initializes a new instance of the object from the provided decoder. This method is inherited from the Decodable protocol. ### Signature `init(from decoder: any Decoder) throws` ``` -------------------------------- ### Get Frequency FormatStyle Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/frequency-5dvha Retrieves the `FormatStyle` for turbulence frequency. Available when `Self` is `Turbulence.Frequency.FormatStyle`. ```swift static var frequency: Turbulence.Frequency.FormatStyle { get } ``` -------------------------------- ### init(rawValue:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/visibilitysource/init%28rawvalue%3A%29 Documentation for the initializer of Remark.VisibilitySource which conforms to RawRepresentable. ```APIDOC ## init(rawValue:) ### Description Initializes a VisibilitySource instance from a raw string value. Inherited from RawRepresentable. ### Parameters #### Request Body - **rawValue** (String) - Required - The raw string value to initialize the VisibilitySource. ### Request Example ``` init?(rawValue: "some_value") ``` ``` -------------------------------- ### SwiftMETAR Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remarkcomparator/init%28%29 This is the default initializer for the SwiftMETAR class. No specific setup is required to use it. ```swift init() ``` -------------------------------- ### PartialRangeFrom Operator Signature Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/urgency/%27...%28_%3A%29-2y569 Defines the static operator for creating a range starting from a minimum value. ```Swift static func ... (minimum: Self) -> PartialRangeFrom ``` -------------------------------- ### Initializers and Instance Properties Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark Details on how to initialize remarks and access their properties, including measurements. ```APIDOC ## Initializers and Instance Properties ### Initializers `init(from: any Decoder) throws` Initializes a remark from a decoder. ### Instance Properties `var depthIncreaseMeasurment: Measurement?` The depth increase as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.rapidSnowIncrease(_:totalDepth:)`. `var depthMeasurement: Measurement?` The depth as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.snowDepth(_:)` or `Remark.waterEquivalentDepth(_:)`. `var dewpointMeasurement: Measurement?` The dewpoint as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.temperatureDewpoint(temperature:dewpoint:)`. `var distanceMeasurement: Measurement?` The distance as a `Measurement`, which can be converted to other units. `nil` if this is not an `Remark.observedVisibility(source:distance:)`, `Remark.runwayVisibility(runway:distance:)`, or `Remark.sectorVisibility(direction:distance:)`. `var durationMeasurement: Measurement?` The duration as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.sunshineDuration(_:)`. `var hailstoneSizeMeasurement: Measurement?` The hailstone size as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.hailstoneSize(_:)`. `var heightMeasurement: Measurement?` The height as a `Measurement`, which can be converted to other units. `nil` if this is not an `Remark.obscuration(type:amount:height:)`, `Remark.runwayCeiling(runway:height:)`, or `Remark.variableSkyCondition(low:high:height:)`. `var highHeightMeasurement: Measurement?` The higher height as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.variableCeilingHeight(low:high:)`. `var highTemperatureMeasurement: Measurement?` The daily high-temperature extreme as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.dailyTemperatureExtremes(low:high:)`. `var highVisibilityMeasurement: Measurement?` The higher visibility as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.variablePrevailingVisibility(low:high:)`. `var lowHeightMeasurement: Measurement?` The lower height as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.variableCeilingHeight(low:high:)`. `var lowTemperatureMeasurement: Measurement?` The daily low-temperature extreme as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.dailyTemperatureExtremes(low:high:)`. `var lowVisibilityMeasurement: Measurement?` The lower visibility as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.variablePrevailingVisibility(low:high:)`. `var precipitationAmountMeasurement: Measurement?` The precipitation amount as a `Measurement`, which can be converted to other units. `nil` if this remark is not a `Remark.dailyPrecipitationAmount(_:)`, `Remark.hourlyPrecipitationAmount(_:)`, `Remark.periodicPrecipitationAmount(period:amount:)`, or `Remark.periodicIceAccretionAmount(period:amount:)`. `var pressureMeasurement: Measurement?` The pressure change as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.pressureTendency(character:change:)` or `Remark.seaLevelPressure(_:)`. `var temperatureMeasurement: Measurement?` The temperature as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.sixHourTemperatureExtreme(type:temperature:)` or `Remark.temperatureDewpoint(temperature:dewpoint:)`. `var totalDepthMeasurement: Measurement?` The total deptyh as a `Measurement`, which can be converted to other units. `nil` if this is not a `Remark.rapidSnowIncrease(_:totalDepth:)`. ``` -------------------------------- ### init(from:) Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/turbulence/location/formatstyle/init%28from%3A%29 Documentation for the Decodable initializer used to decode Turbulence.Location objects. ```APIDOC ## init(from:) ### Description Initializes a new instance of the object from the provided decoder. This is inherited from the Decodable protocol. ### Method Initializer ### Parameters #### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/weather/phenomenon/init%28from%3A%29 Initializes a Weather.Phenomenon object from a decoder. ```APIDOC ## init(from:) ### Description Initializes a new instance of Weather.Phenomenon from the provided decoder. This method is inherited from RawRepresentable and is available when the type conforms to Decodable and the RawValue is a String. ### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Request Example ```swift init(from decoder: any Decoder) throws ``` ``` -------------------------------- ### GET Wind FormatStyle Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/wind Access the static wind property for formatting METAR wind information. ```APIDOC ## static var wind ### Description A static property that returns a Wind.FormatStyle instance for formatting wind data. ### Endpoint METARFormatting.Foundation.Wind.FormatStyle.wind ### Response - **wind** (Wind.FormatStyle) - The format style instance for wind data. ``` -------------------------------- ### init(rawValue:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/lowcloudtype/init%28rawvalue%3A%29 Initializes a Remark.LowCloudType instance from a raw string value. ```APIDOC ## init(rawValue:) ### Description Initializes a new instance of Remark.LowCloudType using a raw string value. This method is inherited from RawRepresentable. ### Parameters #### Request Body - **rawValue** (String) - Required - The raw string representation of the low cloud type. ``` -------------------------------- ### Get Precipitation FormatStyle Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/precipitation Retrieves the `FormatStyle` for observed precipitation types. Available when `Self` is `Remark.ObservedPrecipitationType.FormatStyle`. ```swift static var precipitation: Remark.ObservedPrecipitationType.FormatStyle { get } ``` -------------------------------- ### init(rawValue:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/weather/descriptor-swift.enum/init%28rawvalue%3A%29 Initializes a Weather.Descriptor instance from a raw string value. ```APIDOC ## init(rawValue:) ### Description Initializes a Weather.Descriptor instance from a raw string value. This is inherited from RawRepresentable. ### Parameters #### Request Body - **rawValue** (String) - Required - The raw string value used to initialize the descriptor. ### Request Example ``` init?(rawValue: "string") ``` ``` -------------------------------- ### Get Intensity FormatStyle Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/intensity-1w6ru Provides access to the static property for Turbulence.Intensity.FormatStyle. Available when Self is Turbulence.Intensity.FormatStyle. ```swift static var intensity: Turbulence.Intensity.FormatStyle { get } ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/frequency/init%28from%3A%29 Initializes a Remark object from a decoder, conforming to the Decodable protocol. ```APIDOC ## init(from:) ### Description Initializes a new instance of the type from the provided decoder. This method is inherited from RawRepresentable and is available when the type conforms to Decodable and the RawValue is a String. ### Method Initializer ### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Request Example init(from: decoder) ### Response - **Self** (Object) - Returns a new instance of the conforming type. ``` -------------------------------- ### Get Altimeter Measurement Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/altimeter Provides the altimeter setting as a Measurement object, allowing conversion to other pressure units. ```swift var measurement: Measurement ``` -------------------------------- ### Wind.init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/wind/speed/init%28from%3A%29 Initializes a Wind object from a decoder, conforming to the Decodable protocol. ```APIDOC ## init(from:) ### Description Initializes a new Wind instance by decoding data from the provided decoder. This method is inherited from the Decodable protocol. ### Method Initializer ### Parameters #### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Request Example ```swift init(from decoder: any Decoder) throws ``` ``` -------------------------------- ### Get Middle Clouds Format Style Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/middleclouds Provides the FormatStyle for middle clouds, available when the type is Remark.MiddleCloudType.FormatStyle. ```swift static var middleClouds: Remark.MiddleCloudType.FormatStyle { get } ``` -------------------------------- ### Initialize and convert measurements Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/metar Initializer and instance properties for handling temperature measurements. ```swift init(from: any Decoder) throws ``` ```swift var dewpointMeasurement: Measurement? ``` ```swift var temperatureMeasurement: Measurement? ``` -------------------------------- ### Get Intensity FormatStyle Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/intensity-46gr0 Retrieves the static intensity property of Weather.Intensity.FormatStyle. This is available when the type conforms to Weather.Intensity.FormatStyle. ```swift static var intensity: Weather.Intensity.FormatStyle { get } ``` -------------------------------- ### SwiftMETAR productID Property Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/windsaloft/header-swift.struct/productid The productID property stores the WMO product identifier as a String. Example: `FBUS31`. ```swift let productID: String ``` -------------------------------- ### format(_:) Method Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/remark/navalweathercenter/formatstyle/format%28_%3A%29 Documentation for the format(_:) instance method used to format Naval Weather Center remarks. ```APIDOC ## format(_:) ### Description Formats a Remark.NavalWeatherCenter value into a String representation. ### Method Instance Method ### Parameters - **value** (Remark.NavalWeatherCenter) - Required - The value to be formatted. ### Response - **String** - The formatted string representation of the input value. ``` -------------------------------- ### init(from:) Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/remark/precipitationevent/formatstyle/init%28from%3A%29 Documentation for the Decodable initializer used to decode precipitation event data from a decoder. ```APIDOC ## init(from:) ### Description Initializes a new instance of the object from the provided decoder. This is inherited from the Decodable protocol. ### Method Initializer ### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Request Example ```swift init(from decoder: any Decoder) throws ``` ``` -------------------------------- ### dateFormat Property Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/remark/thunderstormevent/formatstyle/dateformat The dateFormat property defines the format used when printing start and stop times for weather events. ```APIDOC ## Property: dateFormat ### Description The format to use when printing start/stop times. ### Declaration `var dateFormat: Date.FormatStyle` ``` -------------------------------- ### Remark.RapidPressureChange init(rawValue:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/rapidpressurechange/init%28rawvalue%3A%29 Initializes a RapidPressureChange instance from a raw string value. ```APIDOC ## init(rawValue:) ### Description Initializes a new instance of Remark.RapidPressureChange from a raw string value. This is inherited from RawRepresentable. ### Parameters #### Request Body - **rawValue** (String) - Required - The raw string value to initialize the RapidPressureChange object. ### Request Example { "rawValue": "string" } ### Response #### Success Response (200) - **instance** (Remark.RapidPressureChange?) - Returns an optional instance of RapidPressureChange if the raw value is valid. ``` -------------------------------- ### GET hashValue Property Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/taf/temperature/temperaturetype/hashvalue Retrieves the hash value for types conforming to Hashable and RawRepresentable within the SwiftMETAR library. ```APIDOC ## hashValue ### Description Returns the hash value of the instance. This property is inherited from `RawRepresentable.hashValue`. ### Parameters - **Self** (Type) - Required - Must conform to `Hashable`. - **RawValue** (Type) - Required - Must conform to `Hashable`. ### Request Example ```swift var hashValue: Int { get } ``` ### Response - **hashValue** (Int) - The hash value of the instance. ``` -------------------------------- ### METAR Generation Date Property Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/metar/calendardate Get the specific Date object representing when the METAR was generated. This is a variable property. ```swift var date: Date ``` -------------------------------- ### format(_:) Method Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/weather/phenomenon/formatstyle/format%28_%3A%29 Documentation for the format(_:) instance method inherited from FormatStyle. ```APIDOC ## format(_:) ### Description Formats a Weather.Phenomenon value into a String representation. ### Method Instance Method ### Parameters - **value** (Weather.Phenomenon) - Required - The phenomenon object to be formatted. ### Response - **String** - The formatted string representation of the phenomenon. ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/remark/direction/formatstyle/init%28from%3A%29 The init(from:) initializer is used to decode a SwiftMETAR object from a decoder. It is inherited from the Decodable protocol. ```APIDOC ## init(from:) ### Description Initializes a new instance of the type by decoding from the given decoder. This method is inherited from the `Decodable` protocol. ### Method `init(from: any Decoder) throws` ### Endpoint N/A (Initializers are not endpoints) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```swift let decoder = JSONDecoder() let metarData = "{\"some\": \"data\"}".data(using: .utf8)! let metar = try decoder.decode(SwiftMETAR.self, from: metarData) ``` ### Response #### Success Response (200) N/A (Initializers do not return HTTP responses) #### Response Example N/A ``` -------------------------------- ### Get Windshear Format Style Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/windshear Retrieve the default format style for windshear data. Available when the type is Windshear.FormatStyle. ```swift static var windshear: Windshear.FormatStyle { get } ``` -------------------------------- ### Get Ceiling FormatStyle Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/ceiling Provides the static property for accessing the ceiling format style. Available when Self is Condition.CeilingType.FormatStyle. ```swift static var ceiling: Condition.CeilingType.FormatStyle { get } ``` -------------------------------- ### init(rawValue:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/lightningtype/init%28rawvalue%3A%29 Documentation for the Remark.LightningType initializer which creates an instance from a raw string value. ```APIDOC ## init(rawValue:) ### Description Initializes a Remark.LightningType instance from a raw string value. Inherited from RawRepresentable. ### Method Initializer ### Parameters #### Parameters - **rawValue** (String) - Required - The raw string value to initialize the LightningType. ``` -------------------------------- ### issuingOffice Property Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/windsaloft/header-swift.struct/issuingoffice The `issuingOffice` property is a String that holds the identifier of the office that issued the METAR report. For example, 'KWNO'. ```APIDOC ## Property: issuingOffice ### Description The issuing office identifier (e.g., `KWNO`). ### Type `String` ### Example ```swift let issuingOffice: String ``` ``` -------------------------------- ### Get PressureCharacter FormatStyle Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/pressurecharacter Access the static pressureCharacter property to obtain the FormatStyle for pressure remarks. This is available when working with Remark.PressureCharacter.FormatStyle. ```swift static var pressureCharacter: Remark.PressureCharacter.FormatStyle { get } ``` -------------------------------- ### format(_:) Method Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/icing/icingtype/formatstyle/format%28_%3A%29 Documentation for the format(_:) instance method used to format Icing.IcingType values. ```APIDOC ## format(_:) ### Description Formats an Icing.IcingType value into a string representation. This method is inherited from FormatStyle. ### Method Instance Method ### Parameters - **value** (Icing.IcingType) - Required - The icing type value to be formatted. ### Response - **String** - The formatted string representation of the icing type. ``` -------------------------------- ### init(rawValue:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/weather/intensity-swift.enum/init%28rawvalue%3A%29 Initializes a Weather.Intensity instance from a raw string value. ```APIDOC ## init(rawValue:) ### Description Initializes a Weather.Intensity instance from a raw string value. Inherited from RawRepresentable.init(rawValue:). ### Method Initializer ### Parameters #### Parameters - **rawValue** (String) - Required - The raw string value to initialize the intensity. ``` -------------------------------- ### Define Thunderstorm Phenomenon Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/weather/phenomenon/thunderstorm Use this case to represent thunderstorms. No specific setup or imports are required beyond the enum definition. ```swift case thunderstorm ``` -------------------------------- ### Get Raw METAR Text Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/metar/date Access the `text` property to retrieve the raw, unprocessed string of the METAR data. This property is optional. ```swift let text: String? ``` -------------------------------- ### FormatStyle Instance and Type Methods Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/condition/ceilingtype/formatstyle/formatstyle-implementations A collection of methods for configuring format styles for locales, currency, lists, and measurements. ```APIDOC ## FormatStyle Implementations ### Instance Methods - **locale(Locale) -> Self**: Sets the locale for the format style. ### Type Methods - **currency(code: String) -> Self**: Creates a currency format style. - **list(memberStyle: MemberStyle, type: ListType, width: Width) -> Self**: Creates a list format style with specific member style, type, and width. - **measurement(width: UnitWidth, usage: MeasurementFormatUnitUsage, hidesScaleName: Bool, numberFormatStyle: FloatingPointFormatStyle?) -> Self**: Creates a measurement format style for temperature. - **measurement(width: UnitWidth, usage: MeasurementFormatUnitUsage, numberFormatStyle: FloatingPointFormatStyle?) -> Self**: Creates a generic measurement format style. ``` -------------------------------- ### Get METAR Generation Date Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/metar/date Access the `date` property to retrieve the `Date` object representing when the METAR was generated. This is a read-only property. ```swift var date: Date { get } ``` -------------------------------- ### METAR.Observer init(rawValue:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/metar/observer-swift.enum/init%28rawvalue%3A%29 Documentation for the initializer used to create a METAR.Observer instance from a raw string value. ```APIDOC ## init(rawValue:) ### Description Initializes a new METAR.Observer instance from a raw string value. This method is inherited from RawRepresentable. ### Parameters #### Request Body - **rawValue** (String) - Required - The raw string value used to initialize the observer. ``` -------------------------------- ### Get Wind Format Style Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/wind Access the static `wind` property to obtain the `FormatStyle` for wind data. This is available when `Self` is `Wind.FormatStyle`. ```swift static var wind: Wind.FormatStyle { get } ``` -------------------------------- ### Remark.runwayCeiling(runway:height:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/runwayceiling%28runway%3Aheight%3A%29 Documentation for the SwiftMETAR Remark.runwayCeiling case. ```APIDOC ## Remark.runwayCeiling(runway:height:) ### Description The recorded ceiling at a runway departure end. ### Parameters - **runway** (String) - Required - The runway name (e.g., “11” for runway 11). - **height** (UInt) - Required - The ceiling height, in feet AGL. ### Request Example case runwayCeiling( runway: "11", height: 500 ) ``` -------------------------------- ### init(rawValue:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/coverage/init%28rawvalue%3A%29 Initializes a Remark instance from a raw string value. ```APIDOC ## init(rawValue:) ### Description Initializes a Remark instance from a raw string value. Inherited from RawRepresentable.init(rawValue:). ### Parameters #### Request Body - **rawValue** (String) - Required - The raw string value to initialize the Remark. ### Request Example { "rawValue": "string" } ### Response #### Success Response (200) - **Remark** (Object) - The initialized Remark object. ``` -------------------------------- ### METAR.Observer.corrected Case Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/metar/observer-swift.enum/corrected Use this case to represent a corrected METAR report. No specific setup is required beyond standard SwiftMETAR usage. ```swift case corrected ``` -------------------------------- ### Get Success Value or Throw Error Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/xmlparseresult/get%28%29 Use this method to retrieve the successful result of a parsing operation. It will throw an error if the operation failed. ```swift func get() throws -> Success ``` -------------------------------- ### format(_:) Method Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/turbulence/intensity/formatstyle/format%28_%3A%29 Documentation for the format(_:) instance method used to convert Turbulence.Intensity values into a String representation. ```APIDOC ## format(_:) ### Description Formats a Turbulence.Intensity value into a human-readable String. ### Method Instance Method ### Parameters - **value** (Turbulence.Intensity) - Required - The intensity value to be formatted. ### Response - **String** - The formatted string representation of the turbulence intensity. ``` -------------------------------- ### Define unknownPrecipitation Case Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/weather/phenomenon/unknownprecipitation Use this case when precipitation is detected but its type is indeterminate. No specific setup or imports are required beyond the enum definition. ```swift case unknownPrecipitation ``` -------------------------------- ### FormatStyle Implementation Methods Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/remark/tornadicactivitytype/formatstyle/formatstyle-implementations A collection of static and instance methods used for defining various format styles. ```APIDOC ## FormatStyle Implementation Methods ### Description Provides methods to configure and instantiate various format styles for currency, lists, and measurements. ### Methods - `func locale(Locale) -> Self` - `static func currency(code: String) -> Self` - `static func currency(code: String) -> Self` - `static func list(memberStyle: MemberStyle, type: ListFormatStyle.ListType, width: ListFormatStyle.Width) -> Self` - `static func list(type: ListFormatStyle.ListType, width: ListFormatStyle.Width) -> Self` - `static func measurement(width: Measurement.FormatStyle.UnitWidth, usage: MeasurementFormatUnitUsage, hidesScaleName: Bool, numberFormatStyle: FloatingPointFormatStyle?) -> Self` - `static func measurement(width: Measurement.FormatStyle.UnitWidth, usage: MeasurementFormatUnitUsage, numberFormatStyle: FloatingPointFormatStyle?) -> Self` ``` -------------------------------- ### static func currency(code:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/condition/ceilingtype/formatstyle/currency%28code%3A%29-9j3x0 Documentation for the currency(code:) method used to create a currency format style. ```APIDOC ## static func currency(code:) ### Description Creates a currency format style for binary integers using the specified currency code. ### Method Static Function ### Parameters #### Parameters - **code** (String) - Required - The ISO currency code to use for formatting. ### Request Example ```swift let style = IntegerFormatStyle.Currency.currency(code: "USD") ``` ### Response - **Return Type** (Self) - Returns an instance of IntegerFormatStyle.Currency. ``` -------------------------------- ### SwiftMETAR Remark.EventType.began Case Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/eventtype/began This snippet shows the declaration of the 'began' case within the Remark.EventType enumeration. It is used to signify the start of a specific remark event. ```swift case began ``` -------------------------------- ### Weather.Phenomenon init(rawValue:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/weather/phenomenon/init%28rawvalue%3A%29 Initializes a Weather.Phenomenon instance from a raw string value. ```APIDOC ## init(rawValue:) ### Description Initializes a Weather.Phenomenon instance from a raw string value. This is inherited from RawRepresentable. ### Method Initializer ### Parameters #### Parameters - **rawValue** (String) - Required - The raw string value used to initialize the phenomenon. ``` -------------------------------- ### Instance Property: base Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/icing/base The 'base' property indicates the altitude in feet Above Ground Level (AGL) at which an icing layer starts. It is represented as an unsigned integer. ```APIDOC ## Instance Property: base ### Description The base of the icing layer, in feet AGL. ### Type `UInt` ### Example ```swift var base: UInt ``` ``` -------------------------------- ### format(_:) Method Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/remark/formatstyle/format%28_%3A%29 Documentation for the format(_:) instance method used to format Remark objects. ```APIDOC ## format(_:) ### Description Formats a Remark object into a string representation. This method is inherited from the FormatStyle protocol. ### Method Instance Method ### Parameters - **value** (Remark) - Required - The Remark object to be formatted. ### Returns - **String** - The formatted string representation of the Remark object. ``` -------------------------------- ### Define Low-Temperature Extreme Case Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/extreme/low Use this case to represent a low-temperature extreme condition. No specific setup or imports are required beyond the enum definition. ```swift case low ``` -------------------------------- ### init(rawValue:) Initializer Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/eventtype/init%28rawvalue%3A%29 Documentation for the Remark.EventType initializer which creates an instance from a raw string value. ```APIDOC ## init(rawValue:) ### Description Initializes a Remark.EventType instance from a raw string value. Inherited from RawRepresentable. ### Method Initializer ### Parameters #### Parameters - **rawValue** (String) - Required - The raw string value to initialize the event type. ### Request Example ```swift let event = Remark.EventType(rawValue: "TS") ``` ### Response #### Success Response - **instance** (Remark.EventType?) - Returns an optional Remark.EventType instance if the raw value is valid. ``` -------------------------------- ### Get METAR Date Components Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/metar/date Access the `calendarDate` property to retrieve the `DateComponents` for the METAR's generation date. This allows for easier manipulation of date parts. ```swift let calendarDate: DateComponents ``` -------------------------------- ### METAR Remark Direction RangeFormatStyle Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/foundation/formatstyle/range Access the static `range` property to get the default range format style for METAR directions. Available when the type is `Remark.Direction.RangeFormatStyle`. ```swift static var range: Remark.Direction.RangeFormatStyle { get } ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/observationtype/init%28from%3A%29 Initializes a Remark.ObservationType instance from a decoder, conforming to the Decodable protocol. ```APIDOC ## init(from:) ### Description Initializes a new instance of Remark.ObservationType from the provided decoder. This method is inherited from RawRepresentable and is available when the type conforms to Decodable and the RawValue is a String. ### Method Initializer ### Parameters #### Path Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ### Request Example ```swift init(from decoder: any Decoder) throws ``` ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/metar/issuance-swift.enum/init%28from%3A%29 This initializer is inherited from RawRepresentable.init(from:) and is available when the type conforms to Decodable and its RawValue is String. ```APIDOC ## init(from:) ### Description Initializes the object from a decoder. This method is inherited from `RawRepresentable.init(from:)`. ### Method `init(from: any Decoder) throws` ### Availability Available when `Self` conforms to `Decodable` and `RawValue` is `String`. ``` -------------------------------- ### SwiftMETAR Remark windDataEstimated Case Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/winddataestimated Use this case to represent situations where wind data is estimated. No specific setup or imports are required beyond the SwiftMETAR library itself. ```swift case windDataEstimated ``` -------------------------------- ### SwiftMETAR Remark SensorType freezingRain Case Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/sensortype/freezingrain Use this case to represent that the freezing rain accumulation sensor is inoperative. No setup or imports are required for this specific case. ```swift case freezingRain ``` -------------------------------- ### init(from:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/condition/init%28from%3A%29 Initializes a Condition object from a decoder, conforming to the Decodable protocol. ```APIDOC ## init(from:) ### Description Initializes a new instance of the object from the provided decoder. This method is inherited from the Decodable protocol. ### Method Initializer ### Parameters #### Parameters - **decoder** (any Decoder) - Required - The decoder to read data from. ``` -------------------------------- ### SwiftMETAR: Case Showers for Observed Precipitation Type Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/observedprecipitationtype/showers Represents the 'showers' condition for observed precipitation type. This is a direct enum case and requires no additional setup. ```swift case showers ``` -------------------------------- ### FormatStyle Implementation Methods Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/remark/formatstyle/formatstyle-implementations A collection of static and instance methods used for configuring format styles for various data types. ```APIDOC ## FormatStyle Implementations ### Instance Methods - **locale(Locale) -> Self**: Sets the locale for the format style. ### Type Methods - **currency(code: String) -> Self**: Creates a currency format style. - **list(memberStyle: MemberStyle, type: ListType, width: Width) -> Self**: Creates a list format style with specific member styling. - **measurement(width: UnitWidth, usage: MeasurementFormatUnitUsage, hidesScaleName: Bool, numberFormatStyle: FloatingPointFormatStyle?) -> Self**: Creates a measurement format style for temperature units. - **measurement(width: UnitWidth, usage: MeasurementFormatUnitUsage, numberFormatStyle: FloatingPointFormatStyle?) -> Self**: Creates a generic measurement format style. ``` -------------------------------- ### currency(code:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/remark/sensortype/formatstyle/currency%28code%3A%29-j5nd Documentation for the static currency formatting method used in SwiftMETAR. ```APIDOC ## static func currency(code:) ### Description Creates a currency format style for a given currency code. ### Method Static Function ### Parameters #### Parameters - **code** (String) - Required - The currency code to use for formatting. ### Signature `static func currency(code: String) -> Self where Self == FloatingPointFormatStyle.Currency, Value : BinaryFloatingPoint` ### Availability - iOS 15.0+ - macOS 12.0+ - tvOS 15.0+ - watchOS 8.0+ ``` -------------------------------- ### Remark.VisibilitySource.tower Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/visibilitysource/tower Documentation for the tower visibility source case in SwiftMETAR. ```APIDOC ## Remark.VisibilitySource.tower ### Description Visibility observed from the control tower. ### Definition ```swift case tower ``` ``` -------------------------------- ### SwiftMETAR windshearConditions Property Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/taf/group/windshearconditions Use this boolean property to check if windshear conditions are reported in the METAR data. No specific setup or imports are required beyond the SwiftMETAR library. ```swift var windshearConditions: Bool ``` -------------------------------- ### SwiftMETAR LowCloudType cuHumFra Case Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/lowcloudtype/cuhumfra Use this case to represent Cumulus humilis/fractus of dry weather predominating. No specific setup or imports are required beyond the SwiftMETAR library. ```swift case cuHumFra ``` -------------------------------- ### init(rawValue:) Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/middlecloudtype/init%28rawvalue%3A%29 Initializes a MiddleCloudType instance from a raw string value. ```APIDOC ## init(rawValue:) ### Description Initializes a new instance of MiddleCloudType from a provided raw string value. This is inherited from RawRepresentable. ### Method Initializer ### Parameters #### Request Body - **rawValue** (String) - Required - The raw string value to initialize the MiddleCloudType. ``` -------------------------------- ### csPartial Case for Cirrostratus Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark/highcloudtype/cspartial Use this case when Cirrostratus clouds are present but not invading or fully covering the sky. No specific setup or imports are required beyond the SwiftMETAR library. ```swift case csPartial ``` -------------------------------- ### format(_:) Method Source: https://riscfuture.github.io/SwiftMETAR/documentation/metarformatting/swiftmetar/remark/highcloudtype/formatstyle/format%28_%3A%29 Documentation for the format(_:) instance method used to format Remark.HighCloudType values. ```APIDOC ## format(_:) ### Description Formats a Remark.HighCloudType value into a string representation. ### Method Instance Method ### Parameters - **value** (Remark.HighCloudType) - Required - The high cloud type value to format. ### Response - **String** - The formatted string representation of the high cloud type. ``` -------------------------------- ### Default Implementations and Conformance Source: https://riscfuture.github.io/SwiftMETAR/documentation/swiftmetar/remark Details default implementations and protocols conformed to by the Remark structure. ```APIDOC ## Default Implementations Equatable Implementations ## Relationships ### Conforms To * `Swift.Decodable` * `Swift.Encodable` * `Swift.Equatable` * `Swift.Sendable` * `Swift.SendableMetatype` ```