Open AlexHilson opened 4 years ago
Iris regridding docs are at https://scitools.org.uk/iris/docs/latest/userguide/interpolation_and_regridding.html. If the Global data works for you but the UKV data doesn't, this would be one easy method of translating the UKV grid into the Global grid.
The following is written from memory and untested:
import iris
# load data
global_cube = iris.load_cube('global_data.nc')
uk_cube = iris.load_cube('uk_data.nc')
# subset global cube so that it only contains data in the UK area of interest
global_subset = global_cube.intersection(longitude=(-2, 5), latitude=(-50, 60))
result = uk_cube.regrid(global_subset, iris.analysis.Linear)
Code along the lines of the following can be used to turn the lambert azimuthal x / y co-ordinates into lat/lon. It'd be good to get a full example up to show one way of working with regional UK model data.
53.47926025120268 -3.0422171310489534
Originally posted by @boristyukin in https://github.com/MetOffice/aws-earth-examples/issues/19#issuecomment-643481826