[gradsusr] Help Regarding additon of extra t dimension ina grd file

Andrew Friedman andfried at gmail.com
Thu Dec 5 11:05:38 EST 2019


Hi Tanmay,
I've addressed before by writing a ncap script (http://nco.sourceforge.net/nco.html)to convert the time increment to a larger value. I don't have access to my files right now, but I can post an example later.

-Andrew

> On 5 Dec 2019, at 12:05, Tanmay Sarkar <tanmays at barc.gov.in> wrote:
> 
> Dear Sir,
> Thank you so much for your reply. I have used this option. It is creating merged *.nc file. But that merged file is not opening using GrADS. It is giving some error saying "time unit has too small and increment".
> Don’t know why I am not able to visualize. That why I am confused.
> 
> -- 
> Thanks and Regards
> ~~~~~~~~~~~~~~~~~~~~~~~~~
> Tanmay Sarkar
> Scientific Officer D
> Safety Studies Section
> Health Physics Division
> Bhabha Atomic Research Centre
> Trombay, Mumbai -⁠ 400 085
> &
> PhD Student
> Homi Bhabha National Institute
> =========================
> Contacts:
> +91-22-25592359 (O)
> +91-9920134749 (M)
> =========================
> 
> 
> 
> -----Original Message-----
> From: gradsusr [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Dr. Suman Maity
> Sent: 05 December 2019 17:19
> To: GrADS Users Forum
> Subject: Re: [gradsusr] Help Regarding additon of extra t dimension ina grd file
> 
> Dear Tanmoy
> I don't think it's easier in grads and consequently it is problematic to write multi-timestep netcdf file in grads. However, it's very easy to implement using cdo (as you told you have corresponding netcdf file). The procedure will be the following:
> Lets suppose you first file name (that having 12 timestep) is file120.nc. Then cdo seltimestep,1/12 file120.nc first12.nc cdo mergetime file120.nc first12.nc file132.nc
> 
> Now, file132.nc will contain 132 timesteps where first 120 timesteps will be from file120.nc (original) and rest 12 timestep will be from first12.nc (first 12 timestep of file120.nc).
> 
> I hope it will solve your problem.
> 
> Cheers!!!!!!
> 
> Best
> Suman
> __________________________________________________________________
>> On 12/5/19, Tanmay Sarkar <tanmays at barc.gov.in> wrote:
>> Dear GrADS users,
>> 
>> I have a file grd file (also having netcdf file) of t dimension 
>> varying from
>> 1 to 120.
>> 
>> Now I want to make a file of t dimension of  1 to (120+12= )132.
>> 
>> The first 12 data which I am going to add is just the repetition of  
>> second
>> 12 data in new file. (or saying in another way, I want to repeat the 
>> first
>> 12 data of old file in t dimension to make new file with total 
>> 120+12=132 t
>> dimension)
>> 
>> 
>> 
>> Any idea regarding this using GrADS will be appreciable.
>> 
>> Thank you in advance of reading my problem.
>> 
>> 
>> 
>> --
>> 
>> Thanks and Regards
>> 
>> ~~~~~~~~~~~~~~~~~~~~~~~~~
>> 
>> Tanmay Sarkar
>> 
>> Scientific Officer D
>> 
>> Safety Studies Section
>> 
>> Health Physics Division
>> 
>> Bhabha Atomic Research Centre
>> 
>> Trombay, Mumbai -⁠ 400 085
>> 
>> &
>> 
>> PhD Student
>> 
>> Homi Bhabha National Institute
>> 
>> =========================
>> 
>> Contacts:
>> 
>> +91-22-25592359 (O)
>> 
>> +91-9920134749 (M)
>> 
>> =========================
> 
> 
> -- 
> ++++++++++++++++++++++++++++++++++++
> Dr. Suman Maity
> Research Scientist
> Interdisciplinary Program in Climate Studies Indian Institute of Technology Bombay Powai, Mumbai-400076, Maharashtra India.
> ++++++++++++++++++++++++++++++++++++
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> 
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20191205/4d37f345/attachment-0001.html>


More information about the gradsusr mailing list