Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
22d6de38
Commit
22d6de38
authored
Aug 20, 2015
by
Uwe Schulzweida
Browse files
coordinates attribute: changed order of lon lat coordinate
parent
2c64c11c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
22d6de38
...
...
@@ -3384,17 +3384,17 @@ int cdfDefVar(stream_t *streamptr, int varID)
{
int
ncxvarID
=
streamptr
->
ncxvarID
[
gridindex
];
int
ncyvarID
=
streamptr
->
ncyvarID
[
gridindex
];
if
(
nc
x
varID
!=
CDI_UNDEFID
)
if
(
nc
y
varID
!=
CDI_UNDEFID
)
{
len
=
strlen
(
coordinates
);
if
(
len
)
coordinates
[
len
++
]
=
' '
;
cdf_inq_varname
(
fileID
,
nc
x
varID
,
coordinates
+
len
);
cdf_inq_varname
(
fileID
,
nc
y
varID
,
coordinates
+
len
);
}
if
(
nc
y
varID
!=
CDI_UNDEFID
)
if
(
nc
x
varID
!=
CDI_UNDEFID
)
{
len
=
strlen
(
coordinates
);
if
(
len
)
coordinates
[
len
++
]
=
' '
;
cdf_inq_varname
(
fileID
,
nc
y
varID
,
coordinates
+
len
);
cdf_inq_varname
(
fileID
,
nc
x
varID
,
coordinates
+
len
);
}
}
else
if
(
gridtype
==
GRID_UNSTRUCTURED
||
gridtype
==
GRID_CURVILINEAR
)
...
...
@@ -3403,17 +3403,17 @@ int cdfDefVar(stream_t *streamptr, int varID)
int
ncxvarID
=
streamptr
->
ncxvarID
[
gridindex
];
int
ncyvarID
=
streamptr
->
ncyvarID
[
gridindex
];
int
ncavarID
=
streamptr
->
ncavarID
[
gridindex
];
if
(
nc
x
varID
!=
CDI_UNDEFID
)
if
(
nc
y
varID
!=
CDI_UNDEFID
)
{
len
=
strlen
(
coordinates
);
if
(
len
)
coordinates
[
len
++
]
=
' '
;
cdf_inq_varname
(
fileID
,
nc
x
varID
,
coordinates
+
len
);
cdf_inq_varname
(
fileID
,
nc
y
varID
,
coordinates
+
len
);
}
if
(
nc
y
varID
!=
CDI_UNDEFID
)
if
(
nc
x
varID
!=
CDI_UNDEFID
)
{
len
=
strlen
(
coordinates
);
if
(
len
)
coordinates
[
len
++
]
=
' '
;
cdf_inq_varname
(
fileID
,
nc
y
varID
,
coordinates
+
len
);
cdf_inq_varname
(
fileID
,
nc
x
varID
,
coordinates
+
len
);
}
if
(
ncavarID
!=
CDI_UNDEFID
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment