This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import iris | |
spherical_crs = iris.coord_systems.GeogCS(semi_major_axis=6367470) | |
ellipsoid_crs = iris.coord_systems.GeogCS(semi_major_axis=6378137.0, semi_minor_axis=6356752.314140356) | |
lambert_azimuthal_crs = iris.coord_systems.LambertAzimuthalEqualArea( | |
latitude_of_projection_origin=54.9, | |
longitude_of_projection_origin=-2.5, | |
false_easting=0.0, false_northing=0.0, | |
ellipsoid=ellipsoid_crs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
this was hacked together sorry if it doesn't work... let me know :) | |
gdal + iris are best installed with conda | |
gdal is used for a neat trick to read the grib array straight into memory | |
that's not strictly necessary - if you wrote the data to a temp file you | |
could probably use iris-grib instead. | |
If you're using this seriously set your chunk size with care. e.g. if you | |
create a big cube with, say, 1x1x2560x1920 chunks, then try to pull 1 point from 33 chunks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0", | |
"response": { | |
"outputSpeech": { | |
"type": "SSML", | |
"ssml": "<speak> <say-as interpret-as=\"interjection\">dun dun dun.</say-as> Check out the big brains over here. Are you ready to begin? </speak>" | |
}, | |
"directives": [ | |
{ | |
"type": "Display.RenderTemplate", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"response":{ | |
"outputSpeech":{ | |
"type":"PlainText", | |
"text":"In Devon there is an amber weather warning for snow. The weather forecast for Exeter is cloudy and is highly likely to remain dry. There will be a high of 20 degrees Celcius and a low of 16. Would you like to hear more?" | |
}, | |
"card":{ | |
"type":"Standard", | |
"title":"Severe Weather Warnings for Devon", | |
"text":"An amber weather warning for snow has been issued where heavy snow is likely to affect many areas and bring severe disruption to travel.\n\nPlease see the Met Office website for further details.", | |
"image":{ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.