NetCDF Error
Posted: Fri Nov 06, 2020 10:56 am
I am currently working with the NetCDF version of the Raven-HYPR model. The model is running successfully with station based forcing data. However, when I am switching in to NetCDF forcing data, it is showing the following error message-
#------------------ Error Message --------------------------
Exiting Gracefully: CForcingGrid::ForcingGridInit: time unit string is not in the format '[days/hours/...] since YYYY-MM-DD HH:MM:SS +0000' !
Error Type: Bad input data
#---------------------------------------------------------------------
Clearly, I didn’t process the forcing data correctly. Here is the bash script that I used to process the NetCDF forcing data from hourly WFDE5-GEM-CaPA reanalysis data-
#$ -S /bin/bash
cdo mulc,3600 basin_rain.nc Temp1.nc
cdo daysum Temp1.nc Temp2.nc
cdo settaxis,1979-01-01,07:00:00,1day Temp2.nc Daily_Avg_Precip.nc
cdo dayavg basin_temperature.nc Daily_Avg_Temperature_K.nc
cdo addc,-273.16 Daily_Avg_Temperature_K.nc Temp3.nc
cdo settaxis,1979-01-01,07:00:00,1day Temp3.nc Daily_Avg_Temperature_C.nc
rm Temp*.nc
echo ======== E N D =============================
What am I doing wrong here? For the convenience-here are some of the important portions of the .rvi and .rvt files-
#------------------- .rvi ---------------------
# Simulation parameters
:StartDate 1990-10-01 07:00:00
:EndDate 2016-10-01 07:00:00
:TimeStep 24:00:00
#------------------- .rvt ---------------------
# Gridded inputs
:GriddedForcing PRECIP
:ForcingType PRECIP
:FileNameNC Daily_Avg_Precip.nc
:VarNameNC pr
:DimNamesNC lon lat time
:RedirectToFile GriddedForcings.txt
:EndGriddedForcing
:GriddedForcing TEMP_AVE
:ForcingType TEMP_AVE
:FileNameNC Daily_Avg_Temperature_C.nc
:VarNameNC tas
:DimNamesNC lon lat time
:RedirectToFile GriddedForcings.txt
:EndGriddedForcing
#Hydrometric Gauges
:RedirectToFile Wood_River_LaflecheObservedFlow.rvt
#-----------------------------------------------------------------------
#------------------ Error Message --------------------------
Exiting Gracefully: CForcingGrid::ForcingGridInit: time unit string is not in the format '[days/hours/...] since YYYY-MM-DD HH:MM:SS +0000' !
Error Type: Bad input data
#---------------------------------------------------------------------
Clearly, I didn’t process the forcing data correctly. Here is the bash script that I used to process the NetCDF forcing data from hourly WFDE5-GEM-CaPA reanalysis data-
#$ -S /bin/bash
cdo mulc,3600 basin_rain.nc Temp1.nc
cdo daysum Temp1.nc Temp2.nc
cdo settaxis,1979-01-01,07:00:00,1day Temp2.nc Daily_Avg_Precip.nc
cdo dayavg basin_temperature.nc Daily_Avg_Temperature_K.nc
cdo addc,-273.16 Daily_Avg_Temperature_K.nc Temp3.nc
cdo settaxis,1979-01-01,07:00:00,1day Temp3.nc Daily_Avg_Temperature_C.nc
rm Temp*.nc
echo ======== E N D =============================
What am I doing wrong here? For the convenience-here are some of the important portions of the .rvi and .rvt files-
#------------------- .rvi ---------------------
# Simulation parameters
:StartDate 1990-10-01 07:00:00
:EndDate 2016-10-01 07:00:00
:TimeStep 24:00:00
#------------------- .rvt ---------------------
# Gridded inputs
:GriddedForcing PRECIP
:ForcingType PRECIP
:FileNameNC Daily_Avg_Precip.nc
:VarNameNC pr
:DimNamesNC lon lat time
:RedirectToFile GriddedForcings.txt
:EndGriddedForcing
:GriddedForcing TEMP_AVE
:ForcingType TEMP_AVE
:FileNameNC Daily_Avg_Temperature_C.nc
:VarNameNC tas
:DimNamesNC lon lat time
:RedirectToFile GriddedForcings.txt
:EndGriddedForcing
#Hydrometric Gauges
:RedirectToFile Wood_River_LaflecheObservedFlow.rvt
#-----------------------------------------------------------------------