[Thread Prev][Thread Next][Index]
Re: [ferret_users] Problem with 6 hourly to daily average
- To: Martin Schmidt <martin.schmidt@xxxxxxxxxxxxxxxxx>
- Subject: Re: [ferret_users] Problem with 6 hourly to daily average
- From: William Kessler <william.s.kessler@xxxxxxxx>
- Date: Sat, 9 Feb 2019 12:42:53 -0800
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=hdCRQXUH; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=hdCRQXUH; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence:to :references:message-id:content-transfer-encoding:cc:date:in-reply-to :from:subject:mime-version:dkim-signature; bh=VhiSxmW4+l4i6jg86sYpFG4BUCTgGOJwmIhBUQEJuEk=; b=feiBiGWdNQYm2RBp6oZ0A1hTswkjPF/+lmkzkMN7pHuODUqXsFEuLDDEDtk/pS3OiF V363enX3YmkGt5XJ6K5x4rghp++RYtxPmjxihL1yXoqGRlgTY20zvzUjFJd0KgjqngVU WEKPvfmoDRHuxm41CiXDWWeHW47fgEUp5RBmPXo8ujbUk3X/cGKxbfLL9kXoU/JHp62f gAZY7yIgLPAR/+Eh87pMROJ6pZuIW5VIuoYKjbE39eF5cWyG1/JKQMWPyBcVnpbZD1hh CVBg5Ytbelke878w6eQv1NBqKGbwdTN0oE7xHxP472Me/0Lxwb8L7wJe4Cl8AJuLVp1v 4USg==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:dkim-signature; bh=VhiSxmW4+l4i6jg86sYpFG4BUCTgGOJwmIhBUQEJuEk=; b=aVEHVL70TgzZVGUYgt+mVlYL4z2AG6VYaafzFJC6kUhvTle6erKKz5YUtzFaSsepdo ZoVC3r9yVslg0i2IWld8sNUM+3G+Xjzh6frcH7DpjgTI3FXima2y/kaqUo4NbtplzXOp Euaz8yKpOYCN2AdLYgWfmO842xMp2D1ra7X1bGMgK9oAhfMysMcF2ZVc3Ht8x1sDTP1F Al65nJPvxclZhUOCKOAMdxkGKAS7UdVbuuoHgx9azmY/svN+b/9rwNWk34eLL3uNp+Gi NIR6zj65FqBEtCKb8yvSKEZAZWTOF/5mz85VVR8FTWnDJv06bAm0xMRf2jCCO2p52GDh Uy+A==
- Arc-seal: i=2; a=rsa-sha256; t=1549744976; cv=pass; d=google.com; s=arc-20160816; b=RZWEWAWZEzQnkLy0eE8xwbRREzpR+vcKZJ882DrSfKO3zv4OBDg6gvxb2Mqv8kYpcP lp5sD3tePrXZp/3X0Fc/TSpzirDO5WeGDuRoeJsagzg4ObyBrszC1oGBwA/3QHyqMth0 DoWui95YotWRMjknEdGrPcrE2qmF018Sdiz2Hs0X3IdyiOZBRcz+cTFXcBfiuw2q4lFl PueJQWWEi/LDom1L+gUsDjVoagBdGDMkT1eJamVtOjXrMbDG9XXgMjv6dgA6wPj31EP4 1sn51K0DoDGf31hA+jpwa60OpiEvVlwvgh7YZKP++JVP0YbWF5+FzbjBF3TPkgLxJZKB Xf1A==
- Arc-seal: i=1; a=rsa-sha256; t=1549744975; cv=none; d=google.com; s=arc-20160816; b=yR5edaJDeyTz/HfQx4oASSqPEyGRN2oTkwxahM6WIFjwNejJMO775zilV6oAiL5Epj pz+K7lGGy6K6E2pC6VaOkklRaYXsjEeTFYenYQGpmKgkgKpcxF7mj0Tv/TX3dlTQIO3P 59nM4qhMY16PT4n1GoPF8IJVPLonzupe7N6TiClTqSEuPyHbTFg95WTzsel5eCEl+Dtj Xgb71lfIP24W+EpxPsr/JDEaQlJ6qPylrPeyiFKYMJG1gnNrJlC9OTAqAcgwI6TqMpk9 8NV3Wvq6o9/9ukw3umOTp2IbrnbbXOfrdFlFQ2r99fYuHa6/8G6Xvz42YkRq18Fc/h72 oabw==
- Cc: Ferret <ferret_users@xxxxxxxx>, satyeshghetiya@xxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive; bh=VhiSxmW4+l4i6jg86sYpFG4BUCTgGOJwmIhBUQEJuEk=; b=awmEDyiAEHEFEdJNtI/OL50s7UXCTx/3LKaES0IzljLsuYHkOivkIstAIv28iHBGWA K9XIvD1hxskKgo6LOyAefzMSVV69Ed98pCT/HFVo2YOsiLEZni1rp4oixcpJQeLV1w/4 /0sk8zit72NFgYwVJLULG3voBoDW/aO6w5Cn3g4IleP7s4YubEMBZA573VfR705y/wXW Gv9+PWaUld4TpngvDery4Fjn10Gq4+3wO41sl4Z8XU1eycrvrTtd9uqd89k0pOVdH4vW wOeeM3vgUZYRvq77/IwPx+FixTDQaRdHm868kubAPDPGkOKEeM8pvAtIhkLwXQzfw6l4 E9LQ==
- In-reply-to: <6f1a78e4-82bb-5eec-1b2c-9e39a12ddbcc@io-warnemuende.de>
- 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
- References: <CALC=m4p8s_=qMNw8+Yws_kpCaFbBat=P7aYm1G6eZmU-1Oq8mQ@mail.gmail.com> <6f1a78e4-82bb-5eec-1b2c-9e39a12ddbcc@io-warnemuende.de>
- Sender: owner-ferret_users@xxxxxxxx
No, Satyeesh's time syntax is correct: there must be a ':' between the day and the hour in a time specification. That's why the quotes are needed; otherwise the hour would be interpreted as another argument (e.g., delta-t). I would have thought the minutes also needed to be specified but apparently not.
But if you want a daily average, it would be safer to define it explicitly, depending on what exactly you mean by a daily average.
If you intend it to be the mean of the values at hours 0,6,12,18, then
! make an explicit running 4-timestep average:
let var_daily_ave = (var+var[l=@shf:1]+var[l=@shf:2]+var[l=@shf:3])/4
Now subsample at hour 0:
define axis/t="01-jan-1993":"31-dec-2017":1/units=day t24h
let var_d = var_daily_ave[gt=t24h]
! check your work for an interval short enough to see what's happening:
plot/t=some_start_date:some_end_date var,var_d
> On Feb 9, 2019, at 6:50 AM, Martin Schmidt <martin.schmidt@xxxxxxxxxxxxxxxxx> wrote:
>
> Hi,
>
> seems the syntax of your times is not correct. I should be:
> define axis/t="01-jan-1993 00:00":"31-dec-2017 18:00"/units=days/npoints=36524 t6
>
> The same for the other axis.
> Best,
> Martin
> Am 09.02.2019 um 15:35 schrieb Satyesh Ghetiya:
>> Dear all,
>> I am wanting to convert 6 hourly (0,6,12,18 hr) data to daily average.
>>
>> 6 hourly existing time axis, of variable var, is:
>> define axis/t="01-jan-1993:00:00":"31-dec-2017:18:00"/units=days/npoints=36524 t6
>>
>> and daily time axis (on which I want my final average) is:
>> define axis/t="01-jan-1993:09":"31-dec-2017:09":24/units=hours t9
>>
>> Now, following step should give my desired daily final mean:
>> let var_d=var[gt=t9@ave]
>>
>> (Above method is given by the thread :https://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2004/msg00540.html )
>>
>> But the problem is: var_d is not being calculated except at l=1. I have improvised all steps and all seem very fine, so var_d should give all daily values. But, except at l=1, all other l's are showing 'No Valid Data'. Any experience in this regard ?
>>
>> Hope to hear soon.
>>
>> Regards,
>> G Satyesh
>>
>
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement