<< compare_date Utilities dat_cal2j2k >>

scilib_geo >> Utilities > dat_cal2gpsweek

dat_cal2gpsweek

Returns the gpsweek for a given date.

Calling Sequence

[weeks, wsecs] = dat_cal2gpsweek(year, month, day [,hour, min, sec])
[weeks, wsecs] = dat_cal2gpsweek(cal)

Parameters

cal

date as vector (mx3) or (mx6)

year

year, integer (>0)

month

month, integer (0<month<=12)

day

day, Integer (0<day<=31)

hour, min, sec

Daytime in UTC [hours, minutes, seconds] (optional and experimental)

weeks

gps weeks, integer

wsecs

seconds since beginn of week, integer (experimental)

Description

This function returns the gps week of a given date (year, month, day [, daytime in UTC]).

First day of the (GPS-)week is Sunday. Beginning with 0 at 6. Januar 1980.

At 22. August 1999 the gps week reached 1024. In some cases (broadcast directly from the GPS satelite) the GPS week rollover is to take into account, beginning again with 0.

Authors


Report an issue
<< compare_date Utilities dat_cal2j2k >>