Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Meteorology python programming (Gempak) assignment Assignment 9 1) The NAM output on the cat5 server contains a parameter named PO3M, which is the 3-hr liquid-equivalent
Meteorology python programming (Gempak) assignment
Assignment 9 1) The NAM output on the cat5 server contains a parameter named PO3M, which is the 3-hr liquid-equivalent precipitation accumulation [mm]. Note that forecast hour 0 does not contain this parameter since precipitation is yet to fall at that time. Here is your task: Write a Python program that asks the user which NAM run to analyze (e.g., 15040112; the program should add the appropriate prefix and suffix to generate a valid filename). Given this input, the program should display a map (including typical political boundaries) of the total precipitation accumulation for an entire 3.5-day NAM run (i.e., the sum of numerous 3-hr accumulations) in inches, along with a colorbar and a title. The program should also print out the maximum precipitation accumulation expected anywhere in the domain (numpy has an amax function you may find useful...). Example Session Which run of the NAM (8 digits) would you like? 17040512 A maximum of 6.04 inches of precipitation is expected to fallin the domain 8.00 170405/12Z NAM Total Precip (in) FO-F84 4.00 2.00 1.00 0.50 0.10 0.01 Assignment 9 1) The NAM output on the cat5 server contains a parameter named PO3M, which is the 3-hr liquid-equivalent precipitation accumulation [mm]. Note that forecast hour 0 does not contain this parameter since precipitation is yet to fall at that time. Here is your task: Write a Python program that asks the user which NAM run to analyze (e.g., 15040112; the program should add the appropriate prefix and suffix to generate a valid filename). Given this input, the program should display a map (including typical political boundaries) of the total precipitation accumulation for an entire 3.5-day NAM run (i.e., the sum of numerous 3-hr accumulations) in inches, along with a colorbar and a title. The program should also print out the maximum precipitation accumulation expected anywhere in the domain (numpy has an amax function you may find useful...). Example Session Which run of the NAM (8 digits) would you like? 17040512 A maximum of 6.04 inches of precipitation is expected to fallin the domain 8.00 170405/12Z NAM Total Precip (in) FO-F84 4.00 2.00 1.00 0.50 0.10 0.01
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started