Skip to content
GitLab
Menu
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
49351b1a
Commit
49351b1a
authored
Jan 31, 2011
by
Uwe Schulzweida
Browse files
zaxis: docu update
parent
bc5c9e38
Changes
4
Hide whitespace changes
Inline
Side-by-side
doc/tex/dataset.tex
View file @
49351b1a
...
...
@@ -4,14 +4,15 @@ with one of the following predefined file format types:
\vspace*
{
3mm
}
\hspace*
{
8mm
}
\begin{minipage}
{
15cm
}
\begin{deflist}
{{
\large\tt
FILETYPE
\_
GRB
\ \
}}
\item
[{\large\tt FILETYPE\_GRB}]
File type GRIB version 1
\item
[{\large\tt FILETYPE\_NC }]
File type netCDF
\begin{deflist}
{{
\large\tt
FILETYPE
\_
GRB2
\ \
}}
\item
[{\large\tt FILETYPE\_GRB}]
File type GRIB version 1
\item
[{\large\tt FILETYPE\_GRB2}]
File type GRIB version 2
\item
[{\large\tt FILETYPE\_NC }]
File type netCDF
\item
[{\large\tt FILETYPE\_NC2}]
File type netCDF version 2 (64-bit)
\item
[{\large\tt FILETYPE\_NC4}]
File type netCDF-4 classic (HDF5)
\item
[{\large\tt FILETYPE\_SRV}]
File type SERVICE
\item
[{\large\tt FILETYPE\_EXT}]
File type EXTRA
\item
[{\large\tt FILETYPE\_IEG}]
File type IEG
\item
[{\large\tt FILETYPE\_SRV}]
File type SERVICE
\item
[{\large\tt FILETYPE\_EXT}]
File type EXTRA
\item
[{\large\tt FILETYPE\_IEG}]
File type IEG
\end{deflist}
\end{minipage}
\vspace*
{
3mm
}
...
...
src/cdi.h
View file @
49351b1a
/*
CDI C header file
This is the only file that must be included to use the CDI library from C.
*/
#ifndef _CDI_H
#define _CDI_H
...
...
@@ -8,16 +14,16 @@ extern "C" {
#endif
#define CDI_UNDEFID -1
#define CDI_GLOBAL -1
/* Global var ID for vlist */
#define CDI_GLOBAL -1
/* Global var ID for vlist
*/
/* Byte order */
#define CDI_BIGENDIAN 0
/* Byte order BIGENDIAN */
#define CDI_LITTLEENDIAN 1
/* Byte order LITTLEENDIAN */
#define CDI_BIGENDIAN 0
/* Byte order BIGENDIAN
*/
#define CDI_LITTLEENDIAN 1
/* Byte order LITTLEENDIAN
*/
#define CDI_REAL 1
/* Real numbers */
#define CDI_COMP 2
/* Complex numbers */
#define CDI_BOTH 3
/* Both numbers */
#define CDI_REAL 1
/* Real numbers
*/
#define CDI_COMP 2
/* Complex numbers
*/
#define CDI_BOTH 3
/* Both numbers
*/
/* Error identifier */
...
...
@@ -106,37 +112,37 @@ extern "C" {
/* GRID types */
#define GRID_GENERIC 1
/* Generic grid */
#define GRID_GAUSSIAN 2
/* Regular Gaussian lon/lat grid */
#define GRID_GAUSSIAN_REDUCED 3
/* Reduced Gaussian lon/lat grid */
#define GRID_LONLAT 4
/* Regular longitude/latitude grid */
#define GRID_SPECTRAL 5
/* Spherical harmonic coefficients */
#define GRID_FOURIER 6
/* Fourier coefficients */
#define GRID_GME 7
/* Icosahedral-hexagonal GME grid */
#define GRID_TRAJECTORY 8
#define GRID_UNSTRUCTURED 9
/* General unstructured grid */
#define GRID_CURVILINEAR 10
/* Curvilinear grid */
#define GRID_LCC 11
/* Lambert Conformal Conic (GRIB) */
#define GRID_LCC2 12
/* Lambert Conformal Conic (PROJ) */
#define GRID_LAEA 13
/* Lambert Azimuthal Equal Area */
#define GRID_SINUSOIDAL 14
/* Sinusoidal */
#define GRID_NUMBER 15
/* Number of grid */
#define GRID_GENERIC 1
/* Generic grid
*/
#define GRID_GAUSSIAN 2
/* Regular Gaussian lon/lat grid
*/
#define GRID_GAUSSIAN_REDUCED 3
/* Reduced Gaussian lon/lat grid
*/
#define GRID_LONLAT 4
/* Regular longitude/latitude grid
*/
#define GRID_SPECTRAL 5
/* Spherical harmonic coefficients
*/
#define GRID_FOURIER 6
/* Fourier coefficients
*/
#define GRID_GME 7
/* Icosahedral-hexagonal GME grid
*/
#define GRID_TRAJECTORY 8
/* Trajectory */
#define GRID_UNSTRUCTURED 9
/* General unstructured grid
*/
#define GRID_CURVILINEAR 10
/* Curvilinear grid
*/
#define GRID_LCC 11
/* Lambert Conformal Conic (GRIB)
*/
#define GRID_LCC2 12
/* Lambert Conformal Conic (PROJ)
*/
#define GRID_LAEA 13
/* Lambert Azimuthal Equal Area
*/
#define GRID_SINUSOIDAL 14
/* Sinusoidal
*/
#define GRID_NUMBER 15
/* Number of grid
*/
/* ZAXIS types */
#define ZAXIS_SURFACE 0
#define ZAXIS_GENERIC 1
#define ZAXIS_HYBRID 2
#define ZAXIS_HYBRID_HALF 3
#define ZAXIS_PRESSURE 4
#define ZAXIS_HEIGHT 5
#define ZAXIS_DEPTH_BELOW_SEA 6
#define ZAXIS_DEPTH_BELOW_LAND 7
#define ZAXIS_ISENTROPIC 8
#define ZAXIS_TRAJECTORY 9
#define ZAXIS_ALTITUDE 10
#define ZAXIS_SIGMA 11
#define ZAXIS_MEANSEA 12
#define ZAXIS_SURFACE 0
/* Surface level */
#define ZAXIS_GENERIC 1
/* Generic level */
#define ZAXIS_HYBRID 2
/* Hybrid level */
#define ZAXIS_HYBRID_HALF 3
/* Hybrid half level */
#define ZAXIS_PRESSURE 4
/* Isobaric pressure level in Pascal */
#define ZAXIS_HEIGHT 5
/* Height above ground in meters */
#define ZAXIS_DEPTH_BELOW_SEA 6
/* Depth below sea level in meters */
#define ZAXIS_DEPTH_BELOW_LAND 7
/* Depth below land surface in centimeters */
#define ZAXIS_ISENTROPIC 8
/* Isentropic */
#define ZAXIS_TRAJECTORY 9
/* Trajectory */
#define ZAXIS_ALTITUDE 10
/* Altitude above mean sea level in meters */
#define ZAXIS_SIGMA 11
/* Sigma level */
#define ZAXIS_MEANSEA 12
/* Mean sea level */
/* TAXIS types */
...
...
src/cdi.inc
View file @
49351b1a
...
...
@@ -196,8 +196,8 @@
PARAMETER
(
GRID_GME
=
7
)
INTEGER
GRID_TRAJECTORY
PARAMETER
(
GRID_TRAJECTORY
=
8
)
INTEGER
GRID_
CELL
PARAMETER
(
GRID_
CELL
=
9
)
INTEGER
GRID_
UNSTRUCTURED
PARAMETER
(
GRID_
UNSTRUCTURED
=
9
)
INTEGER
GRID_CURVILINEAR
PARAMETER
(
GRID_CURVILINEAR
=
10
)
INTEGER
GRID_LCC
...
...
@@ -208,6 +208,8 @@
PARAMETER
(
GRID_LAEA
=
13
)
INTEGER
GRID_SINUSOIDAL
PARAMETER
(
GRID_SINUSOIDAL
=
14
)
INTEGER
GRID_NUMBER
PARAMETER
(
GRID_NUMBER
=
15
)
!
!
ZAXIS
types
!
...
...
@@ -1363,6 +1365,27 @@
!
INTEGER
ni3
)
EXTERNAL
gridDefGMEni3
!
!
Number
grid
!
INTEGER
gridInqNumber
!
(
INTEGER
gridID
)
EXTERNAL
gridInqNumber
!
gridDefNumber
!
(
INTEGER
gridID
,
!
INTEGER
number
)
EXTERNAL
gridDefNumber
INTEGER
gridInqPosition
!
(
INTEGER
gridID
)
EXTERNAL
gridInqPosition
!
gridDefPosition
!
(
INTEGER
gridID
,
!
INTEGER
position
)
EXTERNAL
gridDefPosition
!
!
Lambert
Conformal
Conic
grid
(
GRIB
version
)
!
...
...
src/cdiFortran.c
View file @
49351b1a
...
...
@@ -285,6 +285,13 @@ FCALLSCSUB2 (gridDefGMEni2, GRIDDEFGMENI2, griddefgmeni2, INT, INT)
FCALLSCFUN1
(
INT
,
gridInqGMEni3
,
GRIDINQGMENI3
,
gridinqgmeni3
,
INT
)
FCALLSCSUB2
(
gridDefGMEni3
,
GRIDDEFGMENI3
,
griddefgmeni3
,
INT
,
INT
)
/* Number grid */
FCALLSCFUN1
(
INT
,
gridInqNumber
,
GRIDINQNUMBER
,
gridinqnumber
,
INT
)
FCALLSCSUB2
(
gridDefNumber
,
GRIDDEFNUMBER
,
griddefnumber
,
INT
,
INT
)
FCALLSCFUN1
(
INT
,
gridInqPosition
,
GRIDINQPOSITION
,
gridinqposition
,
INT
)
FCALLSCSUB2
(
gridDefPosition
,
GRIDDEFPOSITION
,
griddefposition
,
INT
,
INT
)
/* Lambert Conformal Conic grid (GRIB version) */
FCALLSCSUB10
(
gridDefLCC
,
GRIDDEFLCC
,
griddeflcc
,
INT
,
DOUBLE
,
DOUBLE
,
DOUBLE
,
DOUBLE
,
DOUBLE
,
DOUBLE
,
DOUBLE
,
INT
,
INT
)
...
...
Write
Preview
Supports
Markdown
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