[Thread Prev][Thread Next][Index]
[ferret_users] high-to-low range for REPEAT over pseudo-variable
- To: ferret <ferret_users@xxxxxxxx>
- Subject: [ferret_users] high-to-low range for REPEAT over pseudo-variable
- From: Marco van Hulten <Marco.Hulten@xxxxxx>
- Date: Thu, 3 Sep 2020 16:01:21 +0200
- Arc-authentication-results: i=4; mx.google.com; dkim=pass header.i=@uib.no header.s=20160927 header.b=UcwFIE0a; arc=pass (i=2 dkim=pass dkdomain=uib.no); spf=softfail (google.com: domain of transitioning marco.hulten@xxxxxx does not designate 209.85.160.197 as permitted sender) smtp.mailfrom=marco.hulten@xxxxxx
- Arc-authentication-results: i=3; mx.google.com; dkim=pass header.i=@uib.no header.s=20160927 header.b=UcwFIE0a; arc=pass (i=2 dkim=pass dkdomain=uib.no); spf=softfail (google.com: domain of transitioning marco.hulten@xxxxxx does not designate 209.85.160.197 as permitted sender) smtp.mailfrom=marco.hulten@xxxxxx
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@uib.no header.s=20160927 header.b=UcwFIE0a; arc=pass (i=1 spf=pass spfdomain=uib.no dkim=pass dkdomain=uib.no dmarc=pass fromdomain=uib.no); spf=softfail (google.com: domain of transitioning marco.hulten@xxxxxx does not designate 65.153.203.169 as permitted sender) smtp.mailfrom=Marco.Hulten@xxxxxx
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@uib.no header.s=20160927 header.b=UcwFIE0a; spf=pass (google.com: domain of marco.hulten@xxxxxx designates 2001:700:200:30::141 as permitted sender) smtp.mailfrom=Marco.Hulten@xxxxxx; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=uib.no
- Arc-message-signature: i=4; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence :message-id:content-transfer-encoding:mime-version:organization :subject:to:from:date:sender:dkim-signature; bh=3+tyFakoPym0rFY9Gzx0YDRF8wThPLnwX8z8AcwU5Rc=; b=hqvVMaoHULqAJ8xoUzj3Hb5ABycUAJohh6Am5FzOaWoqyjRga64aIm05idU6KiPLRy dq5+pN8GrH5vgw2gE/wMnXdcLbwAjx0g4FpPY3hgEOBsbMZSvJeX5IKf/IsWpluzPbeV tkX4VW1RPYzL1ILhPWtr+Zyc3WixiFR2Li92d4Y2jRVTUX+WINJWSkbDG7qfmH98kx/0 exjV/GiqqSK2y0K5v4B6JsEpPiMS/9rNHmJgjmyO0qiGSyQf/jut76Tr8VOAbtYJ0n31 1JocOpWqJthQEzV0QgXVUwfmxvHWsGkMowFUTG8gEidoPvu+rEx2m9ml2l6TZm6FSaSt kVOA==
- Arc-message-signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:content-transfer-encoding:mime-version:organization :subject:to:from:date:dkim-signature; bh=3+tyFakoPym0rFY9Gzx0YDRF8wThPLnwX8z8AcwU5Rc=; b=K+oAvUg+ljoWFsSh+DysdAL1shmQNW6abd3DViSCWInzYmcWOZBkMcsTLPt5CC5ynh RD5W80sDEe1WQw4etUZFn/jLuv+rzqTLygNBq/UmsD1o73ZyJhVpVxOTGdNrHhJdgA5M qa4MMQs5c/x9Th9IpODvMSzynHwKbBgCaWwoBwzYMO2cag71glyotgTLAaa9R3OWN7L4 Npw2BpqNxhs2ie6U+MA4Yg/YdhP5z3Jwo0Oizlnhc9SLCK9yaGQYLsLVYFCN0u3IR9VB ftW6jHBSL9G66/LSWCqM/aFOatM0ofN0vGzSa02JnlotxPMaTFztOgv2wFtDYEtDS1cz gAOQ==
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:organization:message-id :subject:to:from:date:dkim-signature; bh=3+tyFakoPym0rFY9Gzx0YDRF8wThPLnwX8z8AcwU5Rc=; b=TdZujla1R6+bKayMLpBrXX3kQWupIRxS8l3l589I6mGKKYBCf/+lhqBpbJNWjqA1PY pahcdnEUBQc8t5vZpyi777BqMlvpIyltccPscnjHuqcdI31wJYRNaE69RlLj27PE/ORZ bly/G07Bb1VwFX4c5kcdHZUXqOr8Qf5/5m1lB9PUoJJD93oFGd+ZKarUXjcb4yMTuqBJ GGy9P9XGVklELJYn4VCYnq71INsfzxkvaii5+GHbXELAzQ3o/AwBU9+jurRUX89TgZt9 yfhfFydAFsvUpWpDLut0WjgLZbKQI5P6YPEgg0AoewzaW4HiolZo9xVXpDc3znJBoUwy vJnw==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:organization:message-id :subject:to:from:date:dkim-signature; bh=3+tyFakoPym0rFY9Gzx0YDRF8wThPLnwX8z8AcwU5Rc=; b=SOd7xnW3J2/g2w12AB6Dd+CSTPkmv+8tu2Lov9zHQwhfOq75zedHGf+neRbsIV2nTt PBavZDb5lThkNF6e4rTyTqk943uXqAcS8cz1GNlwlU6slx6tHZJEbNuhGXdLNH9K0dVx 8SYQi3wTOL+unOa1m4zlpkiUE/dtfgT6NQ3UtBVjKLMv6f8ZOFf7p29v88qKht+KsHXu 9e1ltOepER5Un+ZqFTofO1Qkn5wOuSvc40edWwImbtJkNfNuumXWlKMlCHi9asVvlhgE wjvZHv22o2Q4h5RpFqzfhhhFGGTSFzpdUkIt0UFmwS3o8fXMC0HznJ5Le0onLu5VKf7N k+hA==
- Arc-seal: i=4; a=rsa-sha256; t=1599141690; cv=pass; d=google.com; s=arc-20160816; b=zVkh7WQRDetpwxU0Q5/Z3zqoU9fdYbUSEUV1NswJnX10LFKbAII7YdNkZiABTOp+CJ bMZWG7uYU+LBmvIRyBxdcI4i3IvcCjhqk5fAWBaHRPw+JAgBUUU/pH53RlSU7ux4vo/B qw9jO55SXudfI2W+oLtuTA5cFtl5rl7joQuELzdNkTMFAZ+jiXSc65qs2UtC1mvg179o ovUa/W3KpzTdP4oOwIbZupgiH89yBU8KOF3Vcwo7ww0P88sFGCO4pEyBJLrK38UGvd88 cyspv7dvsH02Pu0jMfnWd03fK/TPZK4mQtFG5Jw6jYqlgIjsPgnqLGkNFR5KjkJ0cvrr 3+Dg==
- Arc-seal: i=3; a=rsa-sha256; t=1599141689; cv=pass; d=google.com; s=arc-20160816; b=qpsZm1PKo/HKEaLyTduwB9Yox2oJ3d579Vf9c8qn0CS2ircaVmJssxySAN8Zc8Mega Krjo/+atmdmcK1fGwxvNx3kqAtBaNlKVdk+1TBQqYFvn4MkT6/talMPKED1TIUV5WkKE 77bSUMRkMIpw0A0Xk8ZXVM8PRZdpxFLT6INOEqaqYDReW4r1n4hkKRVR1P1cLzzPrs3E xmAiHOQNGK0StKSeNZmSDGjKFtbX9jWwVirZjU89qL+HRi9RiUpGNFBDy7u61CJ98RpF pYuOFyAXndKwuGYxtAY+yD9Q1JyMEYGYpayxKCAMxIpfXku5Is/akUv7r3B9fW/qnRqi WcFg==
- Arc-seal: i=2; a=rsa-sha256; t=1599141686; cv=pass; d=google.com; s=arc-20160816; b=BfxGjIs7tOdLREkj017x2GjqptZDgOPyUbvxlXZSC1Rgv4tsrmARIb6vgpjCyFuLtm SysXuyl4WqXdYUSrELnhCYC7/ofuIZPh0xdZOUnI5I4GEWLasCQp4W7wklc3QsL1UmCr PT5vUJ4QnqBVOzCQMPAmY3D0dXA6BODT/cNRvqzepxRr4LiaQaUZs934Wv6LIZA+lePV g5P5/slNWqn5bVcHbomZQH+HHRnerb356EIRjmyM4LxK/tRm1mAY+6lItbSxw6p9pDn2 QvdJkUmyobdR+UOJcs/BOkqthCc/txQCcUiib+KaDPOvMOYSG1ZmVdiAWmliFognqeib zgOg==
- Arc-seal: i=1; a=rsa-sha256; t=1599141683; cv=none; d=google.com; s=arc-20160816; b=MsYcig2CHqIH8tAayszll2K1KdMGRvCvPTJLDRKx+7CzoM2q5u73W4V9dC3mbr375Q dqe8Qxgz1tkQMTvJA43h9FpG668JrD0grVKvOYQRgrqEw06rzmwXoF2kRwmieBryvLHb yax4x521TBBNNg3TqpUOLSsDgfBmZ+SHMNKJva9GKIf98m1TQCtLRt/ilFdwLwMn9AVa l3WG/UUxwd4G2Xw3OT+VQcgyBbi/tBY0GIox+DRZhnBZ7Lu75jALHTHFRmb89ZbY+FPF VRoXhZshfa8FqGgOo4/FtK9dIokKJWuv+rQbpT8dWYkBwgPF0xmqV71HMufNe1pKJvnK eddw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=sender:date:from:to:subject:organization:mime-version :content-transfer-encoding:message-id:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive; bh=3+tyFakoPym0rFY9Gzx0YDRF8wThPLnwX8z8AcwU5Rc=; b=C0eBUEQFdj8t+HitMlEG3xGiLJA/XwejoGTG8KZPOfZLJxeGGUsYKkwhdacRgJVlxK RD23AuZRSOzFUS7TU/Dtgp0PZN8vABmyVRr3cOS7YtD+BeNQTXuvhXPRWNUyEY5ffHZ4 Z9+UHxRodscCXWEYQVOKoOZDiUmy98EHkhWHL6g+Ey4j/tzrI1JUlFeRSzwwLzWi5AGe zF/4clNPwrIDJHH5b6Qe7oX+xSAGWPSrzlqCVt+KpAJxY2D+XhXrOQiJHp/aLwshauJG t4hvCY/aCtMZeAeg4JldRQI0bqJo5u0c7LBejwpTDEgoIQj/ybLRVDqZvgQwA2EX62Rm nGog==
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- Organization: University of Bergen
- Sender: owner-ferret_users@xxxxxxxx
Hi all,
When I use a negative/empty repeat range, nothing is done (as is with
FOR loops in other programming languages), but if a pseudo-variable is
used, it happily counts (starting from the lowest number):
yes? repeat/range=1:0/name=ii ( say JA )
yes? repeat/i=1:0 ( say JA )
JA
JA
yes? let lolo = XSequence({ 1, 9 })
yes? repeat/i=1:2 ( list/noh lolo )
1.000
9.000
yes? repeat/i=2:1 ( list/noh lolo )
1.000
9.000
yes? repeat/i=2:1:-1 ( list/noh lolo )
9.000
1.000
Why is this?
Maybe the abstract i axis does not have a direction and Ferret is
making a best guess (assuming you don't want an empty range)?
—Marco
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement