[gradsusr] Writing a time average of 3d data in GRD format

Davide Sacchetti davide.sacchetti at arpal.liguria.it
Mon Jul 5 04:48:48 EDT 2021


try:
set loopdim z


Davide


Dott. Davide Sacchetti
Dipartimento Stato dell’Ambiente e Tutela dai Rischi Naturali
U.O. Clima Meteo Idro
Viale Brigate Partigiane 2, 16129 Genova (I)
tel: +39 0106437535
mail: davide.sacchetti at arpal.liguria.it  web: https://www.arpal.liguria.it/homepage/meteo.html



 Da:   <tanmays at barc.gov.in> 
 A:   GrADS Users Forum <gradsusr at gradsusr.org> 
 Inviato:   03/07/2021 20:46 
 Oggetto:   [gradsusr] Writing a time average of 3d data in GRD format 

Dear Users, 
I am trying to make a *.grd file after taking time average of 3d data  
(x,y,z). eg. 
In following step: 
>> Open ma_cexcad.ctl 
(The data is having dimensions of x=360, y=180, z=40, t=365) 
>> set z 1 40 
>>  extjan = ave(ma_cexcad, t=1, t=31) 
>> set gxout fwrite 
>> set fwrite -be extjan.grd 
>> d extjan 
 
This is giving error " invalid dimension environment, Looping dimension  
does not vary". 
This is because I am varying z from 1 to 40. If i fix z=1 the this will  
write. 
But I want a *.grd file (if I write in *.nc file this is going fine but  
i want *.grd file only because i can add all *grd files in simple manner  
later) which will contain the parameter extjan with its all vertical  
level. 
 
How to do that? 
Please help. 
Thank you in advance. 
 
Regards 
Tanmay 
_______________________________________________ 
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/20210705/27f8b527/attachment.html>


More information about the gradsusr mailing list