From Andrew.Sobelman at morganstanley.com Tue Apr 4 14:43:36 2006 From: Andrew.Sobelman at morganstanley.com (Sobelman, Andrew (IT)) Date: Tue, 4 Apr 2006 16:43:36 -0400 Subject: Newbie question Message-ID: <4863FA9F5ABEDF40B9F388187428149C04FD404D@NYWEXMB57.msad.ms.com> Hi, I am relatively new to using PDL::netCDF and don't seem to be able to find sufficient information in the perl man pages I was wondering if there was any code samples available of the following : 1) Open a _pre-built_ PDL::netCDF file 2) pull out one "index" slice. 3) modify a the contents of one cell in the slice. 4) put the slice back into the cdfObj 5) save the cdf Ive have successfully gotten as far as 3, but cannot seem to execute steps 4&5. I did confirm that the cdf file was world read/writable and I opened the cdf with O_RDWR. I do know that the cdf file was created with the default internal permissions..... -andrew -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. ============================================================================== To unsubscribe netcdf-perl, visit: http://www.unidata.ucar.edu/mailing-list-delete-form.html ============================================================================== From Andrew.Sobelman at morganstanley.com Wed Apr 5 08:21:32 2006 From: Andrew.Sobelman at morganstanley.com (Sobelman, Andrew (IT)) Date: Wed, 5 Apr 2006 10:21:32 -0400 Subject: Newbie question Message-ID: <4863FA9F5ABEDF40B9F388187428149C04FD410E@NYWEXMB57.msad.ms.com> I think Ive narrowed down my problem to the point where I can ask a more relevent question about the perl implementation of NetCDF: Can I ever open a NetCDF file modify the data and save it out, or do I need to read in the data, modify and store back out to a new file? -----Original Message----- From: Sobelman, Andrew (IT) Sent: Tuesday, April 04, 2006 4:44 PM To: netcdf-perl at unidata.ucar.edu Cc: Sobelman, Andrew (IT) Subject: Newbie question Hi, I am relatively new to using PDL::netCDF and don't seem to be able to find sufficient information in the perl man pages I was wondering if there was any code samples available of the following : 1) Open a _pre-built_ PDL::netCDF file 2) pull out one "index" slice. 3) modify a the contents of one cell in the slice. 4) put the slice back into the cdfObj 5) save the cdf Ive have successfully gotten as far as 3, but cannot seem to execute steps 4&5. I did confirm that the cdf file was world read/writable and I opened the cdf with O_RDWR. I do know that the cdf file was created with the default internal permissions..... -andrew -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. ============================================================================== To unsubscribe netcdf-perl, visit: http://www.unidata.ucar.edu/mailing-list-delete-form.html ==============================================================================