[MINC-users] ecattominc and minc2

Andrew Janke a.janke at gmail.com
Sun Apr 6 13:44:39 EDT 2008


Hi Jim,

On Sat, Apr 5, 2008 at 3:05 AM, EJ Nikelski <nikelski at bic.mni.mcgill.ca> wrote:
>    I seem to have stumbled upon a problem with creating a minc2 output
>  volume when using ecattominc.  With minc1, it works spiffingly ...
>  turn on minc2 (MINC_FORCE_V2=1), and it falls over thusly ...
>
>  >>Reading headers.
>  >>ncdimdef: ncid 67108864: NetCDF: Not a valid ID

This looks suspiciously like an error from a program that was compiled
against the minc2 libraries but not made "aware" of things by
including config.h in the build and thus not getting the magic

   #define MINC2 1

line.  I have just done a quick test compile of this and it seems to
fix the problem.  If you happened to have compiled MINC/ecattominc
from source (and given what I know of you I bet you did...) try
stuffing this at the top of
conversion/ecattominc/ecattominc.c

   #if HAVE_CONFIG_H
   #include "config.h"
   #endif

recompile and see if it works.  If so then I will check my changes for
this into CVS.

Thanks


-- 
Andrew Janke (a.janke at gmail.com || http://a.janke.googlepages.com/)
Canberra->Australia +61 (402) 700 883


More information about the MINC-users mailing list