Question: Modify the map-mapking program from Lab 4 to create a map that outlines the coastline. Your program should create a new image, called coast.pn with

Modify the map-mapking program from Lab 4 to create a map that outlines the coastline. Your program should create a new image, called coast.pn with the pixels colored as follows: o If the clevation is less than oroqual to 0, color the pixc] 50% blue (and () red and 0% green). If the elevation is exactly 1 ' color the pixel 75% red, 75% green, and 75% blue Otherwise, the pixel should be colored 50% red, 50% green, and 50% blue Your resulting map should look likc: and be saved to a file called coast.png Note: before submitting your program for grading, remove the commands that show the image (i.e. the ones that pop up the graphics window with the image). The program is graded on a server on the cloud and does not have a graphics window. so, the plt.show() commands will give an error. I the files your program produces are cormpared pixel-by-pixel to lhe answer to check for correctness Instead
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
