# IOAPI to netcdf4 compress mode

**URL:** <https://forum.cmascenter.org/t/ioapi-to-netcdf4-compress-mode/482>\
**Category:** I/O API\
**Created:** [January 16, 2019, 6:12pm UTC](https://forum.cmascenter.org/t/ioapi-to-netcdf4-compress-mode/482 "2019-01-16T18:12:32Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![esm](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@esm](https://forum.cmascenter.org/u/esm)\
**Post date:** [July 17, 2019, 9:46pm UTC](https://forum.cmascenter.org/t/ioapi-to-netcdf4-compress-mode/482/21 "2019-07-17T21:46:10Z")

</div>

Do you modify Makefile.nocpl.sed or Makefile.nocpl?  
The error was:

Makefile:208: recipe for target ‘airs2m3’ failed  
make[1]: \*\*\* [airs2m3] Error 1  
make[1]: Leaving directory ‘/home/ensiyeh/Build\_WRF/LIBRARIES/ioapi-3.2/m3tools’  
Makefile:198: recipe for target ‘all’ failed  
make: \*\*\* [all] Error 2

---

<div class="post-metadata">

**Author:** ![esm](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@esm](https://forum.cmascenter.org/u/esm)\
**Post date:** [July 23, 2019, 3:30pm UTC](https://forum.cmascenter.org/t/ioapi-to-netcdf4-compress-mode/482/22 "2019-07-23T15:30:00Z")

</div>

Hi cjcoat,  
I want to install netcdf-4.1.3, but it gives errors:

compilation aborted for test\_write.c (code 2)  
Makefile:494: recipe for target ‘test\_write.o’ failed  
make[2]: \* [test\_write.o] Error 2  
make[2]: Leaving directory ‘/home/ensiyeh/WRF-CMAQ/LIBRARIES/netcdf-4.1.3/nc\_test’  
Makefile:698: recipe for target ‘check-am’ failed  
make[1]: \* [check-am] Error 2  
make[1]: Leaving directory ‘/home/ensiyeh/WRF-CMAQ/LIBRARIES/netcdf-4.1.3/nc\_test’  
Makefile:551: recipe for target ‘check-recursive’ failed  
make: \* [check-recursive] Error 1

I use disable-dap disable-netcdf-4. Could you help me, please?  
I use intell compiler and ubuntu 18.04

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 15, 2019, 12:59am UTC](https://forum.cmascenter.org/t/ioapi-to-netcdf4-compress-mode/482/23 "2019-09-15T00:59:21Z")

</div>

I found disable-dap -disable-netcdf-4 NOT possible for netcdf-c to let install netcdf-fortran later versions but what makes me confusing is that they are suggesting to use this method.

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [September 15, 2019, 1:40pm UTC](https://forum.cmascenter.org/t/ioapi-to-netcdf4-compress-mode/482/24 "2019-09-15T13:40:33Z")

</div>

```
============================================================================
Testsuite summary for netCDF 4.4.1.1
============================================================================
# TOTAL: 2
# PASS: 2
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================

```

and  
============================================================================  
Testsuite summary for netCDF 4.4.1.1  
============================================================================  
# TOTAL: 2  
# PASS: 2  
# SKIP: 0  
# XFAIL: 0  
# FAIL: 0  
# XPASS: 0  
# ERROR: 0  
============================================================================

Looks like it works for me, with netCDF C netcdf-4.4.1.1 and netCDF-fortran-4.4.4.

BTW, the 4.1’s are quite early, in the transition to separate netCDF Fortran (where, among other things they silently removed the older _CALL NC_()\* Fortran interfaces. Perhaps a more recent set of netCDFs would fix the problem.

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 20, 2019, 6:08pm UTC](https://forum.cmascenter.org/t/ioapi-to-netcdf4-compress-mode/482/25 "2019-09-20T18:08:19Z")

</div>

I would be surprised to see if that works with netcdf-c-4.7.1 (and a big surprise if you can install just netcdf-c-4.7.0 with disable dap and disable-netcdf-4) and netcdf-fortran-4.5.1 (the latest ones, they didn’t work in my case, meaning make check does not succeed in netcdf-fortran install). I will try with the versions you mentioned too.

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 20, 2019, 6:40pm UTC](https://forum.cmascenter.org/t/ioapi-to-netcdf4-compress-mode/482/26 "2019-09-20T18:40:10Z")

</div>

# The netcdf-4.1.1 configured with --disable-dap --disable-netcdf-4

Testsuite summary for netCDF 4.4.1.1

============================================================================

**# TOTAL: 1**

# PASS: 1

# SKIP: 0

# XFAIL: 0

# FAIL: 0

# XPASS: 0

# ERROR: 0

============================================================================

FAIL: run\_tests.sh

============================================================================

Testsuite summary for netCDF 4.4.1.1

============================================================================

**# TOTAL: 1**

# PASS: 0

# SKIP: 0

# XFAIL: 0

# FAIL: 1

# XPASS: 0

# ERROR: 0

============================================================================

[Previous page](https://forum.cmascenter.org/t/ioapi-to-netcdf4-compress-mode/482.md?page=1)
