-
Notifications
You must be signed in to change notification settings - Fork 13
Shapefile area averaging example #1
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
Comments
https://github.com/dkillick/iris_example_code/blob/master/area_weights.ipynb#L18 I wouldn't go into detail of which iris Cube methods in the introduction. I think the introduction should just be short and sweet about what were about to help the user achieve.
I would simply this to: Might it be worth adding a very brief sentence in the intro to explain what a shapefile is? If I were instructed to make use of shapefiles by my group and found this example, it might give me the right footing if it were explained to me what shapefiles are and common sources of where they come from (and very common situation for using them). ... actually reading on, you have given example usage! |
https://github.com/dkillick/iris_example_code/blob/master/area_weights.ipynb#L34
There is only one grid in the image, simply say 'In the image, the cubes cells represented as a grid is shown, where the blue line...'
I would change to: |
https://github.com/dkillick/iris_example_code/blob/master/area_weights.ipynb#L50
To: OR: |
https://github.com/dkillick/iris_example_code/blob/master/area_weights.ipynb#L120
The iris.analysis function that we will use to calculate the area weights... -> Calculating the geometry weights will require known bounds to our grid cells so if either of our cube's lateral coordinates are not bounded, we use the guess_bounds method to set assume appripriate bounds on each lateral coordinate. |
https://github.com/dkillick/iris_example_code/blob/master/area_weights.ipynb#L150 Here the shapefile is specified and read using functions built into cartopy.io. The UK's geometry is determined by iterating over all records contained within the shapefile, choosing that where attribute (you mention these attribute keys depending on the shapefile, but I think it would be good to emphasise that it not due to what vector data the shapefile contains, but what attributes whoever wrote it chose to describe this data) This Natural Earth shapefile
#.1. where the former returns a generator of geometries, while the later returns a generator of records. |
https://github.com/dkillick/iris_example_code/blob/master/area_weights.ipynb#L166 [5] is duplicated within [6] |
https://github.com/dkillick/iris_example_code/blob/master/area_weights.ipynb#L258 'in an' -> within the
|
https://github.com/dkillick/iris_example_code/blob/master/area_weights.ipynb#L295
change to: |
Might be useful to show printing the cube with 0, 10, 50, 100% weights acceptance (i.e. use the calculated weights to determine a mask). Gives a good visual image of the concept for them. |
Is the image you have an actual plot or just representative? |
@cpelley Review actions... actioned! |
Thanks @dkillick |
@dkillick I don't see a commit with any changes which would reflect the discussion above. I have created a PR to reflect the changes I would suggest. |
@cpelley that would be because I had to leave before I could commit the changes! I will do that and then probably close your PR... |
Correcting hyperlinks to IPy notebooks for SciTools repo
Reviewing example
The text was updated successfully, but these errors were encountered: