HMC or HMR to DV2 data file converter

Please select tide file from your computer:
Internal path for surveydata.tgz file: (e.g. eemszinker/tid)
Use tide location in file name:
Offset to chart datum [metres.decimal]:
Offset to local (on board pc) time [hours]:

Your settings are stored in a cookie on your pc and kept for 2592000 seconds (which is 30 days).

The file should be ASCII HMC data with the following format. Tidal data is expected in fixed columns as shown below the example. For the HMC data any data above the first line with asterixes (******) of the example is disgarded. Any data after the first blank line below (or in) the table is also disgarded.
HMCHMR
              ************************************     van: vr 14-apr-2006 09:00
              **  De Ruyter Platen  - forecast  **     tot: zo 16-apr-2006 11:00
              ************************************    blad:              1 van 1
                                                      

RUYT WTc6 1 [cm]
Forecast RUYT

                 METz     :00      :10      :20      :30      :40      :50
vr 14-apr-2006 09:00       -8       -8       -8       -9      -10      -10
               10:00      -10      -10       -9       -8       -6       -4
               11:00       -3       -2       -1       -1       -2       -4
                 .          .        .        .        .        .        .
                 .          .        .        .        .        .        .
                 .          .        .        .        .        .        .
               23:00        8        9        9        8        7        6
za 15-apr-2006 00:00        4        2        1       -1       -3       -4
               01:00       -6       -8       -9      -10      -10      -10
                 .          .        .        .        .        .        .
                 .          .        .        .        .        .        .
                 .          .        .        .        .        .        .
                 .          .        .        .        .        .        .


1 2 3 4 5 6 7 8 012345678901234567890123456789012345678901234567890123456789012345678901234567890 vr 14-apr-2006 09:00 -8 -8 -8 -9 -10 -10
20060418 1200    -72.0000    -66.0000
20060418 1210    -85.0000    -78.0000
20060418 1220    -96.0000    -89.0000
20060418 1230   -107.0000    -98.0000
20060418 1240   -117.0000   -108.0000
20060418 1250   -125.0000   -117.0000
20060418 1300   -134.0000   -126.0000
20060418 1310   -141.0000   -133.0000
20060418 1320   -147.0000   -140.0000
20060418 1330   -153.0000   -145.0000
20060418 1340   -157.0000   -149.0000
20060418 1350   -160.0000   -152.0000
20060418 1400   -162.0000   -154.0000
20060418 1410   -162.0000   -156.0000
20060418 1420   -162.0000   -156.0000
20060418 1430   -161.0000   -155.0000
20060418 1440   -158.0000   -152.0000
20060418 1450   -154.0000   -149.0000
   .       .        .           .
   .       .        .           .
   .       .        .           .
   .       .        .           .


1 2 3 0123456789012345678901234567890123456 20060418 1200 -72.0000 -66.0000

Please note that use of this script is free of charge, but without any warrenty and at your own risk!