Hello
There is no automatic way ... you must interpolate.
---
Much the same answer about creating a 360 day calendar
from a 365 day calendar. I just noted that me previous
response had a typo ..
--- I changed ispan to fspan for cal360
If you have an array (say) x(time,lat,lon) and time is daily data
(say) 365 days, then, conceptually, each 360-day calendar
corresponds to 1.01389 (365/360) days of the 365-day calendar
cal365 = fspan(1,365,365)
cal360 = fspan(1,365,360)
xNew = linint1_Wrap (cal365, x(lat|:,lon|:,time|:),False, cal360,0)
http://www.ncl.ucar.edu/Document/Functions/Contributed/linint1_Wrap.shtml
----- current question
If you have an array (say) x(time,lat,lon) and time is unequally
temporally spaced, then, if 'usp365' represent the unequally
spaced time values
esp365 = fspan(1,365,365) ; euqally spaced time
xNew = linint1_Wrap(usp365, x(lat|:,lon|:,time|:), False, esp365,0)
Gwenaelle wrote:
> Hi,
>
> I have a file in time, lat, lon. There is 365 values for the time, non-
> equally-spaced.
>
> Is there a way to constrain the time values to be equally-spaced?
>
> Thank you very much!
> Gwenaelle
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jun 18 2009 - 11:09:47 MDT
This archive was generated by hypermail 2.2.0 : Fri Jun 19 2009 - 13:23:26 MDT