set_taxis

Function set_taxis

  Make RKS or TPS block by specifying begintime, endtime,
  timeunit and timestep.
  
  

CALL:

   S = set_taxis(S, tbegin, teind, tijdstapeenheid, tijdstap)
  
  

INPUT:

   S:               Existing RKS or TPS administrationbuffer, may be empty.
   tbegin:          Datenum with begin time.
   teind:           Datenum with end time.
   tijdstapeenheid: (Optional) String with timeunit, 
                    see DONAR Manual Part 7, section 2.9.3
   tijdstap:        (Optional) timestep in tijdstapeenheid units.
  
  

OUTPUT:

   S: Structure with RKS or TPS (reeksadministratiebuffer) with new values.
  
  

APPROACH:

   Convert Matlab datenum to DONAR date and time.
   Substitute values. Check if timeunit en timestep need to be added.
   Check if timeunit and timestep are valid
  
  

EXAMPLE:

   blok = emptyblok;
   blok.RKS=set_taxis(blok.RKS,now-1, now+1);
   blok.RKS
ans = 
    sRefvlk: ''
    lBemhgt: -999999999
    lBegdat: 20111205
    iBegtyd: 345
    sSyscod: ''
    sTydehd: ''
    iTydstp: 0
    lXcrdgs: -999999999
    lYcrdgs: -999999999
    lVakstp: -999999999
    lEnddat: 20111207
    iEndtyd: 345
    sRkssta: ''
    lBeginv: 0
    lEndinv: 0
    sVzmcod: ''
    sVzmoms: ''
    sSvzcod: ''
    sSvzoms: ''
    sSsvcod: ''
    sSsvoms: ''
    sSsscod: ''
    sSssoms: ''
    lXcrdwb: -999999999
    lYcrdzb: -999999999
    lXcrdob: -999999999
    lYcrdnb: -999999999
    lXcrdmn: -999999999
    lYcrdmn: -999999999
    lXcrdmx: -999999999
    lYcrdmx: -999999999

See also:

combineRKS
combineTPS
cmp_taxis