Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#561 closed task (fixed)

Adding requested date & time to the bgr file DTocc structure [0.5 d]

Reported by: Ian Culverwell Owned by: Ian Culverwell
Priority: normal Milestone: ROPP9.1 carry over
Component: ropp_io Version: 9.0
Keywords: Cc:

Description

Change history (3)

comment:1 by Ian Culverwell, 5 years ago

Seems to work out OK. Changes

 occ_id =
  "BG_99999999999999_UNKN_U999_UNKN" ;

 start_time = 0 ;

 year = 9999 ;

 month = 99 ;

 day = 99 ;

 hour = 99 ;

 minute = 99 ;

 second = 99 ;

 msec = 9999 ;

 time = 0 ;

to

 occ_id =
  "BG_20121001000000_UNKN_U999_UNKN" ;

 start_time = 402364803 ;

 year = 2012 ;

 month = 10 ;

 day = 1 ;

 hour = 0 ;

 minute = 0 ;

 second = 0 ;

 msec = 0 ;

 time = 402364803 ;

in the standard output file ropp_io/tests/fc_20121001000000_T+6.nc, which is not generated with an obs file but uses -date 20121001 as a command line option. (Oct 2012 is about 13 years * 3e7 secs/year ~ 4e8 secs since 01/01/2000.)

comment:2 by Ian Culverwell, 5 years ago

Resolution: fixed
Status: newclosed

Committed change at r6017. Note that I include a check that data_obs%dtocc%msec is in range before setting msec_in equal to it. This because I use msec_in in the calculation of the Julian day of the 'observation time', against which the Julia day of the extracted background profile is compared.

Closing ticket.

comment:3 by Ian Culverwell, 5 years ago

(While we're here, set ROdata%DTocc%Msec to 9999, rather than the valid figure of 999, in ropp_io/ropp/ropp_io_free.f90 at r6019. This then matches the default in ropp_io/ropp/ropp_io_types.f90.)

Note: See TracTickets for help on using tickets.