Re: how to extract data from a huge nc data file?

From: Zhang Tao <Tao.Zhang_at_nyahnyahspammersnyahnyah>
Date: Tue, 24 Jun 2008 09:21:23 -0600

Hi, all,

Thanks for all the warm-hearted responses. I re-downloaded the data
which has 10 files in total.
This time, I extract data from individual files first, and then
reconcatenate all the10 small files.
It works now. The size of new data is reduced to 5G now.

     Tao

strandwg_at_ucar.edu wrote:
>
> On Mon, June 23, 2008 12:25, Zhang Tao wrote:
>> Hi, all,
>>
>> I have a huge netcdf data file
>> "thetao_O1.20C3M_1.CCSM.ocnm.1950-01_cat_1999-12.nc" and
>> the size is about 12G.
>>
>> I want to extract parts of data and generate a small size netcdf
>> file, the specific command is listed in point 3 below
>> and I get the error message "segmentation fault" see point 2 below.
>> I can use "ncdump" to look at the attribution of the data, see
>> point 1 below.
>>
>> Does anyone know how to extract data from this huge nc file?
>
> I'm the original creator of that file, however, I didn't concatenate
> all 50 years into a single file because it is so large. Anyway, to get
> the top 17 levels, you might want to try splitting the file along the
> time axis, and then reconcatenating along T once you've gotten the
> upper levels you want.
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jun 24 2008 - 09:21:23 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 25 2008 - 12:04:57 MDT