Return a time segment of the variable according to the lower (inclusive) and upper limits (inclusive)
Parameters: |
|
---|---|
Returns: | geodat.nc.Variable |
Examples
>>> # time segments in Nov, Dec, Jan and Feb
>>> TimeSlices(var,11.,2.,"m")
>>> # time segments from year 1990 to 2000 (inclusive)
>>> TimeSlices(var,1990,2000,"Y")
>>> '''Say 01-01-0001 and 31-01-0001 are two adjacent time
>>> steps as far as monthly data is concerned, the second
>>> time step 31-01-0001 should be considered as the
>>> beginning of February and not as January. So we
>>> want no_continuous_duplicate_month=True '''
>>> TimeSlices(var,1,2,"m",True)