Re: extracting daily average from 6 hourly data

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Jul 09 2014 - 06:08:17 MDT

There is an *undocumented/unsupported/untested* function in shea_util.ncl
     function calc_day_values(x, arith[1]:string, nDim[1]:integer,
opt[1]:logical)

     usage sample:

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
<https://www.ncl.ucar.edu/Document/Functions/Contributed/contrib.shtml>"

   xDayAvg = *calc_day_values*(x, "avg", 0, False)

===

It has the same interface as

https://www.ncl.ucar.edu/Document/Functions/Contributed/calculate_monthly_values.shtml

---



On Wed, Jul 9, 2014 at 2:28 AM, Saurabh Singh <saurabhsingh123op@gmail.com>
wrote:

>
> NCL version - 6.2
> OS: UBUNTU 13.04
>
> Dear Sir
>
> i use the following step to extract 6 hourly data from FNL file :
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
>
> files = systemfunc("ls -1 /home/cee1/Desktop/NC/fnl_2007*") + ".nc"
> a = addfiles(files,"r")
> geopot=a[:]->HGT_3_ISBL
> gppoint1 = geopot(:,13,1,0)
> asciiwrite("gp1.txt",gppoint1)
>
> and i get 6 hourly point data output.
>
> my question is : is there an NCL command or any way to get output file as
> a daily average of the variable i.e 1 file daily instead of 4
> 6 hourly files everyday.
>
> regards
> Saurabh
> -
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

Received on Wed Jul 09 12:08:27 2014

This archive was generated by hypermail 2.1.8 : Wed Jul 23 2014 - 15:33:46 MDT