How to use lfi2grb and lfi2v5d ?

lfi2grb allows to convert FM file in GRIB format and lfi2v5d in Vis5D format. All that is typed on keyboard is saved in dirconv.grb or dirconv.v5d file, it can be appended and used as input (after renaming it) for the next call of the tool (e.g. mv dirconv.grb dirgrb ; lfi2grb < dirgrb).

Example of lfi2grb use to convert onto a GRIB file with horizontal and vertical interpolations in P levels:
- ENTER FM synchronous FILE NAME (without .lfi) ?
CEXP.1.CSEG.001d (the input file must be splitted in .des and .lfi)
- ENTER REFERENCE DATE (MNH for MNH DATE)
MNH warning : this answer isn't saved in dirconv.grb
- Horizontal interpolation to lat-lon regular grid? (Y/y/O/o/N/n)
y
- Type of interpolation? NEARest-neighbour (default) or BILInear
NEAR
- NSWE target domain bounds (in degrees)?
55. 35. -20. 10.
- Vertical grid: type K or P ?
P
- Type of vertical grid: given by linear FUNCTN (default) or MANUALly ?
FUNCTN
- Enter number of P levels ?
5
- Values of the 5 P levels (hPa, from bottom to top):
1000. 850. 700. 500. 300.
- Enter 3D variables to CONVERT (1/1 line, end by END):
MesoNH field name, grib parameter indicator
UM 33
- next 3D field or END ?
VM 34
- next 3D field or END ?
END
- Enter 2D variables to CONVERT (1/1 line, end by END):
MesoNH field name, grib parameter indicator, eventually level indicator and level value
T2M 13 105 2
- next 2D field or END ?
THM_K_2 13
- next 2D field or END ?
END
2 fields (3D), and 2 fields (2D) written in CEXP.1.CSEG.001d.GRB

Example of lfi2v5d use to convert onto a Vis5D file with vertical interpolation in Z levels:
- ENTER FM synchronous FILE NAME (without .lfi) ?
CEXP.1.CSEG.001 - the input file must be splitted in .des and .lfi
- ENTER REFERENCE DATE (MNH for MNH DATE)
MNH warning : this answer isn't saved in dirconv.v5d
- Verbosity level ?
5
- File 2D (xz): L2D=T or F ?
F
- Vertical grid: type K,Z or P ?
Z
- Type of vertical grid: given by linear FUNCTN (default) or MANUALly ?
FUNCTN
- Vertical grid: min, max, int (m for Z, hPa for P)?
1500 9000 3000
- Enter 3D variables to CONVERT (1/1 line, end by END):
THM
- next 3D field or END ?
POVOM
- next 3D field or END ?
END
- Enter 2D variables to CONVERT (1/1 line, end by END):
ZS
- next 2D field or END ?
END
2 fields (3D), and 1 fields (2D) written in CEXP.1.CSEG.001d.V5D

























TANGUY Gaelle 2009-09-23