Hi,
The SAMPLE functions do this:
yes? show function sampleL
SAMPLEL(TO_BE_SAMPLED,T_INDICES)
sample a field at a list of T indices
TO_BE_SAMPLED: data to sample at list of T indices
supplied
T_INDICES: list of T indices at which to sample
! Check how the grid is defined for the result. The grid in the
other directions will be passed to the result:
yes? sh func/details samplel
SAMPLEL(TO_BE_SAMPLED,T_INDICES)
sample a field at a list of T indices
Axes of result:
X: inherited from argument(s)
Y: inherited from argument(s)
Z: inherited from argument(s)
T: ABSTRACT (result will occupy indices 1...N)
E: inherited from argument(s)
F: inherited from argument(s)
TO_BE_SAMPLED: data to sample at list of T indices
supplied (FLOAT)
Influence on output axes:
X: passed to result grid
Y: passed to result grid
Z: passed to result grid
T: no influence (indicate argument limits with
"[]")
E: passed to result grid
F: passed to result grid
T_INDICES: list of T indices at which to sample
(FLOAT)
Influence on output axes:
X: no influence (indicate argument limits with
"[]")
Y: no influence (indicate argument limits with
"[]")
Z: no influence (indicate argument limits with
"[]")
T: no influence (indicate argument limits with
"[]")
E: no influence (indicate argument limits with
"[]")
F: no influence (indicate argument limits with
"[]")
-Ansley
On 8/26/2014 3:58 AM, Hussen Seid
wrote:
Dear ferreters,
I want to select the variable at different(non-sequential)
time steps using a "let" command (say at l=2, l=5, l=9,
l=11, l=15, 18, l=20). Is it possible to do this in
ferret?
!Example
use sst_test.nc
sh d
currently SET data sets:
1> ./ sst_test.nc (default)
name
title
I J K L M N
SST Monthly Mean of Sea Surface Tem 1:360
1:180 ... 1:27 ... ...
let sst_new=sst[l=2, 5, 9, 11, 15, 18, 20] ! I tried it in
this way, but doesn't work
Thanks in advance
Hussen
--
Hussen Seid Endris
PhD Student
Climate System Analysis Group
Department of Environmental and Geographical Science
University of Cape Town
Private Bag Rondebosch, 7701, Cape Town, South
Africa
Tel: (+27)
(0)74 222 4357
|