MISR Toolkit  1.5.1
hdf2netcdf.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * Copyright by The HDF Group. *
3  * Copyright by the Board of Trustees of the University of Illinois. *
4  * All rights reserved. *
5  * *
6  * This file is part of HDF. The full HDF copyright notice, including *
7  * terms governing use, modification, and redistribution, is contained in *
8  * the COPYING file, which can be found at the root of the source code *
9  * distribution tree, or in https://support.hdfgroup.org/ftp/HDF/releases/. *
10  * If you do not have access to either file, you may request a copy from *
11  * help@hdfgroup.org. *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 /* $Id$ */
15 
16 #include "h4config.h"
17 #include "H4api_adpt.h"
18 /* If we disable the HDF version of the netCDF API (ncxxx interface)
19  (--disable-netcdf configure flag; the old way was to use -DHAVE_NETCDF compilation flag)
20  ) we need to rename all the relevant function names
21  In this version we exclude renaming the netCDF fortran API so
22  the MFHDF side must be compilied without fortran support. */
23 #ifndef H4_HAVE_NETCDF
24 #define HNAME(x) sd_##x /* pre-append 'sd_' to all netCDF fcn names */
25 #else /* !H4_HAVE_NETCDF i.e NOT USING HDF NETCDF */
26 #define HNAME(x) x
27 #endif /* H4_HAVE_NETCDF i.e. USING HDF NETCDF */
28 
29 /* If using the real netCDF library and API (use --disable-netcdf configure flag))
30  need to mangle the HDF versions of netCDF API function names
31  to not conflict w/ oriinal netCDF ones */
32 #ifndef H4_HAVE_NETCDF
33 #define ncerr HNAME(ncerr)
34 #define ncopts HNAME(ncopts)
35 #define nccreate HNAME(nccreate)
36 #define ncopen HNAME(ncopen)
37 #define ncredef HNAME(ncredef)
38 #define ncendef HNAME(ncendef)
39 #define ncclose HNAME(ncclose)
40 #define ncinquire HNAME(ncinquire)
41 #define ncsync HNAME(ncsync)
42 #define ncabort HNAME(ncabort)
43 #define ncdimdef HNAME(ncdimdef)
44 #define ncdimid HNAME(ncdimid)
45 #define ncdiminq HNAME(ncdiminq)
46 #define ncdimrename HNAME(ncdimrename)
47 #define ncvardef HNAME(ncvardef)
48 #define ncvarid HNAME(ncvarid)
49 #define ncvarinq HNAME(ncvarinq)
50 #define ncvarput1 HNAME(ncvarput1)
51 #define ncvarget1 HNAME(ncvarget1)
52 #define ncvarput HNAME(ncvarput)
53 #define ncvarget HNAME(ncvarget)
54 #define ncvarputs HNAME(ncvarputs)
55 #define ncvargets HNAME(ncvargets)
56 #define ncvarputg HNAME(ncvarputg)
57 #define ncvargetg HNAME(ncvargetg)
58 #define ncvarrename HNAME(ncvarrename)
59 #define ncattput HNAME(ncattput)
60 #define ncattinq HNAME(ncattinq)
61 #define ncattget HNAME(ncattget)
62 #define ncattcopy HNAME(ncattcopy)
63 #define ncattname HNAME(ncattname)
64 #define ncattrename HNAME(ncattrename)
65 #define ncattdel HNAME(ncattdel)
66 #define nctypelen HNAME(nctypelen)
67 #define ncsetfill HNAME(ncsetfill)
68 #define ncrecinq HNAME(ncrecinq)
69 #define ncrecget HNAME(ncrecget)
70 #define ncrecput HNAME(ncrecput)
71 #define ncnobuf HNAME(ncnobuf) /* no prototype for this one */
72 
73 #endif /* !H4_HAVE_NETCDF i.e NOT USING HDF version of netCDF API */

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:52