31 type(l4f_handle) :: category
32 character(len=512):: a_name,filename=
"out.bufr" 34 type(transform_def) :: trans
35 TYPE(vol7d_dballe) :: v7d_import
36 type(griddim_def) :: griddim_out
38 integer :: nx=40,ny=40,component_flag=0
39 type(grid_id) :: gaid_template
40 doubleprecision :: xmin=0., xmax=30., ymin=30., ymax=60.
41 doubleprecision :: latitude_south_pole=-32.5,longitude_south_pole=10.,angle_rotation=0.
42 character(len=80) :: type=
'regular_ll',trans_type=
'inter',sub_type=
'linear' 45 call l4f_launcher(a_name,a_name_force=
"demo7")
51 category=l4f_category_get_handle(a_name//
".main")
57 call init(griddim_out,&
58 proj_type=
type,nx=nx,ny=ny, &
59 xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax, component_flag=component_flag, &
60 latitude_south_pole=latitude_south_pole,longitude_south_pole=longitude_south_pole,angle_rotation=angle_rotation, &
63 call griddim_unproj(griddim_out)
65 print*,
'grid di interpolazione >>>>>>>>>>>>>>>>>>>>' 68 gaid_template = grid_id_new(grib_api_template=
"regular_ll_sfc_grib1")
71 call init(trans, trans_type=trans_type,sub_type=sub_type, categoryappend=
"trasformation")
74 CALL init(v7d_import,file=.true.,write=.false.,filename=filename,&
75 categoryappend=
"importBUFR",format=
"BUFR")
77 call import (v7d_import,var=(/
"B12101"/),varkind=(/
"r"/))
82 call transform(trans,griddim_out, vol7d_in=v7d_import%vol7d, &
83 volgrid6d_out=volgrid(1), gaid_template=gaid_template, &
84 categoryappend=
"trasform->")
87 CALL export(volgrid,
'examp[le_v7d.grb', gaid_template=gaid_template,&
88 categoryappend=
"volume scritto")
90 if (
associated(volgrid))
call delete(volgrid)
94 call delete (v7d_import)
97 call l4f_category_delete(category)