|
|
13-04-2016, 09:24
|
#46
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
|
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
|
|
|
|
13-04-2016, 13:16
|
#47
|
Registered User
Join Date: May 2012
Posts: 1,197
|
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
|
|
|
13-04-2016, 13:28
|
#48
|
Registered User
Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,734
|
Re: ncdf plugin for reading NetCDF tidal currents
|
|
|
13-04-2016, 14:38
|
#49
|
Registered User
Join Date: May 2012
Posts: 1,197
|
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
|
|
|
14-04-2016, 05:18
|
#50
|
Registered User
Join Date: May 2012
Posts: 1,197
|
Re: ncdf plugin for reading NetCDF tidal currents
|
|
|
14-04-2016, 08:12
|
#51
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
|
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.
|
|
|
20-04-2016, 00:13
|
#52
|
Registered User
Join Date: May 2012
Posts: 1,197
|
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
|
|
|
20-04-2016, 01:52
|
#53
|
Registered User
Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,982
|
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.
|
|
|
20-04-2016, 07:01
|
#54
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
|
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.
|
|
|
20-04-2016, 10:41
|
#55
|
Registered User
Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,982
|
Re: ncdf plugin for reading NetCDF tidal currents
Quote:
Originally Posted by Gilletarom
......
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.
|
|
|
20-04-2016, 11:49
|
#56
|
Registered User
Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,982
|
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.
|
|
|
20-04-2016, 14:27
|
#57
|
Registered User
Join Date: May 2012
Posts: 1,197
|
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
|
|
|
20-04-2016, 22:36
|
#58
|
Registered User
Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,982
|
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 !)
|
|
|
20-04-2016, 23:33
|
#59
|
Registered User
Join Date: May 2012
Posts: 1,197
|
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
|
|
|
20-04-2016, 23:43
|
#60
|
Registered User
Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,982
|
Re: ncdf plugin for reading NetCDF tidal currents
Mike,
Quote:
Originally Posted by Rasbats
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
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|
|
|