Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the necessary Polar format ? #6

Closed
rgleason opened this issue Feb 27, 2015 · 16 comments
Closed

What is the necessary Polar format ? #6

rgleason opened this issue Feb 27, 2015 · 16 comments

Comments

@rgleason
Copy link

I have been able to compile the plugin now and have tried loading Polar files, but am uncertain whether the polar file format is correct. Can you advise? I have tried *.pol files and *.csv files from Weather_Routing_pi. The pol files use a Tab delimiter while the csv files used ";" semicolon delimiter.
The csv files had the tws/twd in lower case I believe.

Ptulp has modified the Polar_pi plugin to read both file types which makes life a bit easier. I wonder if his code would work with tackandlay?

@cowelld
Copy link
Owner

cowelld commented Feb 27, 2015

Send a copy of the file and I'll see if I can make some adjustments. There
isn't a standardized format for this sort of thing and I had to choose a
couple that I ran across.

----- Original Message -----
From: "Rick Gleason" notifications@github.com
To: "cowelld/tackandlay_pi" tackandlay_pi@noreply.github.com
Sent: Friday, February 27, 2015 9:30 AM
Subject: [tackandlay_pi] What is the necessary Polar format ? (#6)

I have been able to compile the plugin now and have tried loading Polar
files, but am uncertain whether the polar file format is correct. Can you
advise? I have tried *.pol files and *.csv files from Weather_Routing_pi.
The pol files use a Tab delimiter while the csv files used ";" semicolon
delimiter.
The csv files had the tws/twd in lower case I believe.


Reply to this email directly or view it on GitHub:
#6

@rgleason
Copy link
Author

Dave, Thanks very much! I am going to try to attach several here (may have to change the suffix to png, so you will have to remove it.)

cal40 pol
alexandra_polar-csv
boat_polar csv

@cowelld
Copy link
Owner

cowelld commented Feb 28, 2015

Can you just send them as attachments rather than an pseudo image at the
GitHub?

@rgleason
Copy link
Author

rgleason commented Mar 1, 2015

It accepts only images, nothing else. Oh I see the website changes the file name somehow when I try to "Save As". I can send to your email address? Is there a place where would I find that?

@rgleason
Copy link
Author

rgleason commented Mar 4, 2015

Dave
Have attached them to this forum thread (Take the doc off please)
http://www.cruisersforum.com/forums/f134/tack-and-laylines-plugin-beta-138487.html#post1764527

@cowelld
Copy link
Owner

cowelld commented Mar 6, 2015

I looked at those POL files and see some of the issues. Generally I've
restricted my POL files to having a five degree True Wind Angle increment
and a five knot wind speed increment. Those numbers will be adjusted for
POL's with different values AS LONG AS THEY ARE CONSTANT THROUGHOUT THE
FILE. In the Boat-Polar file the wind speed increments go in 2,3,4,5 knots
groups. with a 3 degree increment. Ditto for Alexandra. The 60ftmono has 1
knot and 2 degrees but that's excessive. I didn't set the array up that way.
The A-35 and Class 40 go from 2 to 60 knots by 2 and so that's also
excessive although the angles are at 5 degrees but start at 5 degrees off
the wind. Can they do that?
Generally I believe these are computer generated VPP files and so have
all that high resolution but questionable practical application. My POL
files are generated from actual sailing tracks with actual conditions and so
have a great deal of input variation. I've dropped to the five on five
"bins" to allow those variations to be averaged or maxed (users choice) in
the POL generation program.
Someone sent me the attached POL file for a Farr 40 which I also used as a
model of input. You'll see that the wind speeds and angles are not on the
five on five but are constant increments. Some of your files loaded but
obviously weren't interpreted correctly. How are you coming by these files?

----- Original Message -----
From: "Rick Gleason" notifications@github.com
To: "cowelld/tackandlay_pi" tackandlay_pi@noreply.github.com
Cc: "Dave Cowell" david.cowell@ymail.com
Sent: Tuesday, March 03, 2015 6:45 PM
Subject: Re: [tackandlay_pi] What is the necessary Polar format ? (#6)

Dave
Have attached them to this forum thread (Take the doc off please)
http://www.cruisersforum.com/forums/f134/tack-and-laylines-plugin-beta-138487.html#post1764527


Reply to this email directly or view it on GitHub:
#6 (comment)

@rgleason
Copy link
Author

rgleason commented Mar 6, 2015

Dave,
I understand the increment problem, and having excessively small increments when the actual data ranges so much, so your practical suggestions make a great deal of sense. Merging data by averaging to the constant angles makes sense. I had not actually noticed the excessively small increments of some of these files.

I was looking at the delimiters [ ";" colon] and [tab] and the various ways they seem to have the start of the first row TWA or TWA/TWS or twa or twa/tws which may be one of the other problems.

You ask where I get these files. They come from various sources:
boat_alexandra weather_routing_pi
boat_polar weather_routing_pi
A-35 I believe this is from Sailgrib (snarfed from my cell phone)
Class 40 I believe this is from Sailgrib (snarfed from my cell phone)
I am not sure how these bottom two were generated.

I have just been collecting polar files for a long time.
I have a set of excel and polar files from "Set-Sail" which are early MaxSea files.
I also a directory full of Sailgrib polars which is a cell phone grib and routing app.
I also have polars for various specific boats such as mine and hartmut's in different formats.some hand translated so they work in different programs.

For users and testing it would be very helpful to know what the requirements are for polar files and what tackandlay does with them if possible. Basically the parameters that they must meet, and how they are then interpreted.

Perhaps we should be trying to standardize this between Polar_pi, Weather_routing_pi and TackandLay_pi to eliminate problems interfacing and to reduce program work? I know Sean has made some effort to accept different types of polars and to provide prompts for what the problem might be (in weather_routing_pi) and Peter [ptulp] has also done some work on this for Polar_pi.

If it would be some help, I have uploaded some of the polar files to Opencpn Beta File Thingie
https://tgp-architects.com/files use Username:: rguser Password: rgpass
Then look under the Polar File directory there is one subdirectory with lots of polar files called
Perf_polar Files those are from the cell phone program SailGrib.

I can upload the two old Set-Sail directories of Excel and pol files as well, if that will help.
That won't get you all the polars that I have, but it covers a lot of them.

@rgleason
Copy link
Author

rgleason commented Mar 6, 2015

Sorry I was wrong the Perf_Excel and Perf_Polar directories are from Setsail [early MaxSea polars].
I thought I had downloaded the cell app SailGrib polars, but many of those are derived from my sources anyway. I've uploadeed the Perf_Excel now.

@cowelld
Copy link
Owner

cowelld commented Mar 6, 2015 via email

@rgleason
Copy link
Author

rgleason commented Mar 6, 2015

Dave, Thank you.
I will send you my email via forum PM.
This looks great. I found the Polars from Sailplan and uploaded them to Opencpn Beta File thingie these are labeled "Polars" under the "Polar_Files"
I just finish having a colonoscopy and need to get my email server and emails working first...

@rgleason
Copy link
Author

rgleason commented Mar 6, 2015

Maybe we send any polar files through a little program first that cleans them up for use in Polar_pi, TackandLay_pi and Weather_Routing_pi and save the file out as our standard version of POL? or CSV? or whatever. Then would they get saved as a different file that can be reused, or does the program just run at the startup every time?

@cowelld
Copy link
Owner

cowelld commented Mar 8, 2015

I don't want to create a Tool program. It's a lot of extra bother and
something else to manage. I'd rather just make a change to the Polar_pi Load
function. The issue then is whether the user knows the type of file he has
and can select the proper parser via a checkbox else I add a number of
parser options to discover the file construction. A third option would be to
just have the user manually load his data from the file by hand into the
grid then save it out. I'll try to add some more auto-parsers based on the
file types you've given me. In your collection, do you have them sorted by
type or source? I think I'll add a note in the Load function about the need
for the constant Wind Speed and TWA bin sizes.
As Lincoln the programmer said you can parse some of the files all of the
time.....

Hasta,
Dave

----- Original Message -----
From: "Rick Gleason" notifications@github.com
To: "cowelld/tackandlay_pi" tackandlay_pi@noreply.github.com
Cc: "Dave Cowell" david.cowell@ymail.com
Sent: Friday, March 06, 2015 2:08 PM
Subject: Re: [tackandlay_pi] What is the necessary Polar format ? (#6)

Maybe we send any polar files through a little program first that cleans
them up for use in Polar_pi, TackandLay_pi and Weather_Routing_pi and
save the file out as our standard version of POL? or CSV? or whatever.
Then would they get saved as a different file that can be reused, or does
the program just run at the startup every time?


Reply to this email directly or view it on GitHub:
#6 (comment)

@rgleason
Copy link
Author

rgleason commented Mar 8, 2015

Understood about a tool program.
Insofar as the header and delimiters - There are maybe 4 types.
Regarding angle and wind speed increments - you suggestion sounded good.
At the end of the weather_routing_pi Wiki on opencpn.org Opencpn Manual there is a
writeup about various types of polars that I did several years ago to help Sean get the polar ingestion better. I can't link because the site is down right now.. But it might be worthwhile to take a look there.

BASIC TYPES (related to headers and delimiters)
weather_routing_pi
qtvlm
SetSea- Maxsea
Other

@rgleason
Copy link
Author

rgleason commented Mar 8, 2015

Dave, There is some slightly concurrent work going on in several plugins
ptulp/polar_pi - 5 days ago
Update angle display in 5, 10 or 15 degree steps. I believe he removed 8, 24 and 20 degrees
ptulp/polar_pi@48c76d9
cowelld/tackandlay - now

and Earlier in Sean's plugin
weather_routing_pi
https://github.com/seandepagnier/weather_routing_pi
remove bad polars, bundle data, and correct some polars

I it would be nice to have these plugins working in concert.
I am going to post a new thread in the forum asking for input from the authors.

@rgleason
Copy link
Author

rgleason commented Mar 8, 2015

@cowelld
Copy link
Owner

cowelld commented Mar 9, 2015

The first polar_pi is a fork of Konnibo's original version which was done
years ago. It's not related to mine.
The second action by Sean was to modify his attached data files to be more
in line with the status-quo. See my other email.

----- Original Message -----
From: "Rick Gleason" notifications@github.com
To: "cowelld/tackandlay_pi" tackandlay_pi@noreply.github.com
Cc: "Dave Cowell" david.cowell@ymail.com
Sent: Sunday, March 08, 2015 5:56 AM
Subject: Re: [tackandlay_pi] What is the necessary Polar format ? (#6)

Dave, There is some slightly concurrent work going on in several plugins
ptulp/polar_pi - 5 days ago
Update angle display in 5, 10 or 15 degree steps. I believe he removed 8,
24 and 20 degrees
ptulp/polar_pi@48c76d9
cowelld/tackandlay - now

and Earlier in Sean's plugin
weather_routing_pi
https://github.com/seandepagnier/weather_routing_pi
remove bad polars, bundle data, and correct some polars

I it would be nice to have these plugins working in concert.
I am going to post a new thread in the forum asking for input from the
authors.


Reply to this email directly or view it on GitHub:
#6 (comment)

@cowelld cowelld closed this as completed Apr 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants