wgrib2 pr_sfc_GEFS_06oct1999_00z_d01_d35_m00.grb2
1:0:d=1999100600:APCP:surface:1 day fcst:ENS=low-res ctl
2:71544:d=1999100600:APCP:surface:2 day fcst:ENS=low-res ctl
3:142213:d=1999100600:APCP:surface:3 day fcst:ENS=low-res ctl
4:211380:d=1999100600:APCP:surface:4 day fcst:ENS=low-res ctl
5:280114:d=1999100600:APCP:surface:5 day fcst:ENS=low-res ctl
6:348933:d=1999100600:APCP:surface:6 day fcst:ENS=low-res ctl
and so on. Note, it is a daily forecast.
using wgrib2 with option -V
wgrib2 pr_sfc_GEFS_06oct1999_00z_d01_d35_m00.grb2 -V
1:0:vt=**1999100700**:surface:1 day fcst:APCP Total Precipitation [kg/m^2]:ENS=low-res ctl
ndata=65160:undef=0:mean=2.85094:min=0:max=305.2
grid_template=0:winds(N/S):
lat-lon grid:(360 x 181) units 1e-06 input WE:NS output WE:SN res 48
lat 90.000000 to -90.000000 by 1.000000
lon 0.000000 to 359.000000 by 1.000000 #points=65160
2:71544:vt=**1999100800**:surface:2 day fcst:APCP Total Precipitation [kg/m^2]:ENS=low-res ctl
ndata=65160:undef=0:mean=2.57202:min=0:max=320
grid_template=0:winds(N/S):
lat-lon grid:(360 x 181) units 1e-06 input WE:NS output WE:SN res 48
lat 90.000000 to -90.000000 by 1.000000
lon 0.000000 to 359.000000 by 1.000000 #points=65160
3:142213:vt=**1999100900**:surface:3 day fcst:APCP Total Precipitation [kg/m^2]:ENS=low-res ctl
ndata=65160:undef=0:mean=2.51068:min=0:max=295.1
grid_template=0:winds(N/S):
lat-lon grid:(360 x 181) units 1e-06 input WE:NS output WE:SN res 48
lat 90.000000 to -90.000000 by 1.000000
lon 0.000000 to 359.000000 by 1.000000 #points=65160
and so on. Note the "vt" key, which is the validation time (? maybe) has the full calendar date of the lead time date.
When I open the same file both using Nio or xarray and the pynio engine I get:
Nio file: pr_sfc_GEFS_06oct1999_00z_d01_d35_m00.grb2
global attributes:
dimensions:
forecast_time0 = 35
lat_0 = 181
lon_0 = 360
variables:
float APCP_P1_L1_GLL0 [ forecast_time0, lat_0, lon_0 ]
center : US National Weather Service - NCEP (WMC)
production_status : Operational products
long_name : Total precipitation
units : kg m-2
_FillValue : 1e+20
grid_type : Latitude/longitude
parameter_discipline_and_category : Meteorological products, Moisture
parameter_template_discipline_category_number : [1, 0, 1, 8]
level_type : Ground or water surface
level : 0
initial_time : 10/06/1999 (00:00)
float lat_0 [ lat_0 ]
long_name : latitude
grid_type : Latitude/Longitude
units : degrees_north
Dj : 1
Di : 1
Lo2 : 359
La2 : -90
Lo1 : 0
La1 : 90
float lon_0 [ lon_0 ]
long_name : longitude
grid_type : Latitude/Longitude
units : degrees_east
Dj : 1
Di : 1
Lo2 : 359
La2 : -90
Lo1 : 0
La1 : 90
**integer forecast_time0 [ forecast_time0 ]
long_name : Forecast offset from initial time
units : hours**
The grib files belong to SubX models, in particular, I refer to one of these models:
EMC/GEFS hindcast - pr_sfc_GEFS_06oct1999_00z_d01_d35_m00.grb
if I explore the data with wgrib2
and so on. Note, it is a daily forecast. using wgrib2 with option -V
and so on. Note the "vt" key, which is the validation time (? maybe) has the full calendar date of the lead time date.
When I open the same file both using Nio or xarray and the pynio engine I get:
and
more specifically, it reads the forecast time as hours
the same happens for the EMC/GEFS forecast data - so the same issue is in both the hindcast and realtime forecast data.
Any hint on how to fix this?