extracting daily average from 6 hourly data

From: Saurabh Singh <saurabhsingh123op_at_nyahnyahspammersnyahnyah>
Date: Wed Jul 09 2014 - 02:28:19 MDT

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
-

Received on Wed Jul 09 08:28:31 2014

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