Bug 417687 - NetCDF files are not recognized by the Data Wizard
Summary: NetCDF files are not recognized by the Data Wizard
Status: REPORTED
Alias: None
Product: kst
Classification: Applications
Component: datasources (show other bugs)
Version: 2.0.8
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-15 07:19 UTC by marcocecconello
Modified: 2020-02-26 16:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screen dump (44.86 KB, image/png)
2020-02-15 07:19 UTC, marcocecconello
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marcocecconello 2020-02-15 07:19:13 UTC
Created attachment 126047 [details]
Screen dump

SUMMARY
When using Tools/Data Wizard to read NetCDF files (either .nc or .cdf) only the option of reading them as ASCII files is provided (see attachment). As a result, it is not possible to read in NetCDF files.
 
STEPS TO REPRODUCE
1. Launch KST
2. Select Tools/Data Wizard
3. Select a NetCDF to read

OBSERVED RESULT
Only ASCII file configuration setting is shown.

EXPECTED RESULT
netCDF file configuration setting should be shown.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian bullseye/sid 64bit 
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.5

ADDITIONAL INFORMATION
Comment 1 Nicolas Brisset 2020-02-26 16:17:07 UTC
I suspect this is linked with the fact that NetCDF may use HDF5 as backend in recent versions. If the netcdf library used in the current installation has not been compiled with HDF5 support (which is optional) then you may observe that behavior.
I am quite sure that the Windows builds of Kst provided on the website do not contain support for HDF5-based NetCDF files. I don't know about the netcdf package provided by Debian...

Some suggestions:
- try to open the file with h5view: if it works it could confirm the issue
- try to find out with which options the Debian netcdf package has been built
- try with a netcdf file not based on HDF5 (eg samples from the NetCDF site)
- compile your own netcdf lib with HDF5 support, and then link Kst against it