Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 18-02-2013, 12:04   #91
Registered User

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

Here is a wav file image.
Attached Thumbnails
Click image for larger version

Name:	weatherfax2.JPG
Views:	115
Size:	255.6 KB
ID:	55122  
__________________

__________________
ChuckSK is offline   Reply With Quote
Old 18-02-2013, 12:09   #92
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: Around once, back to work, for a while :-(
Boat: Sailboat
Posts: 966
Re: WeatherFax...

Quote:
Originally Posted by ChuckSK View Post
Try these fixes.

Code:
diff --git a/src/libaudiofile/modules/PCM.cpp b/src/libaudiofile/modules/PCM.cpp
index 832f0e8..010dd70 100644
--- a/src/libaudiofile/modules/PCM.cpp
+++ b/src/libaudiofile/modules/PCM.cpp
@@ -39,10 +39,10 @@
 
 bool _af_pcm_format_ok (AudioFormat *f)
 {
-    assert(!isnan(f->pcm.slope));
-    assert(!isnan(f->pcm.intercept));
-    assert(!isnan(f->pcm.minClip));
-    assert(!isnan(f->pcm.maxClip));
+    assert(!_isnan(f->pcm.slope));
+    assert(!_isnan(f->pcm.intercept));
+    assert(!_isnan(f->pcm.minClip));
+    assert(!_isnan(f->pcm.maxClip));
 
     return true;
 }
Works much better now.
Chuck

Chuck: Thanks!

everything compiles, except the last patchlet above:


Code:
[ 82%] Building CXX object plugins/weatherfax_pi/CMakeFiles/weatherfax_pi.dir/src/libaudiofile/modules/PCM.cpp.o
/NON-GENTOO-COMPILES/OPENCPN/OpenCPN/plugins/weatherfax_pi/src/libaudiofile/modules/PCM.cpp: In function 'bool _af_pcm_format_ok(AudioFormat*)':
/NON-GENTOO-COMPILES/OPENCPN/OpenCPN/plugins/weatherfax_pi/src/libaudiofile/modules/PCM.cpp:42:2: error: '_isnan' was not declared in this scope
make[2]: *** [plugins/weatherfax_pi/CMakeFiles/weatherfax_pi.dir/src/libaudiofile/modules/PCM.cpp.o] Error 1
make[1]: *** [plugins/weatherfax_pi/CMakeFiles/weatherfax_pi.dir/all] Error 2
make: *** [all] Error 2
I reverted this last portion and have a compiled weatherfax.pi now, on to testing now.

Dirk

PS: I had to do the patching manually, please remind me of the proper use of "patch"...
__________________

__________________
LeaseOnLife is online now   Reply With Quote
Old 18-02-2013, 12:22   #93
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: Around once, back to work, for a while :-(
Boat: Sailboat
Posts: 966
Re: WeatherFax...

new version does handle this fax now. I am going to try, and post a few more... = weatherfax porn
Attached Thumbnails
Click image for larger version

Name:	weatherfx-color-OK.png
Views:	104
Size:	155.3 KB
ID:	55124   Click image for larger version

Name:	ATSA_00Z.gif
Views:	91
Size:	26.3 KB
ID:	55125  

__________________
LeaseOnLife is online now   Reply With Quote
Old 18-02-2013, 12:37   #94
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: Around once, back to work, for a while :-(
Boat: Sailboat
Posts: 966
Re: WeatherFax...

I have some troubles aligning the color Fiji fax, maybe this the fijifax isn't really mercator, the largest error is in the middle (latitude).

But, not too bad for displaying a weatherfax though:
Attached Thumbnails
Click image for larger version

Name:	0992.jpg
Views:	103
Size:	224.5 KB
ID:	55128   Click image for larger version

Name:	weatherfx-fiji-color-cal-off.png
Views:	100
Size:	225.0 KB
ID:	55129  

__________________
LeaseOnLife is online now   Reply With Quote
Old 18-02-2013, 12:48   #95
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: Around once, back to work, for a while :-(
Boat: Sailboat
Posts: 966
Re: WeatherFax...

similar distortion in latitude for the fax from French Polynesia:


Also, the FP fax can be downloaded, as png.
http://www.meteo.pf/bulletins/marines/preiso36.png
The plug-in does not recognise png as an image file, I had to convert it (to jpg)
Attached Thumbnails
Click image for larger version

Name:	weatherfx-fp-distorted-lat.png
Views:	103
Size:	239.4 KB
ID:	55132   Click image for larger version

Name:	preiso36.jpg
Views:	108
Size:	149.2 KB
ID:	55133  

__________________
LeaseOnLife is online now   Reply With Quote
Old 18-02-2013, 12:52   #96
Registered User

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

Hi Dirk

I think that last patchlet is required for older compilers. Re applying patches, I do not know. I look things up when the need arises.

Nice clips.

Chuck
__________________
ChuckSK is offline   Reply With Quote
Old 18-02-2013, 12:58   #97
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: Around once, back to work, for a while :-(
Boat: Sailboat
Posts: 966
Re: WeatherFax...

Quote:
Originally Posted by ChuckSK View Post
Hi Dirk

I think that last patchlet is required for older compilers. Re applying patches, I do not know. I look things up when the need arises.

Nice clips.

Chuck


chuck, thanks for the help!!

Here is a fax from Mauritius: Similar distortion in latitude. Equator and 40S are right on, anything in between is not.

Origin of fax: http://metservice.intnet.mu/synopticimages/chart.jpg

Dirk
Attached Thumbnails
Click image for larger version

Name:	mauritius.jpg
Views:	108
Size:	63.4 KB
ID:	55135   Click image for larger version

Name:	weatherfx-mauritius-distorted-lat1.png
Views:	88
Size:	315.8 KB
ID:	55136  

__________________
LeaseOnLife is online now   Reply With Quote
Old 18-02-2013, 13:18   #98
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: Around once, back to work, for a while :-(
Boat: Sailboat
Posts: 966
Re: WeatherFax...

these line up nicely across the equator:

source:
http://www.bom.gov.au/fwo/IDD80100.png
http://www.bom.gov.au/fwo/IDD67950.png
Attached Thumbnails
Click image for larger version

Name:	weatherfx-asia-equator-OK1.png
Views:	102
Size:	251.1 KB
ID:	55140   Click image for larger version

Name:	IDD80100.png
Views:	108
Size:	57.3 KB
ID:	55141  

Click image for larger version

Name:	weatherfx-asia-equator-OK2.jpg
Views:	115
Size:	138.3 KB
ID:	55142   Click image for larger version

Name:	IDD67950.jpg
Views:	95
Size:	188.4 KB
ID:	55143  

__________________
LeaseOnLife is online now   Reply With Quote
Old 18-02-2013, 13:21   #99
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

"Try these fixes." Gosh Chuck, that's great. Can you tell me a little about how I applly or use these fixes and what is happening? I've never done this.

I assume
diff --git a/src/WeatherFaxDialog.cpp b/src/WeatherFaxDialog.cpp

is some command and then the changes are applied. How is this used properly?
I'm using Win7 and can use CMD and dos commands, also MS VC++2010 Express.

Thanks.
__________________
rgleason is offline   Reply With Quote
Old 18-02-2013, 13:49   #100
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: Around once, back to work, for a while :-(
Boat: Sailboat
Posts: 966
Re: WeatherFax...

Quote:
Originally Posted by rgleason View Post
"Try these fixes." Gosh Chuck, that's great. Can you tell me a little about how I applly or use these fixes and what is happening? I've never done this.

I assume
diff --git a/src/WeatherFaxDialog.cpp b/src/WeatherFaxDialog.cpp

is some command and then the changes are applied. How is this used properly?
I'm using Win7 and can use CMD and dos commands, also MS VC++2010 Express.

Thanks.
Per Chuck's diff, I manually edited/modified two files:WeatherFaxDialog.cpp WeatherFaxDialog.h

attached are both files (remove .doc extension, then un-7-zip)
Attached Files
File Type: doc src.7z.doc (4.7 KB, 60 views)
__________________
LeaseOnLife is online now   Reply With Quote
Old 18-02-2013, 13:51   #101
Registered User

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

Quote:
Originally Posted by rgleason View Post
"Try these fixes." Gosh Chuck, that's great. Can you tell me a little about how I applly or use these fixes and what is happening? I've never done this.

I assume
diff --git a/src/WeatherFaxDialog.cpp b/src/WeatherFaxDialog.cpp

is some command and then the changes are applied. How is this used properly?
I'm using Win7 and can use CMD and dos commands, also MS VC++2010 Express.

Thanks.
The diff file just shows the differences between the original files and the updated files. It is not a command file.

It specifies the files and the line numbers that have been changed. Replace the lines preceded by minus signs with lines preceded by plus signs.

Chuck
__________________
ChuckSK is offline   Reply With Quote
Old 18-02-2013, 14:16   #102
mrm
Registered User

Join Date: Feb 2011
Location: Poland, EU
Boat: crew on Bavaria 38 Cruiser
Posts: 552
Re: WeatherFax...

$ man patch

Code:
PATCH(1)                                                              PATCH(1)

NAME
       patch - apply a diff file to an original

SYNOPSIS
       patch [options] [originalfile [patchfile]]

       but usually just

       patch -pnum <patchfile

DESCRIPTION
[...]
       --dry-run
          Print the results of applying the patches without actually  changing
          any files.
[...]
       -pnum  or  --strip=num
          Strip  the  smallest prefix containing num leading slashes from each
          file name found in the patch file.  A sequence of one or more  adja‐
          cent  slashes  is counted as a single slash.  This controls how file
          names found in the patch file are treated, in  case  you  keep  your
          files  in  a  different  directory  than the person who sent out the
          patch.  For example, supposing the file name in the patch file was

             /u/howard/src/blurfl/blurfl.c

          setting -p0 gives the entire file name unmodified, -p1 gives

             u/howard/src/blurfl/blurfl.c

          without the leading slash, -p4 gives

             blurfl/blurfl.c

          and not specifying -p at all just gives you blurfl.c.  Whatever  you
          end  up  with  is looked for either in the current directory, or the
          directory specified by the -d option.
[...]
__________________
mrm is offline   Reply With Quote
Old 18-02-2013, 14:43   #103
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

Yikes! amazing help. Thank you all. I had just gotten to the point that I realized that "Diff" is a Linux/Unix command, which is different than "git-diff" and with all your help I think I can make these changes. Who knows, in time I may become able to make program changes. Right now you all seem like majicians, truely!!

Stay tuned, I'll let you know how it goes. Thanks again.
__________________
rgleason is offline   Reply With Quote
Old 18-02-2013, 15:06   #104
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

Thank, decided to use Leaseonlife files as that was easiest. Downloaded and put in
plugins directory C:\Data-Dart\...\Navigation\opencpn-git\plugins\weatherfax_pi\src

Then ran cmake .. and cmake --build .

Got attached png with 4 errors (back to same # of errors as before)
Then ran MSVC++ Debug > Build got this output with NO failiures.

Will find the new weatherfax_pi.dll and put in plugin directory and let you know how it goes a bit later.

Thank You all!
Attached Thumbnails
Click image for larger version

Name:	weatherfax-cmd-make-screen-just4-errors.png
Views:	99
Size:	98.8 KB
ID:	55149  
Attached Files
File Type: doc Output-from-MSVC++2010-Debug-Build.doc (8.4 KB, 47 views)
__________________
rgleason is offline   Reply With Quote
Old 18-02-2013, 15:22   #105
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: Around once, back to work, for a while :-(
Boat: Sailboat
Posts: 966
Re: WeatherFax...

Quote:
Originally Posted by rgleason View Post
Thank, decided to use Leaseonlife files as that was easiest. Downloaded and put in
plugins directory C:\Data-Dart\...\Navigation\opencpn-git\plugins\weatherfax_pi\src

Then ran cmake .. and cmake --build .

Got attached png with 4 errors (back to same # of errors as before)
Then ran MSVC++ Debug > Build got this output with NO failiures.

Will find the new weatherfax_pi.dll and put in plugin directory and let you know how it goes a bit later.

Thank You all!
Chuck made changes in 3 files, I only sent you 2 modified files, here is the 3rd: replace your weatherfax_pi/src/libaudiofile/modules/PCM.cpp with the one attached.

Let us know how this compiles

Dirk

PS: hopefully Sean / boat_alexandra can clean up our mess and we get a fresh git soon
Attached Files
File Type: doc PCM.cpp.doc (5.5 KB, 46 views)
__________________

__________________
LeaseOnLife is online now   Reply With Quote
Reply

Tags
paracelle

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


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


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- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 19:27.


Google+
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.