Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct setting of localDefinitionNumber #17

Open
dcesari opened this issue Nov 22, 2023 · 1 comment
Open

Correct setting of localDefinitionNumber #17

dcesari opened this issue Nov 22, 2023 · 1 comment
Assignees

Comments

@dcesari
Copy link
Member

dcesari commented Nov 22, 2023

Nell'uscita di icon ci sono molti errori del tipo

!!! failed call to grib_set_long(  	grib_handle* h, "localDefinitionNumber", 254) !!!
!!! failed call to grib_set_long(  	grib_handle* h, "localNumberOfExperiment", 1) !!!
!!! failed call to grib_set_long(  	grib_handle* h, "localCreationDateYear", 2023) !!!
!!! failed call to grib_set_long(  	grib_handle* h, "localCreationDateMonth", 11) !!!

dovuti probabilmente al fatto che nella namelist gribout_nml vale il settaggio di default LOCALDEFINITIONNUMBER = 254 (v. NAMELIST_ICON_output_atm). Bisogna capire se è importante avere la sezione locale (possibilmente diversa a seconda del tipo di run) e in tal caso usare le definizioni eccodes giuste che, evidentemente, esistono anche per il centro 80, v. codice

=== mo_grib2_util.f90 ===
    INTEGER :: &                          ! Table: local.78.254.def
      & localDefinitionNumber             ! 252: Ensemble system incl. postprocessing
                                          ! 253: Ensemble system
                                          ! 254: Deterministic system

=== mo_grib2_util.f90 ===
   ! Add more centers, if required
    SELECT CASE (grib_conf%generatingCenter)
    CASE (78, 80, 215)

      CALL vlistDefVarIntKey(vlistID, varID, "localDefinitionNumber"  ,         &
        &                    grib_conf%localDefinitionNumber)

@dcesari
Copy link
Member Author

dcesari commented Nov 28, 2023

Nella documentazione, probabilmente obsoleta, c'è scritto che il default è -1 e non 254, possiamo provare ad usare quel valore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants