Re: [netcdfgroup] PDL::NetCDF cannot write to existing netcdf files

  • To: Brice Lambi <lambi@xxxxxxxx>
  • Subject: Re: [netcdfgroup] PDL::NetCDF cannot write to existing netcdf files
  • From: Ted Mansell <Ted.Mansell@xxxxxxxx>
  • Date: Wed, 15 Jul 2009 16:46:34 -0500
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();




  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: