Summary: | modified netCDF datasource reader: problems with plots | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Kimberly Scott <kscott> |
Component: | general | Assignee: | kst |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
.desktop file for netCDF datasource reader
header file for netCDF datasource reader source code for netCDF datasource reader .kst file first patch cpp file header file updated kst file Updated kst file cpp file |
Description
Kimberly Scott
2005-03-31 01:41:06 UTC
Created attachment 10440 [details]
.desktop file for netCDF datasource reader
Created attachment 10441 [details]
header file for netCDF datasource reader
Created attachment 10446 [details]
source code for netCDF datasource reader
Created attachment 10447 [details]
.kst file
All of the files can be downloaded from: http://www.astro.umass.edu/~wilson/kstbugreport/nc_datasource_files.tgz The first problem is related to update. The datasource is making Kst think there is new data when there is not. I'll look at the source tomorrow to see where the problem is. Created attachment 10471 [details]
first patch
This patch gets things started. A few problems fixed:
1) properly delete the ncfile object
2) don't use global variables. this is multi-threaded code and that will cause
memory errors
3) initialize ncfile variable
4) a start at fixing readField() and general logic. The problem is that Kst
thinks there is more data, but there isn't. Don't try to interpolate inside
the datasource, let Kst do it.
If the patch doesn't compile for you, it's probably because you're using an
older Kst than the one in CVS. In that case, you can remove the
setLastUpdateResult() and lastUpdateResult() changes.
Created attachment 10511 [details]
cpp file
This source file fixes almost all of the problems. There is still an issue
with Kst thinking there is more data though. I'm working on it.
Created attachment 10512 [details]
header file
Header to go with the cpp file.
Created attachment 10513 [details]
updated kst file
Comment on attachment 10513 [details]
updated kst file
Oops, mistake
Created attachment 10514 [details]
Updated kst file
Here is the updated kst file for real.
Created attachment 10515 [details]
cpp file
Ok, this fixes everything. The problems were all in the data source, not in
Kst. Some of them included:
1) n=-1 means read 1 sample, not 1 frame
2) return the right amount of data
3) update properly
4) return proper values for frame count and samples per frame
Not a Kst bug. |