|
|
◆ gridinfo_init()
| subroutine gridinfo_init |
( |
type(gridinfo_def), intent(out) |
this, |
|
|
type(grid_id), intent(in), optional |
gaid, |
|
|
type(griddim_def), intent(in), optional |
griddim, |
|
|
type(datetime), intent(in), optional |
time, |
|
|
type(vol7d_timerange), intent(in), optional |
timerange, |
|
|
type(vol7d_level), intent(in), optional |
level, |
|
|
type(volgrid6d_var), intent(in), optional |
var, |
|
|
logical, intent(in), optional |
clone, |
|
|
character(len=*), intent(in), optional |
categoryappend |
|
) |
| |
Constructor, it creates a new instance of the object.
All the additional parameters are optional and they will be initialised to the corresponding missing value if not provided.
- Parametri
-
| [out] | this | object to be initialized |
| [in] | gaid | identificator of the grid to be described |
| [in] | griddim | grid descriptor |
| [in] | time | time dimension descriptor |
| [in] | timerange | timerange (forecast, analysis, statistically processed) dimension descriptor |
| [in] | level | vertical level dimension descriptor |
| [in] | var | physical variable dimension descriptor |
| [in] | clone | if provided and .TRUE., the gaid will be cloned and not simply copied into the gridinfo object |
| [in] | categoryappend | append this suffix to log4fortran namespace category |
Definizione alla linea 702 del file gridinfo_class.F90.
705 IF (editionnumber == 1) THEN 707 CALL code_referencetime(this) 709 ELSE IF (editionnumber == 2 ) THEN 711 IF (timerange%p1 >= timerange%p2) THEN 712 CALL code_referencetime(this) 713 ELSE IF (timerange%p1 == 0) THEN 715 CALL getenv( 'LIBSIM_G2COSMO_BEHAVIOR', env_var) 716 g2cosmo_behavior = len_trim(env_var) > 0 717 CALL grib_get(gaid, 'centre',centre) 718 IF (g2cosmo_behavior .AND. centre == 78) THEN 719 CALL code_referencetime(this) 721 CALL code_referencetime(this-timedelta_new(sec=timerange%p2)) 724 CALL l4f_log( l4f_error, 'Timerange with 0>p1>p2 cannot be exported in grib2' 730 CALL l4f_log(l4f_error, 'GribEditionNumber '//t2c(editionnumber)// ' not supported' 737 SUBROUTINE code_referencetime(reftime) 738 TYPE(datetime), INTENT(in) :: reftime 745 READ(date_time(:8), '(I8)')date 746 READ(date_time(9:12), '(I4)')time 750 END SUBROUTINE code_referencetime 752 END SUBROUTINE time_export_gribapi 755 SUBROUTINE level_import_gribapi(this, gaid) 756 TYPE(vol7d_level), INTENT(out) :: this 757 INTEGER, INTENT(in) :: gaid 759 INTEGER :: EditionNumber,level1,l1,level2,l2 760 INTEGER :: ltype,ltype1,scalef1,scalev1,ltype2,scalef2,scalev2 764 if (editionnumber == 1) then 766 call grib_get(gaid, 'indicatorOfTypeOfLevel',ltype) 767 call grib_get(gaid, 'topLevel',l1) 768 call grib_get(gaid, 'bottomLevel',l2)
|