Skip to content

wrong start date read from a netcdf forcing file #110

@mee067

Description

@mee067

I processed CaSRv3.1 for the MRB. Trying to run it, I get this error:

The simulation starts at: ****/05/15 19:38:00.000000
Checking the start dates of the input files...
INFO: The records in 'basin_shortwave.nc' start at: ****/05/15 19:38:00.000000
INFO: The records in 'basin_longwave.nc' start at: 1979/12/30 18:00:00.000000
INFO: Skipping no records in 'basin_longwave.nc'.
INFO: The records in 'basin_rain.nc' start at: 1979/12/30 18:00:00.000000
INFO: Skipping no records in 'basin_rain.nc'.
INFO: The records in 'basin_temperature.nc' start at: 1979/12/30 18:00:00.000000
INFO: Skipping no records in 'basin_temperature.nc'.
INFO: The records in 'basin_wind.nc' start at: 1979/12/30 18:00:00.000000
INFO: Skipping no records in 'basin_wind.nc'.
INFO: The records in 'basin_pres.nc' start at: 1979/12/30 18:00:00.000000
INFO: Skipping no records in 'basin_pres.nc'.
INFO: The records in 'basin_humidity.nc' start at: 1979/12/30 18:00:00.000000
INFO: Skipping no records in 'basin_humidity.nc'.

Obviously, it read the date of the shortwave file wrongly. This is version 1.5.1. Tried 1860_ME_ZT, it read it wrongly but produced a different date/time. Not sure why it sets that date for the start of the simulation - run options start 1980 1 0 0

All forcing files are extracted the same way. Shortwave forcing happens to be the first one that MESH processes. It reads the others correctly!! applying a 7 hour time shift (MRB median time zone).

N.B. the files go from 1979-12-31 13:00 UTC, but:
double time(time) ;
time:standard_name = "time" ;
time:long_name = "Validity time" ;
time:units = "hours since 1980-01-01T12:00:00" ;
time:calendar = "gregorian" ;
time:axis = "T" ;

meaning that the first day has -ve values for the time from -23 to 0. It comes like this from CaSRv3.1 (or maybe the datatool set it like that). Could that be the problem? I guess MESH needs to read it correctly still. cdo timestamps come out correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions