1. Make a directory called ~/h597/4. Set protection so only you can read and write in this directory.
2. For this assignment, we will continue to process the monthly sea-level air pressure data taken at three sites: Iceland, Azores and Gibraltar. Recall that your Homework 3 assignment (do_nao) stripped out the first two columns of nao_ice.dat and (nao_azo.dat or nao_gib.dat) and calculated the NAO indices for these two columns. Remember the NAO index is the normalized difference between the air pressures.
3. You should start with the solution for Homework 3, rename it: "do_nao_final".
4. Everything is the same as in Homework 3, except for this assignment, the user will input which month they want to plot, or if they want to "quit".
5. I have created the solution for you to try out. You will not be able to copy it or edit it, you can only execute it. It is: ~h597/bin/do_nao_final. Change into the ~h597/bin directory and then run it to see what your program should do.
6. Notice that the title of the plot changes depending on what month you plot. The Y-axis also changes depending on whether you plot the Azores or the Gibraltar data. You need to edit your xvgr parameter file 'on-the-fly' depending on what the user inputs. I recommend using 'sed' or 'ex' to do this.
7. Your script should be well-commented and robust. Make sure you test it out with bad data. I will test it when I grade it. Please turn in your xvgr parameter file also. Name is whatever you want. Good luck!
9. turnin hw4 do_nao_final parameter_file