I don't know anything about PDL, but I see the function is "new" so
maybe there is an "open" function call? Perhaps "new" assumes that
the file doesn't exist already and doesn't like it when it does. (Is
line 9 the "my $nc =" or "$nc->put"?)
-- Ted
On Jul 15, 2009, at 4:03 PM, Brice Lambi wrote:
my $nc = PDL::NetCDF->new("testnc.nc", {MODE=>O_RDWR|
REVERSE_DIMS=>1});
my $data = pdl [1,2,3];
$nc->put('time_nominal', ['recNum'], $data);
$nc->close();