Convtime
The Convtime procedure converts a standard year/month/day/hour/minute time into the minute timestamp used in the SAMOS Ship NetCDF. These codes were developed during WOCE and are available in C, FORTRAN, IDL, and Perl source. The timestamp is the number of minutes since 01-01-1980 00:00 UTC.
Input
| Variable | Lower Bound | Upper Bound |
|---|---|---|
| yr | 1980 | - |
| mon | 1 | 12 |
| day | 1 | 31 |
| hr | 0 | 23 |
| min | 0 | 59 |
Output
| Variable | Lower Bound | Upper Bound |
|---|---|---|
| timestamp | 0 | MAX_INT |
Invtime
The Invtime procedures convert the minute timestamp used in the SAMOS Ship NetCDF back into a standard year/month/day/hour/minute time. These codes were developed during WOCE and are available in C, FORTRAN, IDL, and Perl source. The timestamp is the number of minutes since 01-01-1980 00:00 UTC.Input
| Variable | Lower Bound | Upper Bound |
|---|---|---|
| timestamp | 0 | MAX_INT |
Output
| Variable | Lower Bound | Upper Bound |
|---|---|---|
| yr | 1980 | - |
| mon | 1 | 12 |
| day | 1 | 31 |
| hr | 0 | 23 |
| min | 0 | 59 |
Program Codes
| Language | Filename |
|---|---|
| C | coapstime.h coapstime.c |
| FORTRAN | coapstime.f90 |
| IDL | coapstime.pro |
| PERL | CoapsTime.pm |