• Home
  • Blog
  • Hood College METARs Script Output Project

Hood College METARs Script Output Project

0 comments

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:

  • the report type: either METAR or SPECI for “Special Report”
  • the station identifies (four characters starting with a K)
  • Day of the month and time the report was filed
  • If the token ‘AUTO’ is present, you should output “This is a fully automated report
  • If the token ‘COR’ is present, you should output “This is a corrected observation”
  • Wind direction and speed, wind gusting, and variable wind directions
  • Visibility in statute miles
  • Light, medium, or heavy rain (-RA|RA|+RA)
  • Cloud Conditions: [0 or more occurrences of each of the following]
    • Sky Clear
    • Few Clouds <altitude>
    • Scattered Clouds <altitude>
    • Broken Clouds <altitude>
    • Overcast Clouds <altitude>
  • Temperature
  • Dew Point
  • Barometric Pressure
  • If
    the token ‘TH’ is present, you should output “Thunderstorms reported in the
    area”

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}