+ Reply to Thread
Results 1 to 5 of 5

Analyzing time-series of flux data and day-of-year identification

  1. #1
    Registered User
    Join Date
    04-29-2015
    Location
    Edinburgh, UK
    MS-Off Ver
    Microsoft Office 2013
    Posts
    19

    Analyzing time-series of flux data and day-of-year identification

    Hi there,

    I am currently looking at a time-series of CO2 data, logged at 30-minute intervals over the course of the entire year. The are a total of 17521 points in this dataset spread over 365 days.

    I need to find the exact day in which the uptake of CO2 (which is represented by negative graph values), crosses below the red line I have drawn (which is at a value of -4.352), and when it crosses back up again. I have included where these 2 points are in the example spreadsheet to help.

    The other alternative is if there is a way of capturing the lower or upper envelopes of this very noisy dataset with a curve? In which case I could subsequently use that curve for analysis.

    I am currently taking a pretty visual approach to the problem - zooming in 400% and trying as best as I can to identify when this date is but that is highly unscientific.. I would greatly appreciate any help and advice.

    Thank you! =)
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Analyzing time-series of flux data and day-of-year identification

    Add a formula ...

    Row\Col
    A
    B
    D
    E
    1
    -4.352
    2
    Day of Year NEE Crossover
    3
    1
    0.3502
    4
    1
    0.3473
    0
    D4: = (B3<D$1) * (B4>D$1) + (B3>D$1) * (B4<D$1)
    5
    1
    0.3436
    0
    6
    1
    0.3406
    0
    7
    1
    0.3397
    0
    8
    1
    0.3393
    0
    9
    1
    0.3404
    0
    10
    1
    0.3384
    0
    11
    1
    0.3377
    0
    12
    1
    0.3372
    0
    13
    1
    0.3351
    0
    14
    1
    0.3356
    0
    15
    1
    0.3328
    0
    16
    1
    0.3323
    0
    17
    1
    0.3411
    0
    18
    1
    0.3451
    0


    ... and filter
    Row\Col
    A
    B
    D
    1
    -4.352
    2
    Day of Year NEE Crossover
    5163
    108
    -4.526
    1
    5165
    108
    -1.697
    1
    5251
    110
    -4.497
    1
    5252
    110
    -3.483
    1
    5350
    112
    -5.142
    1
    5352
    112
    -3.941
    1
    5395
    113
    -4.364
    1
    5408
    113
    -4.073
    1
    5410
    113
    -5.649
    1
    5411
    113
    -2.892
    1
    5597
    117
    -4.544
    1
    5598
    117
    -4.123
    1
    5841
    122
    -5.691
    1
    5842
    122
    -3.822
    1
    5843
    122
    -4.648
    1
    5844
    122
    -3.264
    1
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Analyzing time-series of flux data and day-of-year identification

    From your graph, looks like that second point is not the first time the value rises above -4.352... but it's the last?


    Day 108, step 25, is where the value is first below that value - but two rows down the value is -1.697 - but that's not where your second blue arrow is pointing.

    Day 311, step 28, is the last time the value falls below the line - is that what you are trying to identify? Looks like it's up and down across line all the time - but past this point it oscillates above the line only.


    Find first one with this function: {MIN(IF(D2:D17521<H1,ROW(D2:D17521),10^6))} - "array function" Confirm with cntrl+shift+enter

    Find last dip with this function: {MAX(IF(D2:D17521<-4.352,ROW(D2:D17521),0))} - "array function" Confirm with cntrl+shift+enter


    See attached.
    Attached Files Attached Files
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Analyzing time-series of flux data and day-of-year identification

    Or, (I noticed the point you found was not the last time, but second to last)

    Try this: (you see day 291 is where it was still happening a lot - 311 was an outlier)

    example2.png
    Attached Files Attached Files

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Analyzing time-series of flux data and day-of-year identification

    I used a couple of helper columns that returned TRUE or FALSE.
    First helper. Enter in C2 and fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Second Helper. Enter in D2 and fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Day of the year:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell with day of the year:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    RESULTS:
    F
    G
    33
    Day
    112
    34
    Cell A5351
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Transpose year long hourly time-series
    By fidu_k in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-29-2014, 01:57 PM
  2. Hi, I have hourly time series data and i need to convert it to 15 min time slots
    By neerajsharma887 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2014, 01:08 PM
  3. Replies: 0
    Last Post: 11-23-2012, 01:27 AM
  4. Analyzing whether a project was on time or late
    By wvpersephone13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2011, 11:39 AM
  5. How can I chart a multi-year time series in Excel?
    By Dave Nuttall in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-28-2005, 03:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1