Addfiles Question when var averiging period varies over time

From: <Jacob.Klee_at_nyahnyahspammersnyahnyah>
Date: Thu, 22 Mar 2007 16:39:53 -0400
In the GFS data I am working with, the QPF related vars are either 3hrly, or 6hrly, depending on whether the forecast hour is a multiple of 3 or 6.
 
My qpestion is this:  how can I read in the QPF data over multiple files (within the world of 'addfiles' and 'addfiles_GetVar')?
 
This was my first (though not suprisingly failed) idea:
 
  if (isfilevar(grb_file, "A_PCP_3_SFC_acc6h"))
    qpf = addfiles_GetVar(f,fils+".grb","A_PCP_3_SFC_acc6h")
  else
    qpf = addfiles_GetVar(f,fils+".grb","A_PCP_3_SFC_acc3h")
  end if
 
Any thoughts?
 
-- Jacob


CONFIDENTIALITY NOTICE: This
electronic message contains information which may be legally
confidential and/or privileged and does not in any case represent a
firm ENERGY COMMODITY bid or offer relating thereto which binds the
sender without an additional express written confirmation to that
effect. The information is intended solely for the individual or
entity named above and access by anyone else is unauthorized. If
you are not the intended recipient, any disclosure, copying,
distribution, or use of the contents of this information is
prohibited and may be unlawful. If you have received this
electronic transmission in error, please reply immediately to the
sender that you have received the message in error, and delete it.
Thank you.

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 22 2007 - 14:39:53 MDT

This archive was generated by hypermail 2.2.0 : Fri Mar 23 2007 - 11:03:53 MDT