libsim Versione 8.0.0
example_alchimiav7d.f03

Sample program to demostrate the alchimia module with vol7d.

Sample program to demostrate the alchimia module with vol7d.

1program alchimiav7d
2
3USE alchimia
4USE termo
7USE vol7d_alchimia_class
10
11IMPLICIT NONE
12type(fndsv) :: vfn,vfnoracle
13character(len=10), allocatable:: mybout(:)
14type(vol7d_dballe) :: myin,myout
15character(len=255) :: filenamein,filenameout
16
17TYPE(l4f_handle) :: category
18INTEGER :: ier
19CHARACTER(len=512):: a_name
20
21!questa chiamata prende dal launcher il nome univoco
22call l4f_launcher(a_name)
23
24!init di log4fortran
25ier=l4f_init()
26
27!imposta a_name
28category=l4f_category_get_handle(a_name)
29
30call l4f_category_log(category,l4f_info,"Start")
31
32mybout = [character(len=10) :: "B12192"]
33filenamein="../data/example_temp.bufr"
34filenameout="../data/tp.bufr"
35
36call register_termo(vfn)
37
38call init(myin,filename=filenamein, file=.true., categoryappend="input")
39call init(myout,filename=filenameout, file=.true., write=.true., wipe=.true., categoryappend="output",template="generic")
40
41!CALL import(myin,var=(/"B12101","B10004"/),varkind=(/"r","r"/))
42CALL import(myin)
43
44call display(myin%vol7d)
45
46if (alchemy(myin%vol7d,vfn,mybout,myout%vol7d,copy=.true.,vfnoracle=vfnoracle) /= 0 ) then
47 print*, "I cannot make ",mybout
48
49 if (.not. shoppinglist(mybout,vfn,vfnoracle)) then
50 print*, " error shoppinglist"
51 stop 2
52 else
53 call display(compile_sl(vfnoracle))
54 stop 3
55 end if
56end if
57
58call display(vfnoracle)
59
60call display(myout%vol7d)
61call export(myout)
62
63call delete(myout)
64call delete(myin)
65
66!chiudo il logger
67call l4f_category_delete(category)
68ier=l4f_fini()
69
70end program alchimiav7d
Delete fndsv.
Definition alchimia.F03:283
show on the screen the fnds and fndsv structure
Definition alchimia.F03:278
Emit log message for a category with specific priority.
Global log4fortran destructor.
Global log4fortran constructor.
Scrittura su file.
Lettura da file.
This module defines objects and methods for generating derivative variables.
Definition alchimia.F03:214
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
Classe per la gestione delle variabili osservate da stazioni meteo e affini.

Generated with Doxygen.