Imuta tuolta:
http://www.sping.com/seaclear/ softat nimeltä SeaTrace
ja SeaTrackEdit. Käytä vastaisuudessa SeaTrace ohjelmaa Seaclearin
käynnistämiseen, se nimittäin luo CSV-tiedoston jossa on 2s välein kaikki
NMEA:n yli tulevat tiedot.
SeaTrackEdit ohjelmalla voit vuorostaan tallettaa TRT-päätteisiä (seatrace)
tiedostoja TRC-muotoon. Valitettavasi TRC-tiedostoja (seaclearin track) ei
voida muuntaa TRT-muotoon (CSV). Joten se track mikä sinulla on ei
saada muunettua GPX-muotoon. Ellei sitten seaclearillä pysty jollain
gps2win (?) tai jollain muulla sen tekemään? Hmm, seaclearistä pystyy
exporttaamaan g7towin muotoon, joka on ihan asciita. Laitatko sellaisen
minulle tulemaan nini voisin tehdä gpsbabel kuvaustiedoston sitä varten?
Eli käytä vastaisuudessa tuota SeaTrace ohjelmaa niin saadaan track
talteen.
Sitten minulla on linuxin shell-scripti jolla muunnan TRT-tiedoston GPX-
muotoon, scripti on nimeltään trt2gpx.sh:
Code: Select all
#! /bin/sh
# <A9> 21 aug 06, Harald Hannelius
# this one reads a SeaTrace trt-file and spits out an GPX file
# Todo: the xml gpx-file doesn't have a <trk> or <trkseg> tag in it. Have to
# add that manually for now.
# Todo: The trt files are un-averaged. One should really do a
# moving average on the values before using them. Or just skip two of three lines?
if [ -z ${1} ] ; then
echo give input file as arg1
exit 1
else
infile="${1}"
fi
# filter, 3s average
shorten="-x simplify,count=500"
title="-x track,title=Charlotta"
newfile="`basename "$infile" .trt`.gpx"
gpsbabel -t -i xcsv,style=/home/harald/gpsbabel/seatrace.style -f "$infile" $shorten $title -o gpx -F "$newfile"
Kuten huomaat vaatii tuo että gpsbabel on asennettu. Tuo seatrace.style
tiedosto joka kuvastaa TRT-tiedoston muotoa on tuon näköinen:
Code: Select all
# Style file for gpsbabel to read SeaClear's companion SeaTrace's TRT file.
# 3 jun 08 harald, added datatype so we can filter output using gpsbabel track-filters.
# 7 Feb 06 Harald, first version
DESCRIPTION SeaTrace TRT format
DATATYPE TRACK
#
COMMA ,
FIELD_DELIMITER COMMA
RECORD_DELIMITER NEWLINE
# Look in the file seatrace.format for info on TRT files.
# first column i date (from computer)
# 20050907 15:08:12 CZ # date, from computer!!
# second column is LAT as D.D
# third column is LON as D.D
#IFIELD YYYYMMDD_TIME,"","%ld"
IFIELD GMT_TIME,"","%Y%m%d %H:%M:%S %Z"
IFIELD LAT_DECIMAL,"","%f"
IFIELD LON_DECIMAL,"","%f"