Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 13-03-2013, 16:03   #256
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: WeatherFax...

rgleason

If you set Coord2 to have a different longitude from Coord1 it will work better. Notice that all the failed attemps have the same longitude.
ChuckSK is offline   Reply With Quote
Old 13-03-2013, 16:21   #257
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: WeatherFax...

This is hard to believe for polars. That is correct, all my polars purposefully set Coord1 lat and Coord2 lat to the same value. I believe that is the intent. Why would it fail?

I'm burnt out on this, so I'll try it in a couple of days.
rgleason is offline   Reply With Quote
Old 13-03-2013, 21:58   #258
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: WeatherFax...

I got the south africa map to work, but I had to manually enter the mapping coordinates. I think conic uses the same tangent transform as polar, only the mapping is in a different place, so it works as a polar image.

About the coordinates.... for polars you really must have different latitudes and longitudes for the mapping to work, otherwise it will fail. Preferably have the second coord as far as possible from the first to get the most correct results. Otherwise it probably divides by zero or tries to compute the square root of a negative number or something.

I updated the plugin a lot to fix a bunch of issues I found.. there were actually a lot of problems. Please let me know about the new version (0.5)
seandepagnier is offline   Reply With Quote
Old 14-03-2013, 04:07   #259
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: WeatherFax...

In POLAR, What is the meaning of
"Resulting Image has negative dimensions, aborting"?

Does it have something to do with the Blue Rings?
The blue rings are outside of (or inside of) the latitude lines?

Does it have something to do with "Get Mapping"?
I always hit "Get Mapping" after I have adjusted the Coords.
Is that correct? Then I hit Apply.

Does it have something to do with the coordinate locations?
I have been aligning the longitude exactly (same value) for Coord 1 and Coord 2, is that the reason the message comes up?

If yes, does this message also occur in other instances?

If no, Why not give us a much better description!!!!!!!!

This is a black box to the user. I have spent hours on this and gotten this error and not known if I was doing something wrong or not, and did not know what to change. What I did was try to get more exact about what I thought we were supposed to be doing!.

There have been a lot of examples above, including the coords in text directly above, for example:

Pick Polar
Coord 1 70
-35
Coord 2 20
-35
Get Mapping take screenshot
Apply - resulting image has neg dimensions.

Is this wrong? ---I should be picking coords that do not align on longitude?

Sean wrote:
. for polars you really must have different latitudes and longitudes for the mapping to work, otherwise it will fail. Preferably have the second coord as far as possible from the first to get the most correct results.

Can we change the note by adding, "You may be picking the coordinates incorrectly, they should be as far apart as possible, do not align them along longitude." or is this note generated by a module outside of weatherfax?
rgleason is offline   Reply With Quote
Old 14-03-2013, 04:33   #260
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: WeatherFax...

It built with 3 errors. Hope they show up in this screenshot

WeatherfaxWizard(483) error C3861 is nan : identifier not found
weatherfax_pi/weatherfax_pi.vcxproj

all 3 the same.

It did not seem to compile a new debug or release dll
Attached Thumbnails
Click image for larger version

Name:	Weatherfax-3-Errors.png
Views:	241
Size:	76.6 KB
ID:	56975  
rgleason is offline   Reply With Quote
Old 14-03-2013, 06:06   #261
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: WeatherFax...

Tried one polar with the current (older) version of weatherfax.dll (debug) that complied several days ago.

I used totally separate coordinates with dismal results again.
Polar File : 13021903-Polar.png (attached)

Coordinate 1 lat 121 -50
long 70 90
Coordinate 2 lat 572 -10
long 404 160
Error:
"Mapping Failed" "Resulting Image has negative dimensions, aborting"
Then:
bitmap.cpp [802] Sorry, Sean. Its frustrating to both of us.

It would be very helpful to have a list of polars that we know work with either the download link or simply uploaded. Can someone suggest one so I am not working with Xxxxty files!

Code:
     KernelBase.dll!760c3219()     
     [Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]    
>    wxbase28ud_vc_custom.dll!wxTrap()  Line 678    C++
     wxbase28ud_vc_custom.dll!DoShowAssertDialog(const wxString & msg)  Line 753    C++
     wxbase28ud_vc_custom.dll!wxAppTraitsBase::ShowAssertDialog(const wxString & msgOriginal)  Line 557 + 0x9 bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxGUIAppTraitsBase::ShowAssertDialog(const wxString & msg)  Line 635    C++
     wxbase28ud_vc_custom.dll!ShowAssertDialog(const wchar_t * szFile, int nLine, const wchar_t * szFunc, const wchar_t * szCond, const wchar_t * szMsg, wxAppTraits * traits)  Line 836 + 0x11 bytes    C++
     wxbase28ud_vc_custom.dll!wxAppConsole::OnAssertFailure(const wchar_t * file, int line, const wchar_t * func, const wchar_t * cond, const wchar_t * msg)  Line 445 + 0x22 bytes    C++
     wxbase28ud_vc_custom.dll!wxOnAssert(const wchar_t * szFile, int nLine, const char * szFunc, const wchar_t * szCond, const wchar_t * szMsg)  Line 713    C++
     wxmsw28ud_core_vc_custom.dll!wxBitmap::CreateFromImage(const wxImage & image, int depth, void * hdc)  Line 802 + 0x30 bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxBitmap::CreateFromImage(const wxImage & image, int depth)  Line 788    C++
     wxmsw28ud_core_vc_custom.dll!wxBitmap::wxBitmap(const wxImage & image, int depth)  Line 73 + 0x4e bytes    C++
     weatherfax_pi.dll!EditFaxWizard::OnPaintImage(wxPaintEvent & event)  Line 1045 + 0x78 bytes    C++
     wxbase28ud_vc_custom.dll!wxAppConsole::HandleEvent(wxEvtHandler * handler, void (wxEvent &)* func, wxEvent & event)  Line 323    C++
     wxbase28ud_vc_custom.dll!wxEvtHandler::ProcessEventIfMatches(const wxEventTableEntryBase & entry, wxEvtHandler * handler, wxEvent & event)  Line 1241    C++
     wxbase28ud_vc_custom.dll!wxEvtHandler::SearchDynamicEventTable(wxEvent & event)  Line 1421 + 0x11 bytes    C++
     wxbase28ud_vc_custom.dll!wxEvtHandler::ProcessEvent(wxEvent & event)  Line 1297 + 0x15 bytes    C++
     wxbase28ud_vc_custom.dll!wxEvtHandler::ProcessEvent(wxEvent & event)  Line 1308 + 0x1c bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxScrollHelperEvtHandler::ProcessEvent(wxEvent & event)  Line 208 + 0xd bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxWindow::HandlePaint()  Line 4617 + 0x1c bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxWindow::MSWWindowProc(unsigned int message, unsigned int wParam, long lParam)  Line 2747 + 0xb bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxScrolledWindow::MSWWindowProc(unsigned int nMsg, unsigned int wParam, long lParam)  Line 1529 + 0x14 bytes    C++
     wxmsw28ud_core_vc_custom.dll!wxWndProc(HWND__ * hWnd, unsigned int message, unsigned int wParam, long lParam)  Line 2618 + 0x1c bytes    C++
     user32.dll!767f62fa()     
     user32.dll!767f6d3a()     
     user32.dll!767f6ce9()     
     user32.dll!767f6de8()     
     user32.dll!767f80bb()     
     ntdll.dll!776af8ca()     
     user32.dll!767f6e44()     
     ntdll.dll!776a010a()     
     user32.dll!7680131c()     
     user32.dll!76801332()     
     user32.dll!7681cdfd()     
     user32.dll!7681cf5c()     
     user32.dll!7684f73c()     
     user32.dll!7684fa18()     
     kernel32.dll!766e14dd()     
     msvcr100d.dll!_free_base(void * pBlock)  Line 50 + 0x13 bytes    C
     00bbbb34()    
     00bbc440()
Attached Thumbnails
Click image for larger version

Name:	Weatherfax-Polar-Negative-Again.jpg
Views:	276
Size:	384.3 KB
ID:	56987   Click image for larger version

Name:	13021903-Polar.png
Views:	469
Size:	60.4 KB
ID:	56988  

Click image for larger version

Name:	Weatherfax-Polar-Negative-Again-2.jpg
Views:	281
Size:	400.1 KB
ID:	56989  
rgleason is offline   Reply With Quote
Old 14-03-2013, 06:28   #262
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: WeatherFax...

Tried again.

Have two blue ellipses that look right, describing the globe, rather than blue circles.

Same error
Attached Thumbnails
Click image for larger version

Name:	Weatherfax-Polar-Negative-Again-3-Again.jpg
Views:	278
Size:	381.9 KB
ID:	56990  
rgleason is offline   Reply With Quote
Old 14-03-2013, 06:32   #263
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: WeatherFax...

It would be helpful if we could set a photo or image program to be an image browser withing weatherfax, such that clicking on a button in weatherfax will open the image browser/editor and open image file currently being used, so we can zoom in and scroll around to determine the exact coords etc.

Don't know if this is possible.

That would take the place of having a magnifier.
rgleason is offline   Reply With Quote
Old 14-03-2013, 09:21   #264
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: WeatherFax...

This is what the blue circles should look like. Adjust the left/right location with the PoleX value and adjust the circle radius with the PoleY value. Set the True Width Ratio value to 1.0.
Attached Thumbnails
Click image for larger version

Name:	PolarSU1.JPG
Views:	321
Size:	171.6 KB
ID:	57010   Click image for larger version

Name:	PolarDP1.JPG
Views:	327
Size:	185.0 KB
ID:	57011  

ChuckSK is offline   Reply With Quote
Old 14-03-2013, 13:33   #265
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: WeatherFax...

Thank you Chuck very helpful.
Perhaps the "Information Button" should have more description for Polars.

Polar Projections
Coordinate 1 (Red) -Select a high latitude on the vertical meridian running through the pole (N or S)
Coordinate 2 (Blue) - Select an opposing corner (either side) with lower latitude.
Then hit Get Map, the Blue circles should follow the latitudes of respective coords. Adjust the left/right location with the PoleX value and adjust the circle radius with the PoleY value. Set the True Width Ratio value to 1.0.
rgleason is offline   Reply With Quote
Old 15-03-2013, 05:16   #266
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: WeatherFax...

Success. It worked! Funny how following instructions helps.

I notice that Chuck's version has "Long/lat" and my Windows version has "Lat/Long" is there a reason? Might create some confusion in the future.

The "True width ratio" was 1.03 without any adjustment, so I guess that is positive. It is possible that the error "Resulting Image has negative dimensions, aborting" is due to this value being negative.

When the image is "Finished" and overlayed on the chart several things are noticed.

1. Cannot Zoom in and Zoom out - Scaling is frozen by the plugin for some reason, perhaps to apply the image. It needs to be unfrozen after the image is overlayed so we can more easily find it on the globe.

2. First transparency slider does not seem to work on the lines, but the second one does adjust the background full range white-black. I don't know if the first slider operation is somewhat dependent on the quality of the image.

Hitting "Edit" in the weatherfax window works fine. The image can be re-edited and applied.
Attached Thumbnails
Click image for larger version

Name:	Weatherfax-Polar-NewTry-1.jpg
Views:	7187
Size:	350.1 KB
ID:	57070   Click image for larger version

Name:	Weatherfax-Polar-NewTry-2.jpg
Views:	669
Size:	385.9 KB
ID:	57071  

Click image for larger version

Name:	Weatherfax-Polar-NewTry-3-Success.jpg
Views:	579
Size:	409.4 KB
ID:	57072  
rgleason is offline   Reply With Quote
Old 15-03-2013, 05:43   #267
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: WeatherFax...

True width Ratio - Adjusts the width of the blue circles (a fraction like .8 makes the circles wider, and 1.2 makes them narrower.) Adjust the true width ratio such that the blue circles align with the associated latitude lines, otherwise the "Apply" transformation will not render straight lat/long lines or will fail.
Pole X - Moves the center of the blue circles left and right. The blue circles should be centered on the vertical meridian which goes through the pole.
Pole Y - Moves the center of the blue circles up and down. The blue circles should be centered on the pole. Hit get mapping to see how this is working, because the blue rings change in width, and sometime the ring closest to the pole flips if the value is too far out of whack.
Equator Y - This does not appear to do much when you change the value, more about this value later.
Attached Thumbnails
Click image for larger version

Name:	Weatherfax-Polar-Values-TrueWidthRation.jpg
Views:	285
Size:	406.5 KB
ID:	57074  
rgleason is offline   Reply With Quote
Old 15-03-2013, 05:57   #268
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: WeatherFax...

If you are starting fresh with a Polar, and the blue rings are too wide after hitting Get Mapping, first check the lat/long entered and reset coords to be sure they are hit, then Hit 'get mapping again' then adjust the "True width ration" so the blue rings align with the latitude lines. Once that is done don't hit "Get Mapping" again, hit "Apply" the lines should be straight and orthogonal.
rgleason is offline   Reply With Quote
Old 15-03-2013, 06:06   #269
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: WeatherFax...

Here's the most recent weatherfax_pi.dll that compiled, if someone wants to test it.
Take the doc off.
Attached Files
File Type: doc weatherfax_pi .dll.doc (310.0 KB, 93 views)
rgleason is offline   Reply With Quote
Old 15-03-2013, 14:37   #270
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: WeatherFax...

Quote:
Originally Posted by rgleason View Post
Success. It worked! Funny how following instructions helps.

I notice that Chuck's version has "Long/lat" and my Windows version has "Lat/Long" is there a reason? Might create some confusion in the future.
The new version has them flipped so the image coordinate for X alines with longitude and Y with latitude. I added the ifdef thing for isnan on windows it should build now.

Quote:

1. Cannot Zoom in and Zoom out - Scaling is frozen by the plugin for some reason, perhaps to apply the image. It needs to be unfrozen after the image is overlayed so we can more easily find it on the globe.
This should not be the case. Try with and without opengl. ALso try unchecking the image and see if you can zoom then and check it back.
seandepagnier is offline   Reply With Quote
Reply

Tags
paracelle


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
For Sale: SSB, Tuner, Amp, WeatherFax Palarran Classifieds Archive 7 19-03-2011 07:22
Help with WeatherFax and SeaTTY desierto Navigation 2 12-12-2008 20:36
Basic Weatherfax reception Tnflakbait Marine Electronics 3 23-09-2008 21:55
How do I set myself up with weatherfax? tracker_46 Marine Electronics 4 12-10-2006 14:51
Weatherfax Recommendations Please Salacia Marine Electronics 3 03-07-2005 13:28

Advertise Here


All times are GMT -7. The time now is 12:10.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.