Programma trasformazione da volgrid6d a volgrid6d Legge grib da un file e li organizza in un vettore di strutture volgrid6d mettendoli a disposizione per eventuali elaborazioni; vengono poi riesportati a un file grib
28 integer :: ier,gaid_template
29 type(l4f_handle) :: category
31 character(len=512):: a_name
32 type(
volgrid6d),
pointer :: volgrid(:),volgrid_out(:)
33 type(transform_def) :: trans
36 call l4f_launcher(a_name,a_name_force=
"demo5")
42 category=l4f_category_get_handle(a_name//
".main")
46 call import (volgrid,filename=
"../data/in.grb",categoryappend=
"volume letto")
84 call init(trans, trans_type=
"zoom",sub_type=
"coord", &
85 ilon=-10.d0,ilat=40.d0,flon=10.d0,flat=50.d0,&
86 categoryappend=
"trasformation")
89 call transform(trans, volgrid6d_in=volgrid, volgrid6d_out=volgrid_out,clone=.true.,categoryappend=
"trasforma")
91 call display(volgrid_out(1)%griddim)
95 if (
associated(volgrid))
call delete(volgrid)
102 call export (volgrid_out,filename=
"out.grb",categoryappend=
"exportazione")
106 if (
associated(volgrid_out))
call delete(volgrid_out)
109 call l4f_category_delete(category)