Commit 145465a2 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Replaced zaxisInqNumber()/zaxisDefNumber() by cdiInqKeyInt()/cdiDefKeyInt()...

Replaced zaxisInqNumber()/zaxisDefNumber() by cdiInqKeyInt()/cdiDefKeyInt() with CDI_KEY_NUMBEROFVGRIDUSED.
parent 91ee91d5
......@@ -506,11 +506,12 @@ printZaxisGenericInfo(const int ltype, const int zaxistype, const char *zaxisnam
static void
printZaxisReferenceInfo(const int zaxisID)
{
const int number = zaxisInqNumber(zaxisID);
if (number > 0)
int referenceNumber = 0;
cdiInqKeyInt(zaxisID, CDI_GLOBAL, CDI_KEY_NUMBEROFVGRIDUSED, &referenceNumber);
if (referenceNumber > 0)
{
fprintf(stdout, "%33s : ", "zaxis");
fprintf(stdout, "number=%d\n", number);
fprintf(stdout, "number=%d\n", referenceNumber);
}
unsigned char uuidOfVGrid[CDI_UUID_SIZE];
......
......@@ -31,7 +31,7 @@ int main(void)
zaxisID2 = zaxisCreate(ZAXIS_REFERENCE, nlev);
zaxisDefLevels(zaxisID2, levs);
zaxisDefNlevRef(zaxisID2, nlev);
zaxisDefNumber(zaxisID2, 71);
cdiDefKeyInt(zaxisID2, CDI_GLOBAL, CDI_KEY_NUMBEROFVGRIDUSED, 71);
//zaxisDefReference(zaxisID2, "http://www.x.y/vgridfile.nc");
zaxisDefUUID(zaxisID2, "8765432112345678");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment