Cruisers Forum

Join CruisersForum Today

Thread Tools Rate Thread Display Modes
Old 09-05-2012, 03:15   #1
Registered User

Join Date: May 2012
Posts: 3
(W)Xtide harmonic constants


I've been reading a lot about this topic and I found especially interesting this thread: WXTides Stations (Lots) in OpenCPN

I would like to thank Ptizef the great work he did about this topic in Spain(which is my country) and Europe in general. The only problem is that I would like to access the data with Xtide. In order to do that I need the HARMONICS to be a .tdc file. I tried with build_tide_db on Linux put it says: Error creating data base file.

I have congen in my computer and I guess Pierre genereted this file using congen. Do you know how I could transform this HARMONICS file to a tcd file so i could read it with Xtide?

dtvc is offline   Reply With Quote
Old 09-05-2012, 10:49   #2
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,112
Re: (W)Xtide harmonic constants

I think that tcd-utils is your best bet, but probably quite a lot of problems getting there. I compiled and tried "build_tide_db", some output below
 $ build_tide_db 
tcd-utils 20120115
Usage: build_tide_db output_tcd_filename input_master_harm [input_child_harm...] [input_xml...] [input_nvo...]
thomas@escape2:~/OpenCPN_Conf/UserTCData/France $ build_tide_db france.tcd HARMONIC HARMONIC.IDX

Creating TCD file from HARMONIC

Processing file HARMONIC
build_tide_db.c line 112: failed assertion: string[0] == '#'

This program (build_tide_db) was intended to be used as a throwaway migration
utility.  As such, it was never made robust for arbitrary input.  To maximize
your chances of success, copy the formatting of the legacy harmonics file
available from as closely as
possible.  Even blank lines and comments matter.
Aborted (core dumped) get the gist. I'm not even sure that my command line above is correct.


cagney is offline   Reply With Quote
Old 10-05-2012, 00:04   #3
Registered User

Join Date: May 2012
Posts: 3
Re: (W)Xtide harmonic constants

Yeah i get the same output, the command you tried is correct, but usually you don't need the HARMONIC.IDX in order to generate the .tcd, i tried both with the same result...I tried to modify build_tide_db to debug and i found the line in which the problem is, but it seems to be a lot of small differences with the format that build_tide_db needs.

Basically I want to use this file in Xtide because I can access it from command line in order to automate some processes. So if you know another program which can read this file from comand line, it would be ok for me aswell. Maybe even wXtide but i think it doesn't have command line operations.

Than you!
dtvc is offline   Reply With Quote
Old 10-05-2012, 02:14   #4
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,493
Re: (W)Xtide harmonic constants

Anybody knows where the site GEZEITEN FISCH 2012 | Angeln an der Nordseekste <(((>< gets its data from?
It seems to be more specific than any Harmonics I have seen before.

CarCode is offline   Reply With Quote
Old 10-05-2012, 19:29   #5
Registered User
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,368
Re: (W)Xtide harmonic constants

...if you don't mind running Wine in Linux, you can use WxTide- IT can use the same kinds of files OpenCPN uses-plain text HARMONIC and Harmonic.idx's....but they needn't have those specific ("Hamonic") names. Wxtide uses a config file you can edit to load various tide sets. It's in the documentation...
HappySeagull is offline   Reply With Quote
Old 21-05-2012, 02:45   #6
Registered User

Join Date: May 2012
Posts: 3
Re: (W)Xtide harmonic constants

Yeah, thank you. That's what i'm doing and it works

dtvc is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 22:20.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.