Commit da5acbec authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

rebase.

parent 2b9327b7
......@@ -108,8 +108,9 @@ print_xvals(int gridID, int dig)
if (xsize > 0 && gridInqXvals(gridID, NULL))
{
char xname[CDI_MAX_NAME], xunits[CDI_MAX_NAME];
gridInqXname(gridID, xname);
int length = CDI_MAX_NAME;
cdiInqKeyString(gridID, CDI_XAXIS, CDI_KEY_NAME, xname, &length);
length = CDI_MAX_NAME;
cdiInqKeyString(gridID, CDI_XAXIS, CDI_KEY_UNITS, xunits, &length);
const double xfirst = gridInqXval(gridID, 0);
......@@ -134,8 +135,9 @@ print_yvals(int gridID, int dig)
if (ysize > 0 && gridInqYvals(gridID, NULL))
{
char yname[CDI_MAX_NAME], yunits[CDI_MAX_NAME];
gridInqYname(gridID, yname);
int length = CDI_MAX_NAME;
cdiInqKeyString(gridID, CDI_YAXIS, CDI_KEY_NAME, yname, &length);
length = CDI_MAX_NAME;
cdiInqKeyString(gridID, CDI_YAXIS, CDI_KEY_UNITS, yunits, &length);
const double yfirst = gridInqYval(gridID, 0);
......@@ -160,9 +162,11 @@ print_xyvals2D(int gridID, int dig)
if (gridInqXvals(gridID, NULL) && gridInqYvals(gridID, NULL))
{
char xname[CDI_MAX_NAME], yname[CDI_MAX_NAME], xunits[CDI_MAX_NAME], yunits[CDI_MAX_NAME];
gridInqXname(gridID, xname);
gridInqYname(gridID, yname);
int length = CDI_MAX_NAME;
cdiInqKeyString(gridID, CDI_XAXIS, CDI_KEY_NAME, xname, &length);
length = CDI_MAX_NAME;
cdiInqKeyString(gridID, CDI_YAXIS, CDI_KEY_NAME, yname, &length);
length = CDI_MAX_NAME;
cdiInqKeyString(gridID, CDI_XAXIS, CDI_KEY_UNITS, xunits, &length);
length = CDI_MAX_NAME;
cdiInqKeyString(gridID, CDI_YAXIS, CDI_KEY_UNITS, yunits, &length);
......
......@@ -23,7 +23,7 @@ with one of the following predefined file format types:
To set the byte order of a binary dataset with the file format
type \texttt{CDI\_FILETYPE\_SRV}, \texttt{CDI\_FILETYPE\_EXT} or \texttt{CDI\_FILETYPE\_IEG} use one of the
following predefined constants in the call to {\htmlref{\texttt{streamDefByteorder}{streamDefByteorder}}:
following predefined constants in the call to {\htmlref{\texttt{streamDefByteorder}}{streamDefByteorder}}:
\vspace*{3mm}
\hspace*{8mm}\begin{minipage}{15cm}
......
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