[Thread Prev][Thread Next][Index]
Re: [ferret_users] doubt in combining netcdf files
- To: Geetha R <geethamca2009@xxxxxxxxx>
- Subject: Re: [ferret_users] doubt in combining netcdf files
- From: Paulo Santiago <paulohsm@xxxxxxxxx>
- Date: Wed, 01 Feb 2012 10:14:29 -0200
- Cc: ferret_users@xxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=29rRjQCgdaylWuWU8Z2tBJLb5vPWXZ1XwTrdqKC5niE=; b=fQrr1kPrO6pvGeV9v1VwMTQyAfJAxqESp2umN+GNuZIAKR2hDHNMeK29JxAm52DxA4 AkyNM6HKsr2/KsPp4+q0vB4hSKAS07bKhqZJV00As7bBi7T+pQjENFVwyIbdcSdbqW25 mZkqKOd3sofc4IBAtJhInLKCwrH1psA9hnNo4=
- In-reply-to: <CAD-M3JJ3HvF=ngpGL3rJCdnPkuiMZHBQvM9-qZJ4XpCb3281pg@mail.gmail.com>
- References: <CAD-M3JJ3HvF=ngpGL3rJCdnPkuiMZHBQvM9-qZJ4XpCb3281pg@mail.gmail.com>
- Sender: owner-ferret_users@xxxxxxxx
Dear Geetha,
As far as I know, Ferret isn't able to concatenate records in time as you were trying to do.
What I can suggest you is to use a third part tool called netCDF Operators (NCO).
NCO provides the ncrcat command, which allows you to concatenate variables in time across an arbitrary number of netcdf files.
Example - concatenate files
85.nc,
86.nc, ...,
89.nc along the record dimension, and store the results in
8589.nc:
Of course, this will duplicate your data volume.
Best regards,
Paulo Santiago
2012/2/1 Geetha R
<geethamca2009@xxxxxxxxx>
Dear Users,
I have 10 netcdf files. I have to combine 10 of these files into single file such that if l=1, i have to get first file and l=2, second file etc.. I have tried using the following command:
define axis/t=1-jan-1980:10-jan-1980:1/unit=days t10days
define grid/t=t10days gg
let var1_with_T = t[g=gg]*0 + var1
set variable/title="xxx"/units="uuu" var1_with_T
use file1.cdf
save/file=concat.cdf var1_with_T[l=1]
use file2.cdf
save/file=concat.cdf/append var1_with_T[l=2]
Instead of var1 i hv given temperature, which is my parameter... But i am getting error.. Kindly help me to solve this problem.
--
With regards,
--
Paulo Santiago
Doutorado em Meteorologia
Programa de Pós-Graduação em Meteorologia
Instituto Nacional de Pesquisas Espaciais
Tel.: (12) 3186 8637
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement