<jupyter_start><jupyter_text>Assignment LMT_2.1ATM 407, University of Miami* To use these Jupyter notebooks, you need to have installed the DRILSDOWN package:  https://unidata.github.io/drilsdown/ ) Activities1. Some math about it1. Load an IDV bundle1. Capture and caption a main display image1. Capture and caption a secondary display1. Capture and caption an animation  BackgroundThe primitive equations:1. Horizontal acceleration equation (F=ma):$$ \frac{D}{Dt} \vec V_h = -f \hat k \times \vec V_h - \vec \nabla_p \Phi +\vec F_r  $$or, in component form, $$ \frac{Du}{Dt} = fv  - \frac{\partial \Phi}{\partial x} +F $$$$ \frac{Dv}{Dt} = -fu - \frac{\partial \Phi}{\partial y} +G $$1. Vertical acceleration equation (aka Hydrostatic balance): $$ \frac {\partial \Phi}{\partial p} = - \alpha \equiv -\frac{1}{\rho} = \frac{RT}{p} $$1. Mass continuity: $$ 0 = \frac {\partial u}{\partial x} + \frac {\partial v}{\partial y}  + \frac {\partial \omega}{\partial p} $$1. First Law of thermodynamics: $$ \frac {D \theta}{Dt} = J/C_p \frac {\theta} {T}$$Now suppose the flow is in geostrophic balance (dV/dt=0, F=G=0). This defines the geostrophic wind:  $$ fv_g = +\frac{\partial \Phi}{\partial x}$$$$ fu_g = -\frac{\partial \Phi}{\partial y}$$      EXERCISE 1:     Take the derivative.       Express the *result* correctly in the cell below. Learn how to typeset equation from the cell above.       Exercise 1 Answer: The thermal wind is$\frac {\partial u_g}{\partial Z}$ = $\frac {\partial v_g}{\partial Z}$ =  Top   Step 2: Invoke the drilsdown extension. Then find and load the bundle in IDV.Execute the code cell below. Then, launch an IDV session and load the bundle in it. You can do this manually, or -- in the widget that pops up, search The Mapes IDV Collection for the bundle name such as *LMT_1.2*, and click the button next to it labeled **Load bundle**.      Note: please email <EMAIL> if you encounter any errors<jupyter_code>%reload_ext ipython_IDV<jupyter_output><empty_output><jupyter_text>Top      EXERCISE 3:           **Following the instructions in the Manual, answer question 1 here:** *"isolate an area where the three-layer vertical structure of blue, green, and red isosurfaces is clear. Capture an image (View > Capture > Image or use your computer’s screen capture capabilities), and describe what you see there"*            **If you need another make_image to tell the story, just duplicate the cell below**<jupyter_code># Your image 
%make_image -capture legend -caption 'Exercise 3'<jupyter_output>UsageError: Line magic function `%make_image` not found.<jupyter_text>LMT_1.2 Question 1 verbal answer: Ipsem lorem  Top      EXERCISE 4:           **Capture another image, and answer the questions below.**<jupyter_code># To use this feature, the IDV sounding display must have its ID set to this name (sounding)
# in the Display Control's Properties area. 

%make_image -capture legend<jupyter_output>UsageError: Line magic function `%make_image` not found.<jupyter_text>Exercise 4 answer: Ipsem lorem  Top       EXERCISE 5:                **Use the right mouse button to suppress (make red) all but 3 time levels in the animation, focusing on the time around or just after the time you used for Exercise 2a. Capture the animation using the cell below.**                  **Does the cold or warm air advance as you anticipated from Exercise 3a? Does the sounding show a decrease of temperature with time?**                  **What does this mean about the terms in the First Law? Is the horizontal advection term the dominant effect?**<jupyter_code>%make_movie -capture legend -caption 'Exercise 3'<jupyter_output><empty_output><jupyter_text>Exercise 3b answer: The animation shows ___. This means ___. Top      EXERCISE 4:                **       Make a new IDV Flow Display of the Thermal Wind. To do this, use the Field Selector to display Formulas-->Miscellaneous-->simple difference a-b. Select "a" to be the 3D-->Derived-->geostrophic wind, at 50000Pa (careful!), and select b to be the geostrophic wind at 850000Pa.      ****      Capture an image of your flow display (vectors, or barbs, or streamlines -- explore!) overlaid on the 700hPa temperature display.       **<jupyter_code># Your image 
%make_image -capture legend -caption 'Exercise 4'<jupyter_output>tempfile.tempdir = <KEY>'
tempfile.gettempdir() = <KEY>'<jupyter_text>EXERCISE 4:            **     What is the relationship? Does the thermal wind advect temperature?       ****       $V_{g,lower} + V_{thermal} = V_{g,upper}$ is the way we customarily speak of the thermal wind.      ****       Temperature advection by the geostrophic wind at 500 hPa is thus $(V_{g,850} + V_{thermal}) \cdot \nabla T$. What can you say about its relationship to temperature advection at 850?      **      Exercise 4 answer: Ipsem lorem Top      EXERCISE 5:                **       Activate the yellow isosurface of wind speed (the jet stream), and the cross sections displays. Deactivate the other displays. Move the cross sections to cut across today's jet stream along the west coast.       ****       Take a view from the south (using the little cube with the blue south face), and adjust it a little so you can see the cross section well, but also the geography.      ****       Capture an image of the cross-section with wind speed contours with a backdrop of T, and a backdrop of theta.       **<jupyter_code># Your image 
%make_image -capture legend -caption 'Exercise 5'<jupyter_output>tempfile.tempdir = '/var/folders/cx/744cq3h94zq66_v0ms6wg8m40000gn/T'
tempfile.gettempdir() = <KEY>'
{'fraction_non_alphanumeric': 0.09754348215886677, 'fraction_numerical': 0.014882553344091805, 'mean_word_length': 3.6716917922948076, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 31, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '47666', 'license': 'MIT', 'n_tokens_mistral': 1701, 'n_tokens_neox': 1580, 'n_words': 716, 'path': 'Unit2-WHch7/Notebooks/Assignment_LMT_1.2.ipynb', 'repo_name': 'ivenispita/ATM651_IntroAtmDynamics', 'size': '5717'}