[Thread Prev][Thread Next][Index]
Re: [ferret_users] Monthly climatologies repeated along long time axis
- To: Paul Goddard <pgoddard@xxxxxxxxxxxxxxxxx>
- Subject: Re: [ferret_users] Monthly climatologies repeated along long time axis
- From: William Kessler <william.s.kessler@xxxxxxxx>
- Date: Mon, 10 Jul 2017 09:31:16 -0700
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa-gov.20150623.gappssmtp.com header.b=Te/G7JJV; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 2607:f8b0:400e:c05::230 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@noaa-gov.20150623.gappssmtp.com header.b=Te/G7JJV; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 2607:f8b0:400e:c05::230 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx
- 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 :subject:mime-version:from:arc-authentication-results :arc-message-signature:dkim-signature:arc-authentication-results; bh=zKCcCvz3jiRSzR4ndbaD0vyK8CsgpQJrmBpnJm9vadg=; b=tU8fqSsqCvVStm+syaScQDNyFhCn4E+yBVIC1GLKIPuR81KAlbINQffx9OcH9nlOFV A04uaa8KP+Gsux3l+vPOdziOJ1QoSUb8+SU3FnTWhwo82DBPWTkAuVWqAB7m6vHwivpQ 1K4/r111CLvD3I+ymGxx8h4pOGFeTlSARIJCbdjO4q03ky/z9q9QHGFRRL9WBNvqJAmC QC0Ozvrp0BT0eOwZHL1seRvfg8kcT6P6P5/eUaBnESRv9qfOxPMu/TORwTWwP9X7iVpX K/Jj/axFm5rWDACVO3ndmvOV+Scp2j0Qo1x+QVQ5RxiusQ/RBPiiRR5i5FxLsBh9+NxT Xm4w==
- 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:subject:mime-version:from:dkim-signature :arc-authentication-results; bh=zKCcCvz3jiRSzR4ndbaD0vyK8CsgpQJrmBpnJm9vadg=; b=ZC1wq1dQAu1T49dOmHwIF1VmssYa5hNHxufusBg1HjL6nxcNCsJFVm0tEBvt/dTU0H ZDTVyFJeyN5mqEogt0/kHczeTI+TyiwuEin+Ay0v67aGBV/FHqkqkvaOabVqIk10ji7P vK0R8w7liQcJHVlTVZfX3Cm2d5vy9WR0PnH0SRG8I0SzzYESuqWuzKbNER0YwaWa2/Qt TuDSyH4vtyv9IRDqYvj3pVrU0gFrRdHVkf+YiL38/HkaLK0MWjL/hfhy55JUKKL58pKA d+P9x0dhSfgrtTBfIocPS1OaC9ARmBrCvribDraHRHDypSuX1JMa3Hcw/qJ0MhZqNtul B5bw==
- Arc-seal: i=2; a=rsa-sha256; t=1499704279; cv=pass; d=google.com; s=arc-20160816; b=CyunCug+aCetObbKFbrSGXoBmyO+B2bxNEQSQAGNbY1o+HqYnHm1JTcDOi23FzWbJJ IpPiNRdBiKQazHiigWwZJzm1Qeg/I8NI0hCN9d+qylC3aCahmXgRoNFYEtkvUqV0XW5H QqbznDIms65CjYXjizZKwT7d02l3045KE1nhXpI9vi7W3bcG2/tsP8W9MCuF9UFQlpiR jMkMbyKHIZajipuEf4ISOkkAhMb5kg2EnDdWLlVeF/dqlo28FipSiVHPo7d/LU0rjal0 vfMsfH35hICigdvDgK64yvTE5PpvTsuSiKRT90foEnf31NxpXfK8SIHn0Rgb1Z7W2HVW ob7A==
- Arc-seal: i=1; a=rsa-sha256; t=1499704278; cv=none; d=google.com; s=arc-20160816; b=LPkWp4YTW8xw8z19LiCxUfvH3zlC6hSRqd9KEF4xR3QYQ+QC++vOPTHU4RdTlXAysu lSikAz6Mi28QdnbMWLnkecSIcda0N1lU9tReLXPlklVppwnrL7vk3xqsI85W7+2cB3fp N3tWx9sGONZN5oPcxhjZPdm1XYy98+5VJORjU3czrcZeXJ4WRbpkbzQTO4K5pTRZF8KC 3zpqvuiyTpcEfSSoZKtgxV+B3lmWPsFU64jtdyQ3jzooD/iFk3fUztHltaMz79XPC0cb pBeuGs6Z211r3Z9BMW08WybsY6VCyTgXTC5urjUCMetLKd/81qBhAUWGhBEL7LcB0Vk6 KSaA==
- Cc: Ferret <ferret_users@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa-gov.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject: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=zKCcCvz3jiRSzR4ndbaD0vyK8CsgpQJrmBpnJm9vadg=; b=o6a6QqE/t9DVz/9/APSBDlZX4chi5M4b7hfIMMVgw5rUYBnqrC4hpIErbK6r20EFFb owQ1lOz6IYrfc6AxpowTLlyFJoce2d3rZVWik+y6sHWZLBWtBHVuDqmbsfdTeDnJM53G sSP80ADITVaX2d31+KSVd87tpo1AFgYec5vbNy21GASSePZhpeDvx+fdG0skrX1L/3L3 6HKJJDhRkSufY1SL5A+saDOS3oZVLbiZOz/NnLpAfmEV5Rth5nzmYAh9vejXpWINHJnH gaAwu7c4swx6MryGZucp4SffXs4DSnrPsb2wgSa8Whkszf+yMx2I4rSSe8cUb/MnTj4X 4OCA==
- In-reply-to: <CAPnt-U+U=oVKjuULqD2EeCubc+FQ_cXvKDW7+6xSxLNWMhP8GQ@mail.gmail.com>
- 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: <CAPnt-U+acON922v-bB=gCSWe=0+1WwQzztgc6TfFbn4MC6kY7Q@mail.gmail.com> <8ADA0F8B-08C9-4724-8061-1764D4B6C6D5@noaa.gov> <CAPnt-U+U=oVKjuULqD2EeCubc+FQ_cXvKDW7+6xSxLNWMhP8GQ@mail.gmail.com>
- Sender: owner-ferret_users@xxxxxxxx
The only thing I would add would be to overplot the pieces to make sure everything is right. Especially ACL and ACLMOD. The modulo operation can reduce the amplitude of the annual cycle if, for example, ACL values are on the first of the month (as in some data sets, e.g. ERA-Interim) but month_reg is centered on the middle of the month. month_reg is linearly interpolating between values which can reduce peaks.
Similarly, you might get slightly different values from month_reg vs month_irreg for values on the first of the month. It is possible to define an analog for month_irreg with values on the first day of each month in that case. I could dig up an example.
Whenever I regrid as here, I always make a few test plots of the intermediate steps to check. This is so easy to do in Ferret, and is one reason to do the calculation in explicit steps as in my example.
Billy
> On Jul 10, 2017, at 9:16 AM, Paul Goddard <pgoddard@xxxxxxxxxxxxxxxxx> wrote:
>
> Perfect, thanks Billy
>
> Best,
> Paul
>
> On Sun, Jul 9, 2017 at 6:22 PM, William S. Kessler <william.s.kessler@xxxxxxxx> wrote:
> If A is your 20-year time series and ACL is your 12-month climatology:
>
> First, put the climatology on a modulo time axis:
>
> let ACLMOD = ACL[gt=month_reg@mod]
>
> Extend it to the time axis of A:
>
> let ACLRG = ACLMOD[gt=A]
>
> let ADM = A - ACLRG ! anomalies
>
> Sent from my phone .... Please excuse my brevity .... and my typing.
>
> > On Jul 9, 2017, at 4:06 PM, Paul Goddard <pgoddard@xxxxxxxxxxxxxxxxx> wrote:
> >
> > Hi all,
> >
> > It is likely that an answer is already on the ferret users archive, if so, just refer me to that page, but I could not find what I was looking for.
> >
> > I have a monthly climatology, so 12 time steps. I would like to subtract the climatology off a 20 year monthly data set (of 240 time steps) to end with an anomaly with 240 time steps. How can I regrid the 12 climatologies to a 240 time step axis with the 12 months of the climatology just repeated 20 times.
> >
> > Thanks in advance,
> > Paul
>
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement