Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worksheet 3 revisions for v2 #24

Open
hsteptoe opened this issue Nov 9, 2018 · 4 comments
Open

Worksheet 3 revisions for v2 #24

hsteptoe opened this issue Nov 9, 2018 · 4 comments
Labels
enhancement paused Issues which are on hold

Comments

@hsteptoe
Copy link
Collaborator

hsteptoe commented Nov 9, 2018

To do list for changes to Worksheets 2a & 2b for v2 release.

@hsteptoe hsteptoe changed the title Changes to Worksheet 2a/b for v2 release. Worksheet 2a/b revisions for v2.0 Nov 9, 2018
@hsteptoe hsteptoe changed the title Worksheet 2a/b revisions for v2.0 Worksheet 2a/b revisions for v2 Nov 9, 2018
@hsteptoe hsteptoe added enhancement paused Issues which are on hold labels Nov 9, 2018
@hsteptoe hsteptoe added this to the v2.0 of Jupyter Notebook worksheets milestone Nov 9, 2018
@hsteptoe
Copy link
Collaborator Author

hsteptoe commented Nov 9, 2018

  • More formative assessment questions are needed, especially in 2b.
  • Do we need separate learning objectives for worksheet 2b? Or are they the same as for 2a (this is what we've currently decided)
  • Think through the purpose and learning points of 2.11 (in 2.b). Why is it useful?

@hsteptoe
Copy link
Collaborator Author

Add notebook widgets to help explore rotated poles:

import matplotlib.pyplot as plt
import cartopy.crs as ccrs
from ipywidgets import interact, interactive, fixed, interact_manual
import ipywidgets as widgets

def plotrp(pole_lat, pole_lon):
    rotated_pole = ccrs.RotatedPole(pole_longitude=pole_lon, pole_latitude=pole_lat)

    box_top = 30
    x, y = [-44, -44, 45, 45, -44], [-45, box_top, box_top, -45, -45]

    fig = plt.figure(figsize=(20,10))

    ax = fig.add_subplot(1, 2, 1, projection=rotated_pole)
    ax.stock_img()
    ax.coastlines()
    ax.plot(x, y, marker='o', transform=rotated_pole)
    ax.fill(x, y, color='coral', transform=rotated_pole, alpha=0.4)
    ax.gridlines()

    ax = fig.add_subplot(1, 2, 2, projection=ccrs.PlateCarree())
    ax.stock_img()
    ax.coastlines()
    ax.plot(x, y, marker='o', transform=rotated_pole)
    ax.fill(x, y, transform=rotated_pole, color='coral', alpha=0.4)
    ax.gridlines()
    plt.show()

# def on_button_click(a):
#     plotrp(pole_lat.value, pole_lon.value)
    
# pole_lat = widgets.IntSlider(value=45, min=0, max=90, step=1, description='Pole Latitude')
# pole_lon = widgets.IntSlider(value=180, min=0, max=360, step=1, description='Pole Longitude')
# display(pole_lat)
# display(pole_lon)

# button = widgets.Button(description="Plot")
# display(button)
# button.on_click(on_button_click)

interact_manual(plotrp, pole_lat=widgets.IntSlider(value=45, min=0, max=90, step=1, description='Pole Latitude'), 
                        pole_lon=widgets.IntSlider(value=180, min=0, max=360, step=1, description='Pole Longitude'))

@hsteptoe
Copy link
Collaborator Author

Add figure to help explain why we need to weight latitudes when finding areas averages

@hsteptoe hsteptoe changed the title Worksheet 2a/b revisions for v2 Worksheet 3 revisions for v2 Jan 15, 2019
@hsteptoe hsteptoe removed this from the v2.0 of Jupyter Notebook worksheets milestone Dec 18, 2020
@nhsavage
Copy link
Collaborator

this probably needs a review since the updates to use CORDEX data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement paused Issues which are on hold
Projects
None yet
Development

No branches or pull requests

2 participants