Hi, $x->clump (1 .. -1) should work according to the docs, but it apparently doesn't. boundaries 0 ... ndims -1 work fine.
pdl> help $k2 This variable is Float D [2,772096,1,1,1,1,30,1,1,1,1,1] pdl> $k2= $k->clump(2 .. ($k->ndims-1)) Best Ingo pdl> help $k2 This variable is Float D [2,1,23162880] -C 0.00KB pdl> $k2= $k->clump(2 .. (-1)) Runtime error: Usage: PDL::_clump_int(PARENT,CHILD,n) (you may leave output variables out of list) at (eval 692) line 5. pdl> $k2= $k->clump(2 .. ($k->ndims)) Runtime error: dimension index 14 larger than greatest dimension at /ceph/mri.meduniwien.ac.at/departments/physics/metabolism/lab/cardiac_31P/perlbrew/perls/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux/PDL/Core.pm line 1587. PDL::clump(MRI::ReadData=HASH(0x559ebeffb570), 2, 3, 4, 5, 6, 7, 8, ...) called at (eval 693) line 5
_______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel