Cruisers Forum
 


Join CruisersForum Today

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

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

Hello,

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, 11:49   #2
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,250
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
Code:
 $ 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 http://www.flaterco.com/xtide/files.html as closely as
possible.  Even blank lines and comments matter.
Aborted (core dumped)
Well...you get the gist. I'm not even sure that my command line above is correct.

Thomas
__________________

__________________
cagney is offline   Reply With Quote
Old 10-05-2012, 01: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, 03:14   #4
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,778
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.

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

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
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, 03: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
Reply

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 06:15.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.