You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
import pyproj
p = pyproj.Proj("+proj=laea +lon_0=-2.5 +lat_0=54.9 +x_0=0.0 +y_0=0.0 +ellps=GRS80")
# lon, lat = p(x, y, inverse=True)
lon, lat = p(-36000, -158000, inverse=True)
print (lat, lon)
The text was updated successfully, but these errors were encountered:
AlexHilson
changed the title
Add for working with Lambert Azimuthal projection (UKV, MOGREPS-UK)
Add examples for working with Lambert Azimuthal projection (UKV, MOGREPS-UK)
Jun 18, 2020
The following is written from memory and untested:
importiris# load dataglobal_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 interestglobal_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 #19 (comment)
The text was updated successfully, but these errors were encountered: