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
e274088f
Commit
e274088f
authored
May 05, 2010
by
Uwe Schulzweida
Browse files
Use typeOfPacking for reading spectral data
parent
1481421c
Changes
3
Hide whitespace changes
Inline
Side-by-side
configure
View file @
e274088f
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.64 for cdi 1.4.
4
.
# Generated by GNU Autoconf 2.64 for cdi 1.4.
5.1
.
#
# Report bugs to <http://code.zmaw.de/projects/cdi>.
#
...
...
@@ -549,8 +549,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME
=
'cdi'
PACKAGE_TARNAME
=
'cdi'
PACKAGE_VERSION
=
'1.4.
4
'
PACKAGE_STRING
=
'cdi 1.4.
4
'
PACKAGE_VERSION
=
'1.4.
5.1
'
PACKAGE_STRING
=
'cdi 1.4.
5.1
'
PACKAGE_BUGREPORT
=
'http://code.zmaw.de/projects/cdi'
PACKAGE_URL
=
''
...
...
@@ -1297,7 +1297,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat
<<
_ACEOF
\`
configure' configures cdi 1.4.
4
to adapt to many kinds of systems.
\`
configure' configures cdi 1.4.
5.1
to adapt to many kinds of systems.
Usage:
$0
[OPTION]... [VAR=VALUE]...
...
...
@@ -1368,7 +1368,7 @@ fi
if
test
-n
"
$ac_init_help
"
;
then
case
$ac_init_help
in
short
|
recursive
)
echo
"Configuration of cdi 1.4.
4
:"
;;
short
|
recursive
)
echo
"Configuration of cdi 1.4.
5.1
:"
;;
esac
cat
<<
\
_ACEOF
...
...
@@ -1505,7 +1505,7 @@ fi
test
-n
"
$ac_init_help
"
&&
exit
$ac_status
if
$ac_init_version
;
then
cat
<<
\
_ACEOF
cdi configure 1.4.
4
cdi configure 1.4.
5.1
generated by GNU Autoconf 2.64
Copyright (C) 2009 Free Software Foundation, Inc.
...
...
@@ -2047,7 +2047,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cdi
$as_me
1.4.
4
, which was
It was created by cdi
$as_me
1.4.
5.1
, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ $0
$@
...
...
@@ -2847,7 +2847,7 @@ fi
# Define the identity of the package.
PACKAGE
=
'cdi'
VERSION
=
'1.4.
4
'
VERSION
=
'1.4.
5.1
'
cat
>>
confdefs.h
<<
_ACEOF
...
...
@@ -7556,7 +7556,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by cdi
$as_me
1.4.
4
, which was
This file was extended by cdi
$as_me
1.4.
5.1
, which was
generated by GNU Autoconf 2.64. Invocation command line was
CONFIG_FILES =
$CONFIG_FILES
...
...
@@ -7620,7 +7620,7 @@ Report bugs to <http://code.zmaw.de/projects/cdi>."
_ACEOF
cat
>>
$CONFIG_STATUS
<<
_ACEOF
|| ac_write_fail=1
ac_cs_version="
\\
cdi config.status 1.4.
4
cdi config.status 1.4.
5.1
configured by
$0
, generated by GNU Autoconf 2.64,
with options
\\
"`
$as_echo
"
$ac_configure_args
" | sed 's/^ //; s/[
\\
""
\`\$
]/
\\\\
&/g'`
\\
"
...
...
configure.ac
View file @
e274088f
# Process this file with autoconf to produce a configure script.
AC_INIT([cdi], [1.4.
4
], [http://code.zmaw.de/projects/cdi])
AC_INIT([cdi], [1.4.
5.1
], [http://code.zmaw.de/projects/cdi])
echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}"
...
...
src/stream_gribapi.c
View file @
e274088f
...
...
@@ -503,14 +503,23 @@ void gribapiAddRecord(int streamID, int param, grib_handle *gh,
*/
case
GRID_SPECTRAL
:
{
size_t
len
=
256
;
char
typeOfPacking
[
256
];
GRIB_CHECK
(
grib_get_string
(
gh
,
"typeOfPacking"
,
typeOfPacking
,
&
len
),
0
);
// fprintf(stderr, "typeOfPacking %d %s\n", len, typeOfPacking);
grid
.
lcomplex
=
0
;
if
(
strncmp
(
typeOfPacking
,
"spectral_complex"
,
len
)
==
0
)
grid
.
lcomplex
=
1
;
grid
.
size
=
datasize
;
GRIB_CHECK
(
grib_get_long
(
gh
,
"J"
,
&
lpar
),
0
);
grid
.
trunc
=
lpar
;
/*
GRIB_CHECK(grib_get_long(gh, "complexPacking", &lpar), 0);
if ( lpar )
grid.lcomplex = 1;
else
grid.lcomplex = 0;
*/
break
;
}
/*
...
...
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