Hi,

I'm using PDL::NetCDF to create netcdf files and everything
works as it should. However, when I use it on one of our
systems that has relatively slow disk IO things slow down a
lot (particularly adding attributes).

I use the method described here:
http://search.cpan.org/dist/PDL-NetCDF/netcdf.pd#WRITING_NetCDF-FILES_EFFICIENTLY

I was wondering if it would be possible to create the netcdf
file *in memory* somehow and then only write to disk once the
whole thing is completed. Can anyone suggest any perl tricks
to do this?

I normally create a new file on disk like this:

$nc  = PDL::NetCDF->new($filename,{MODE => O_CREAT|O_RDWR })

Thanks,
Trevor.
--
Please consider the environment before printing this email.
NIWA is the trading name of the National Institute of Water & Atmospheric 
Research Ltd.

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to