-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating NC_DISPATCH_VERSION #2582
Comments
I will update the documentation in netcdf-c/docs/dispatch.md to include the text below. Let me know if you need me to add more information. Appendix A. Changing NC_DISPATCH_VERSIONWhen new entries are added to the struct NC_Dispatch type
Modifying the dispatch version requires two steps:
The two should agree in value. NC_DISPATCH_VERSION IncompatibilityWhen dynamically adding a dispatch table |
Looks good Dennis, if you issue that PR against the branch |
I will wait a bit to see if jedwards4b |
I think that I understand now, thank you. |
re: Issue Unidata#2582 Update the file netcdf-c/docs/dispatch.md to include an appendix that discusses how to properly update the NC_DISPATCH_VERSION for the dispatch table.
ok, see PR #2583 |
I'm really confused about something. I am calling nc_create with mode=0x40 but when it calls back to my |
This happens in dinfermodel.c NC_infermodel at line 987 (using netcdf-c main). |
The assignment of model->format at line 766 prevents use of pnetcdf or netcdf classic formats with NC_UDF0 or NC_UDF1. |
Ed Hartnett did the first implementation of the UDF code. In any case, changing this will cause some back compatibility problems, at least with NOAA. Perhaps Ed can weigh in on this. |
Interesting - @edwardhartnett also implemented the PIO netcdf integration layer and included tests for netcdf_classic and pnetcdf. |
That sounds like a good solution. Do you want to do the PR or shall I. |
I'll give it a try, I would like to understand this layer better. |
I looked at the UDF test -- nc_test4/tst_udf.c -- to see what it did. |
In the ncint test in PIO we have:
which I think indicates an intent to have these work with classic and pnetcdf. |
I think that the deprecation warning is not valid for NC_PNETCDF - if you have integrated pnetcdf and want to open a file in that mode you still need to provide the NC_PNETCDF mode flag to the nc_create_par function, correct? |
Guys sorry I don't remember the details of this implementation! I am happy that you are carrying it forward Jim, I think it has great potential for PIO users! Unfortunately I am elbows-deep in the NOAA GRIB2 libraries and cannot help out PIO at this time. ;-( |
Ed, one thing you might be able to check: |
@DennisHeimbigner I can answer that question - it happens here. |
Sorry, I wasn't clear. I am guessing that PIO clients are either:
In either case, I am asking if those clients or that wrapper explicitly specifying |
If we want a NETCDF4 format then NC_NETCDF4 is set in the pio wrapper to nc_open or nc_create. |
Ed implemented this code in PIO but as far as I know it's not being used anywhere except in internal tests. It was done with NC_DISPATCH_VERSION=2 and has not been updated since. I have some time this week and decided to take it on and to try implementing filters. |
Sure, but we can remove/change the NC_NETCDF4 in ddispatch.c if we have reason to believe that |
YES PIO does explicitly set NC_NETCDF4. |
It occurs to me that we actually do not have to do anything. |
First this UDF supports both netcdf-4 and netcdf-3 as well as pnetcdf. |
The parallelio library added netcdf integration some time ago with NC_DISPATCH_VERSION=2. I am now trying to update to the most recent NC_DISPATCH_VERSION=5 but I
can't find any documentation related to the changes required, currently when I try to use version 5 I get an error
NetCDF: HDF error err_num = -101
even though the test should not involve any hdf5 file. Can you point me to anything documenting how to update my
user defined format to dispatch version 5?
The text was updated successfully, but these errors were encountered: