Programma trasformazione da vol7d a volgrid6d.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18program demo7
19
27
28implicit none
29
30integer :: ier
31type(l4f_handle) :: category
32character(len=512):: a_name,filename="out.bufr"
33type (volgrid6d),pointer :: volgrid(:)
34type(transform_def) :: trans
35TYPE(vol7d_dballe) :: v7d_import
36type(griddim_def) :: griddim_out
37
38integer :: nx=40,ny=40,component_flag=0
39type(grid_id) :: gaid_template
40doubleprecision :: xmin=0., xmax=30., ymin=30., ymax=60.
41doubleprecision :: latitude_south_pole=-32.5,longitude_south_pole=10.,angle_rotation=0.
42character(len=80) :: type='regular_ll',trans_type='inter',sub_type='linear'
43
44
45call l4f_launcher(a_name,a_name_force="demo7")
46
47
49
50
51category=l4f_category_get_handle(a_name//".main")
52
54
55allocate (volgrid(1))
56
57call 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, &
61 categoryappend=type)
62
63call griddim_unproj(griddim_out)
64
65print*,'grid di interpolazione >>>>>>>>>>>>>>>>>>>>'
67
68gaid_template = grid_id_new(grib_api_template="regular_ll_sfc_grib1")
69
70
71call init(trans, trans_type=trans_type,sub_type=sub_type, categoryappend=
"trasformation")
72
73
74CALL init(v7d_import,file=.true.,write=.false.,filename=filename,&
75 categoryappend="importBUFR",format="BUFR")
76
77call import (v7d_import,var=(/"B12101"/),varkind=(/"r"/))
78
80
82call transform(trans,griddim_out, vol7d_in=v7d_import%vol7d, &
83 volgrid6d_out=volgrid(1), gaid_template=gaid_template, &
84 categoryappend="trasform->")
85
87CALL export(volgrid,
'examp[le_v7d.grb', gaid_template=gaid_template,&
88 categoryappend="volume scritto")
89
90if (
associated(volgrid))
call delete(volgrid)
91
93
95
96
97call l4f_category_delete(category)
99
100end program demo7
Destructors of the corresponding objects.
Print a brief description on stdout.
Export griddim object to grid_id.
Constructors of the corresponding objects.
Emit log message for a category with specific priority.
Global log4fortran destructor.
Global log4fortran constructor.
Module for describing geographically referenced regular grids.
This module defines an abstract interface to different drivers for access to files containing gridded...
classe per la gestione del logging
Classe per la gestione di un volume completo di dati osservati.
classe per import ed export di volumi da e in DB-All.e
This module defines objects and methods for managing data volumes on rectangular georeferenced grids.