Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
6c9c2aed
Commit
6c9c2aed
authored
Mar 09, 2009
by
Uwe Schulzweida
Browse files
gridInqXinc: bug fix
parent
81a3a524
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
6c9c2aed
...
...
@@ -4,6 +4,7 @@
* add support for GRID type LCC2 (LCC PROJ.4 version)
* grbDefTime: define tunit also for absolute time [report: Pruek Pongprueksa]
* change default calendar to CALENDAR_PROLEPTIC
* gridInqXinc: bug fix
* grid_check_cyclic: support for curvilinear grids without bounds
* streamOpenAppen: set ncmode to 2 (bug fix)
* Version 1.3.0 released
...
...
src/grid.c
View file @
6c9c2aed
...
...
@@ -1769,9 +1769,9 @@ double gridInqXinc(int gridID)
if
(
xsize
>
1
)
{
int
i
;
xinc
=
fabs
(
xvals
[
0
]
-
xvals
[
1
]
);
xinc
=
fabs
(
xvals
[
xsize
-
1
]
-
xvals
[
0
])
/
(
xsize
-
1
);
for
(
i
=
2
;
i
<
xsize
;
i
++
)
if
(
fabs
(
fabs
(
xvals
[
i
-
1
]
-
xvals
[
i
])
-
xinc
)
>
(
xinc
/
1000
)
)
break
;
if
(
fabs
(
fabs
(
xvals
[
i
-
1
]
-
xvals
[
i
])
-
xinc
)
>
0
.
01
*
xinc
)
break
;
if
(
i
<
xsize
)
xinc
=
0
;
}
...
...
src/stream_cdf.c
View file @
6c9c2aed
...
...
@@ -3070,11 +3070,11 @@ int cdfReadVarSliceDP(int streamID, int varID, int levelID, double *data, int *n
{
char
name
[
256
];
vlistInqVarName
(
vlistID
,
varID
,
name
);
Error
(
func
,
"Unsupported array structure for %s
\n
"
,
name
);
Error
(
func
,
"Unsupported array structure for
:
%s"
,
name
);
}
}
if
(
yid
!=
UNDEFID
&&
xid
!=
UNDEFID
)
if
(
swapyz
==
FALSE
&&
yid
!=
UNDEFID
&&
xid
!=
UNDEFID
)
{
if
(
xid
==
dimids
[
ndimsp
-
1
]
&&
yid
==
dimids
[
ndimsp
-
2
]
)
swapxy
=
FALSE
;
...
...
@@ -3084,7 +3084,7 @@ int cdfReadVarSliceDP(int streamID, int varID, int levelID, double *data, int *n
{
char
name
[
256
];
vlistInqVarName
(
vlistID
,
varID
,
name
);
Error
(
func
,
"Unsupported array structure for %s
\n
"
,
name
);
Error
(
func
,
"Unsupported array structure for
:
%s"
,
name
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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