Opened 12 years ago

Closed 12 years ago

#32319 closed defect (fixed)

nco ncea error with netcdf4 support

Reported by: matt.j.oliver@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version:
Keywords: ncea Cc:
Port: nco

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I have installed the following ports

sudo port -d install netcdf
sudo port -d install nco

When I run

ncea input1.nc input2.nc output.nc
ncea: ERROR Requested netCDF4-format output file but NCO was not built with netCDF4 support
ncea: HINT: Obtain or build a netCDF4-enabled version of NCO.  Try, e.g., ./configure --enable-netcdf4 ...;make;make install

However, when I examine the port file, browser:trunk/dports/science/nco/Portfile

I see that the netcdf4 flag is enabled in the port file, so I'm confused.

This problem has been seen on both OSX 10.6.8 and OSX 10.7

Attachments (2)

input1.nc (12.0 KB) - added by matt.j.oliver@… 12 years ago.
input2.nc (12.0 KB) - added by matt.j.oliver@… 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by matt.j.oliver@…

Attachment: input1.nc added

Changed 12 years ago by matt.j.oliver@…

Attachment: input2.nc added

comment:1 Changed 12 years ago by matt.j.oliver@…

Cc: matt.j.oliver@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: takeshi@… matt.j.oliver@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to takeshi@…

comment:3 Changed 12 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

I looked at the source code nco-4.0.8/src/nco/ncra.c and found that a workaround is to set -DENABLE_NETCDF4. configure should set this when --enable-netcdf4 is set. Committed in r87655. Thanks for reporting. Let me know if you still find any strange behaviour.

Note: See TracTickets for help on using tickets.