Join Date: Mar 2010
Location: France Boat: 10.50 mètres
Re: oGrib2 Plugin using the ECMWF grib_api
Originally Posted by Rasbats Further Update ...
A Windows compiled version of ncdf_pi has been left in the Extras folder, with an example tidal current nc file. https://github.com/Rasbats/ncdf_pi
I placed ncdf_pi.dll in folder plugins, with the other dll.
Then, I run O (4.2.0, Or 4.2.1)
Then "options" and then "Plugins" but immediatly, Crash. Today, 14:59 #19Rasbats
Join Date: May 2012
Re: oGrib2 Plugin using the ECMWF grib_api
Strange. I have tested on two other machines and each opened the plugin without a problem.
Do you still have NetCDF 4.4.0 installed?
I have taken this post and started another thread for netcdf.
I have tried building the plugin and seem to be able to build it for Debug,
but not Release. Please see the attached.
Then I tried the ncdf_pi.dll and my version of Opencpn would not start any and had some errors. I took then deleted the dll and my version of opencpn 4.2 still would not start, so perhaps something else has changed.... but I am certain I have iconv.dll in the main directorty.
More later. Later: Built and updated Opencpn v4.2 and installed, now no longer have those errors and the program starts.
From your attached doc it looks like the link to opencpn.lib is not working.
Could you try putting both ocpn_plugin.h and opencpn.lib (from O4.2) in your build directory and recompiling. For release you need to make the same changes to 'properties' as you did for debug. The 'properties' in VS2013 do not carry over from 'debug' to 'release'.
I have just downloaded a zip of ncdf_pi from GitHub onto a fairly clean XP machine. Unzipped and installed NetCDF from the Extras folder (add to PATH for all users). Installed OpenCPN 4.2 (only 3.2.2 previously on this pc). Copied ncdf.dll from Extras into the plugins folder. Started O and enabled ncdf. It worked (had to switch OpenGL off).
Rick ... if you could try this route with using the pre-compiled ncdf_pi it could confirm/deny whether I am going totally crazy.
Any Win user ... Would appreciate another test of just using the pre-compiled plugin with OpenCPN 4.2. There is an example of a tidal current netcdf (nc) file in the Extras folder to use with the plugin.
My development pc and tablet are Win 8.1, where the plugin worked. Is Win 10 the problem?
Ok it builds and you can the one I built....
- Now I found the problem!
The plugin window does not open up big enough to expose the Current checkbox!
Also I have not used this plugin enough to know that it is there!
Can you make the Preferences window that pops up be bigger to show the checkboxes?
Or perhaps have both checkboxes checked to begin with, when the plugin is first started?
That would help a lot.
I can display
ibi_example.nc 000m Forecast thru 660 m Forecast
ibi_test.nc 000m Forecast thru 660 m Forecast
ibi,nc 000m Forecast thru 1440 m Forecast
Thanks. I believe the build instructions in ncdf4.txt for setting up VC++ are now correct.
Github has been updated. Checkbox for current is ticked by default. Position moved.
I cannot make the display of the area downloaded totally flexible. Following a suggestion by Gilletarom I am now looking at defining areas ... English Channel, Irish Sea, South Brittany etc etc. If you have selected an area from Copernicus that includes that region it will display. I do not want to make the areas too large because of the size of the download.
Must make it work on OpenGL!!! Forward/Back buttons. Anything else?
Mike, I think defining areas is a good idea.
I wonder if there is a way of reducing the display of all arrows at larger scales?
Perhaps just an option to display only every other or every 3rd grib arrow, perhaps associated with the scale? This would help with the density of the the display and redraw time. It would also help with when the "force" is checked. Just an idea.
Attached is your most current version of ncdf.dll along with updated notes for creating the dll using VC++. Also attached are some images of the current files, for others to see what this plugin is doing.
Thanks creating this plugin, it will be especially helpful to European Cruisers because the current files are of that area, I guess.
This is beta. Take the pdf off the ncdf.dll and place it in your 4.2.0 or 4.2.1 Opencpn plugin directory. Then point the plugin to some downloaded current files. I'll make a Ncdf gb2 directory in File Thingie for current files for testers to try.
I have python27 on the PC and would like to make a script that fits with my setup which I could start with Launcher_pi (adding another operation) as I have done with three VDR_player files.
Can you explain what the paths are ?
First path: goes to python
Second path: location of another script in py ?
Then it looks like you are combining two http: sources into one file
located somewhere "C:\plugins\cdo" with the name ibi.nc
Currently I am putting a single line of python script into Launcher in order to play the VDR files. How would you suggest I set this up?