Date: Thu, 28 Mar 2024 23:35:33 +0000 (UTC) Message-ID: <1285667248.44679.1711668933724@confluence-0.confluence.confluence.svc.cluster.local> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_44678_564669435.1711668933724" ------=_Part_44678_564669435.1711668933724 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Download source and data
#Metview = Macro # **************************** LICENSE START *****************************= ****** #=20 # Copyright 2019 ECMWF. This software is distributed under the terms # of the Apache License version 2.0. In applying this license, ECMWF does = not # waive the privileges and immunities granted to it by virtue of its statu= s as # an Intergovernmental Organization or submit itself to any jurisdiction. #=20 # ***************************** LICENSE END ******************************= ****** #=20 # read bufr file bd =3D read("synop.bufr") # define observation plotting obsp =3D mobs( obs_distance_apart : 1.5, obs_size : 0.25, obs_ring_size : 0.2 ) # define land-sea shading coast =3D mcoast( map_coastline_land_shade : "on", map_coastline_land_shade_colour : "grey", map_coastline_sea_shade : "on", map_coastline_sea_shade_colour : "RGB(0.7903,0.8438,0.943)", map_grid_colour : "charcoal", map_grid_longitude_increment : 10 ) # define map view =3D geoview( map_area_definition : "corners", area : [30,-16,75,45], coastlines : coast ) # define the output plot file setoutput(pdf_output(output_name : 'synop_map')) # generate plot plot(view, bd, obsp)
# ******= ********************** LICENSE START *********************************** #=20 # Copyright 2019 ECMWF. This software is distributed under the terms # of the Apache License version 2.0. In applying this license, ECMWF does = not # waive the privileges and immunities granted to it by virtue of its statu= s as # an Intergovernmental Organization or submit itself to any jurisdiction. #=20 # ***************************** LICENSE END ******************************= ****** #=20 import metview as mv # read bufr file bd =3D mv.read("synop.bufr") # define observation plotting obsp =3D mv.mobs( obs_distance_apart =3D 1.5, obs_size =3D 0.25, obs_ring_size =3D 0.2 ) # define land-sea shading coast =3D mv.mcoast( map_coastline_land_shade =3D "on", map_coastline_land_shade_colour =3D "grey", map_coastline_sea_shade =3D "on", map_coastline_sea_shade_colour =3D "RGB(0.7903,0.8438,0.943)", map_grid_colour =3D "charcoal", map_grid_longitude_increment =3D 10 ) # define map view =3D mv.geoview( map_area_definition =3D "corners", area =3D [30,-16,75,45], coastlines =3D coast ) mv.setoutput(mv.pdf_output(output_name =3D 'synop_map')) # generate plot mv.plot(view, bd, obsp)