[gradsusr] Lats4d multiple functions

Mike Fiorino - NOAA Federal michael.fiorino at noaa.gov
Wed Feb 5 12:54:50 EST 2014


hi Brian,

do lats4d -h to get a list of options...  see -func command line option

you can do multiple functions in an expression, e.g., 
ta=ave(sum(precip,lon=0,lon=360),time=0z1sep2013,time=0z2sep2013)

the simplest approach would to do multiple calls of lats4d for each expression to separate 
.nc...

CC4N

Mike


On 2014-02-04 18:23, Brian Atkinson wrote:
> Hello all!
>
> New grads user here with minimal scripting experience. I've downloaded a small subset of 
> NARR 3-hour data in grib/ctl format, and would like to average this to daily summaries in 
> NetCDF format. Below is the file information.
>
> ga-> q file
> File 1 : narr-a_221_20131001_0300_000.grb
>   Descriptor: narr.ctl
>   Binary: narr-a_221_%y4%m2%d2_%h200_000.grb
>   Type = Gridded
>   Xsize = 87  Ysize = 84  Zsize = 1  Tsize = 241  Esize = 1
>   Number of Variables = 2
>      apcpsfc  0  61  ** surface Total precipitation [kg/m^2]
>      tmpsfc  0  11  ** surface Temp. [K]
>
> Is it possible to use lats4d to use multiple functions across time? I would like to grab 
> the _sum_ of precipitation and the _average_ of temperature over each day, and output 
> those parameters to a netcdf.
>
> Thanks for any info!
>
> -- 
> Graduate Student
> University of Alaska Fairbanks
> Department of Natural Resources Management
>
>
> _______________________________________________
> 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/20140205/46f8da9f/attachment.html 


More information about the gradsusr mailing list