Utilizing the Appropriate Code

Added on - 16 Sep 2019

  • 5


  • 1902


  • 499


  • 0


Trusted by +2 million users,
assist thousands of students everyday
Showing pages 1 to 2 of 5 pages
Working individually you will create a series of regular expressions that identify different parts composing aMETAR.METARs are reports assembled with a particular format that is easy to decode with computer systems usingregular expressions.These reports typically come in two forms: North American METARs and International METARs. Create aseries of regular expressions that decode each token of information using the North American METAR form.You can find METAR reports at the following address:http://weather.noaa.gov/weather/metar.shtml.In order to find the weather information you need to get a METAR report from any airport you wish utilizingthe appropriate code (Baltimore-Washington International is KBWI) and then apply the different regularexpressions to identify each token and eventually extract it from the report.Your homework submission should be a script that reads a single line METAR from a file named:metar.txt Your script output (to the shell screen) should include:1.the report type: either METAR or SPECI for “Special Report”2.the station identifies (four characters starting with a K)3.Day of the month and time the report was filed4.If the token ‘AUTO’ is present, you should output “This is a fully automated report”5.If the token ‘COR’ is present, you should output “This is a corrected observation”6.Wind direction and speed, wind gusting, and variable wind directions7.Visibility in statute miles8.Light, medium, or heavy rain (-RA|RA|+RA)9.Cloud Conditions: [0 or more occurrences of each of the following]a.Sky Clearb.Few Clouds <altitude>c.Scattered Clouds <altitude>d.Broken Clouds <altitude>e.Overcast Clouds <altitude>10.Temperature11.Dew Point12.Barometric Pressure13.If the token ‘TH’ is present, you should output “Thunderstorms reported in the area”
KEY TO DECODING THE U.S. METAR OBSERVATIONREPORTKEY TO DECODING A METAR REPORTMETARTYPE OF REPORTMETAR: hourly (scheduled) report; SPECI: special (unscheduled)report.KABCICAO STATION(location) IDENTIFIERFour character ICAO location identifier.121755ZDATE/TIME groupAll dates and times in UTC using a 24-hour clock; two-digit dateand four-digit time; always appended withZto indicate UTC.AUTOREPORT MODIFIERAUTO: Indicates a fully automated report with no humanintervention. It is removed when an observer logs on to the system.COR: Indicates a corrected observation. No modifier indicateshuman observer or automated system with human logged on foroversight functions.21016G24KT180V240WIND DIRECTIONAND SPEEDDirection in tens of degrees from true north (first three digits); nexttwo digits: speed in whole knots; if needed, include character as:Gusts (character) followed by maximum observed speed; alwaysappended withKTto indicate knots; 00000KT for calm; ifdirection varies by 60oor more and speed greater than 6 knots, aVariable wind direction group is reported, otherwise omitted. Ifwind direction is variable and speed 6 knots or less, replace winddirection withVRBfollowed by wind speed in knots.1SMVISIBILITYPrevailing visibility in statute miles and fractions with spacebetween whole miles and fractions; always appended withSMtoindicate statute miles; values <1/4SM reported as M1/4SM.R11/P6000FTRUNWAY VISUALRANGEA 10-minute RVR evaluation value in hundreds of feet is reportedif prevailing visibility is < or = 1 mile or RVR < or = 6000 feet;always appended withFTto indicate feet; value prefixed withMorPto indicate value is lower or higher than the reportable RVRvalue. See-RA BRWEATHERPHENOMENAPresent weather:QUALIFIERIntensity or Proximity- Light"no sign"Moderate+ HeavyVC Vicinity: but not at aerodrome; in U.S. METAR, between5SM and 10SM of the point(s) of observation.DescriptorMI ShallowBL BlowingBC PatchesSH showersPR PartialDR DriftingTS ThunderstormFZ FreezingWEATHER PHENOMENA
You’re reading a preview
Preview Documents

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Download This Document