Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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-04-2016, 09:24   #46
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: ncdf plugin for reading NetCDF tidal currents

I just added to the Env variable Path
C:\Program Files (x86)\netCDF 4.4.0\include
again, because my Win10 Startup screen no longer worked and there were Group Policy client errors due to a program not installing properly. So I had to go back to a restore point and rebuild part of my startup screen. In the process I lost that path, but with the path we are still getting the same errors. It was working before, what happened?


Quote:
Error 1 error C1083: Cannot open include file: 'netcdf.h': No such file or directory c:\users\rick\documents\github\o-plugin\mr-ncdf_pi\src\ncdf.h 31 1 ncdf_pi
Warning 2 warning C4018: '<' : signed/unsigned mismatch C:\Users\Rick\Documents\GitHub\o-plugin\mr-ncdf_pi\src\ncdfdata.cpp 220 1 ncdf_pi
Error 3 error C1083: Cannot open include file: 'netcdf.h': No such file or directory c:\users\rick\documents\github\o-plugin\mr-ncdf_pi\src\ncdf.h 31 1 ncdf_pi
Error 4 error C1083: Cannot open include file: 'netcdf.h': No such file or directory c:\users\rick\documents\github\o-plugin\mr-ncdf_pi\src\ncdf.h 31 1 ncdf_pi
Error 5 error C1083: Cannot open include file: 'netcdf.h': No such file or directory c:\users\rick\documents\github\o-plugin\mr-ncdf_pi\src\ncdf.h 31 1 ncdf_pi
rgleason is offline   Reply With Quote
Old 13-04-2016, 13:16   #47
Registered User

Join Date: May 2012
Posts: 1,205
Re: ncdf plugin for reading NetCDF tidal currents

Rick,

On my machine C:\Program Files\netCDF 4.4.0\bin is added to the path, when netCDF is installed. (Added for all users)

Mike
Rasbats is offline   Reply With Quote
Old 13-04-2016, 13:28   #48
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: ncdf plugin for reading NetCDF tidal currents

Mike,

just to add another data source for the Western Med in case you have not seen it:

SOCIB

the data sets here:

Catalog http://thredds.socib.es/thredds/catalog/operational_models/oceanographical/hydrodynamics/wmop/catalog.html
bcn is offline   Reply With Quote
Old 13-04-2016, 14:38   #49
Registered User

Join Date: May 2012
Posts: 1,205
Re: ncdf plugin for reading NetCDF tidal currents

Thanks bcn, I will take a look at this one.

Rick,

"C:\Program Files (x86)\netCDF 4.4.0\lib\netcdf.lib" is certainly needed.

I will make a blow by blow walk-through for VS in the next day or so.

Mike
Rasbats is offline   Reply With Quote
Old 14-04-2016, 05:18   #50
Registered User

Join Date: May 2012
Posts: 1,205
Re: ncdf plugin for reading NetCDF tidal currents

The walkthrough is hosted at:

ncdf_pi VS2013 walkthrough | Official OpenCPN Homepage

Mike
Rasbats is offline   Reply With Quote
Old 14-04-2016, 08:12   #51
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: ncdf plugin for reading NetCDF tidal currents

Thanks, Mike.

Nice walkthru, very clear..

It looks like we were missing
Linker > Input > Additional Depencies add "netCDF.lib"

I'll try it tonight.
rgleason is offline   Reply With Quote
Old 20-04-2016, 00:13   #52
Registered User

Join Date: May 2012
Posts: 1,205
Re: ncdf plugin for reading NetCDF tidal currents

Copernicus changed the start date of the nc file when they did the recent upgrade. Times are now taken from 2011-12-31 instead of 2011-03-31. No further changes are likely until 2018, I am told.

GitHub has been updated for this and ncdf_pi is now at release 0.4. Windows compiled dll is available in 'Releases'.

I made an error in motu_builder. Time for the python script must include seconds i.e. 12:00:00 NOT 12:00. An updated version of motu_builder.exe is included in release 0.4.

Please find samples and netCDF under previous releases.

Mike
Rasbats is offline   Reply With Quote
Old 20-04-2016, 01:52   #53
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,988
Re: ncdf plugin for reading NetCDF tidal currents

Thank Mike.

BUT .... Impossible to install the new Motu-builder See screen copy. The dll is not present in my PC.

Ncdf dll:
V4 do not run. When I choice an old nc file, all is blocked.
Attached Thumbnails
Click image for larger version

Name:	2016-04-20-Motu_builder.jpg
Views:	159
Size:	86.7 KB
ID:	122884  
Gilletarom is offline   Reply With Quote
Old 20-04-2016, 07:01   #54
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: ncdf plugin for reading NetCDF tidal currents

Mike,

1. Did a fresh git clone.
2. Followed the instructions at ncdf_pi VS2013 walkthrough | Official OpenCPN Homepage
3. Wrote a more detailed readme for Windows compile. See attached.
4. Followed instructions to the T, and triple checked all of it Path, pathnames, lib entries, etc. Tried to compile and it is not finding netcdf.h which does exist in
C:\Program Files (x86)\NetCDF 4.4.0\include AND I have that listed in
ncdf_pi Properties > C/C++ > General > Additional Include Directories!
5. I also tried adding a direct path and link to netcdf.h under Linker > Input > Additional Dependencies list but that caused errors too.
6. The errors are listed in the attachment.
7. I find this process and the plugin very very elusive.
Sorry, I cannot make it build now.
Attached Files
File Type: doc ncdf-README-Rick.txt.doc (3.5 KB, 44 views)
rgleason is offline   Reply With Quote
Old 20-04-2016, 10:41   #55
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,988
Re: ncdf plugin for reading NetCDF tidal currents

Quote:
Originally Posted by Gilletarom View Post
......
BUT .... Impossible to install the new Motu-builder See screen copy. The dll is not present in my PC.
Pfuuuuu Gilletarom is bad ... I place motu-builder into the good folder and motu_builder run correctly. Sorry Mike.
Gilletarom is offline   Reply With Quote
Old 20-04-2016, 11:49   #56
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,988
Re: ncdf plugin for reading NetCDF tidal currents

Mike,

1° I confirm that the new version of Motu-builder working properly.

2° I confirm that playing files with the new version "netcdf_pi.dll" does not work correctly.
It all depends on how to select the file:
- If I click on its name, all freezes, when I select a file.
- If I click on the "+" sign, all unfolds and I can select a time slot.

Also, if I try to drag the screen with the mouse, the arrow keys move properly but the color box starts with do not move. Then it moves and resumes, probably correctly, place.
Attached Thumbnails
Click image for larger version

Name:	2016-04-20-ncdf_dll_0.4_A.jpg
Views:	193
Size:	176.2 KB
ID:	122911   Click image for larger version

Name:	2016-04-20-ncdf_dll_0.4_B.jpg
Views:	141
Size:	161.8 KB
ID:	122912  

Click image for larger version

Name:	2016-04-20-ncdf_dll_0.4_C.jpg
Views:	190
Size:	222.6 KB
ID:	122913  
Gilletarom is offline   Reply With Quote
Old 20-04-2016, 14:27   #57
Registered User

Join Date: May 2012
Posts: 1,205
Re: ncdf plugin for reading NetCDF tidal currents

Rick,

Please can you confirm your PATH environment variable shows 'something\netCDF 4.4.0\bin'.

Gilletarom,

You are pushing boundaries!!!! Your screenshot shows you have chosen "Southern Brittany" but you have a file with Lat/Lon limits that does not correspond to that area.

Could you try selecting an area/download using the drop-down in motu-builder and then choosing the same area in the ncdf plugin and see if that makes any difference.

Mike
Rasbats is offline   Reply With Quote
Old 20-04-2016, 22:36   #58
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,988
Re: ncdf plugin for reading NetCDF tidal currents

QUOTE=Rasbats;2102087]...
Gilletarom,
You are pushing boundaries!!!! Your screenshot shows you have chosen "Southern Brittany" but you have a file with Lat/Lon limits that does not correspond to that area.
Could you try selecting an area/download using the drop-down in motu-builder and then choosing the same area in the ncdf plugin and see if that makes any difference.
Mike[/QUOTE]

???? I do not undestand clearly what you say ...

Second bug :
I choice Southern Britanny with motu-Builder and then, I choice the file downloaded with OpenCPN/netcdf plugin.
I note that if I drag the chart from left to right or right to left, the arrow area is corectly draged bu the color area is not correctly draged immediately.
The colored area is temporarily frozen, and then suddenly it reclaims its place in the same place as the Arrows area. This occurs only if I move horizontally chart area. If I move vertically chart area, the arrows area and the colored area simultaneously moves correctly.

There are 3 layers. Bottom up :
- The basemap layer.
- The layer of the colored area.
- Layer arrows.
Only the first and the third layer simultaneously move horizontally correctly! The color layer moves by jumps.

And I confirm the first bug. If I choice a file, using netcdf.dll, by the name of the file, then all is frozen. The only way to change something is to stop OpenCPN (it is crashed !)
Attached Thumbnails
Click image for larger version

Name:	2016-04-21-ncdf_dll_0.4_D.jpg
Views:	166
Size:	328.2 KB
ID:	122928   Click image for larger version

Name:	2016-04-21-ncdf_dll_0.4_E.jpg
Views:	160
Size:	332.3 KB
ID:	122929  

Click image for larger version

Name:	2016-04-21-ncdf_dll_0.4_F.jpg
Views:	146
Size:	329.5 KB
ID:	122930   Click image for larger version

Name:	2016-04-21-ncdf_dll_0.4_G.jpg
Views:	146
Size:	330.7 KB
ID:	122931  

Gilletarom is offline   Reply With Quote
Old 20-04-2016, 23:33   #59
Registered User

Join Date: May 2012
Posts: 1,205
Re: ncdf plugin for reading NetCDF tidal currents

Sorry Gérard, the 'boundaries' bit was English frivolity!

I cannot reproduce the problems here on Windows 8.1. Can you provide details of the machine you are using? Is the problem the same with OpenGL turned on and turned off? It could be the OpenGL driver.

I have not been able to crash OpenCPN by selecting the file name.

Mike
Rasbats is offline   Reply With Quote
Old 20-04-2016, 23:43   #60
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,988
Re: ncdf plugin for reading NetCDF tidal currents

Mike,
Quote:
Originally Posted by Rasbats View Post
Sorry Gérard, the 'boundaries' bit was English frivolity!
I cannot reproduce the problems here on Windows 8.1. Can you provide details of the machine you are using? Is the problem the same with OpenGL turned on and turned off? It could be the OpenGL driver.
I have not been able to crash OpenCPN by selecting the file name.
Mike
I am using my PC Lenovo U41, icore 5. It was on windows 8.1. Now, it is on windows 10.

For previous test : OpenGL OFF
First bub : With OpenGL ON :
- If I select the file by the name, same problem and black screen.
- If I select the file using "+" then Ok

second bug : With OpenGL ON or OFF, same problem
Gilletarom is offline   Reply With Quote
Reply

Tags
current, plug


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
Tidal Currents in West, North Europe christopher1958 OpenCPN 2 03-06-2012 10:36
Want To Buy: Canadian Atlas of Tidal Currents (St. Lawrence Estuary) Westerly33 Classifieds Archive 0 02-08-2011 08:50
OpenCPN Tidal Heights and Currents NAV OpenCPN 14 25-06-2011 03:23
Tidal Currents (Not Heights) wizard-merlin OpenCPN 3 16-02-2011 03:34
Riding Tidal Currents on the ICW endoftheroad Navigation 8 03-01-2010 16:38

Advertise Here


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


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.