How to Query the Average of the Three Hottest Consecutive Days in a Water Year?

  • Thread starter Thread starter jacquestardie
  • Start date Start date
  • Tags Tags
    Maximum Value
AI Thread Summary
The discussion focuses on creating a database query to find the average temperature of the three hottest consecutive days within a specified water year, using data from temperature loggers that record every 15 minutes. The proposed solution involves selecting the site, identifying the hottest temperature for each day, calculating degree days, and determining the largest change over a three-day span. The user expresses uncertainty about the efficiency of this method and seeks feedback, particularly on how to structure a SQL query to identify the highest rate of change in temperature. A response highlights that the question cannot be fully addressed without understanding the database table structures and the criteria for defining "hottest." The conversation emphasizes the need for clarity in data definitions and query efficiency.
jacquestardie
Messages
1
Reaction score
0
First, let me describe my problem:

I'm trying to create a query within a database that will output the average of the three hottest consecutive days within a certain water year. The data is being pulled from a set of temperature loggers that record temperature every 15minutes.

My tentative solution:


1. Since I'm pulling data for a specific site, out of a database made of many sites, I first need to select the site. Duh.

2. Select Water Year.

3. Select the hottest temperature within each day. IE, somewhere around 2 oclock, per day.

3. Calculate degree days (simply the cumulative temperature at the site)

4. Determine largest change in a three day span, within the degree day data set.

5. Select that period with the greatest change.

6. Average Temperatures.

7. Celebrate?


Conclusion:
So, while I think that should work, I have a feeling it may not be the most efficient solution. If any of you have any suggestions or comments, I'd be very grateful to hear them. Specifically, if anyone can comment on how a SQL Query for the highest rate-of-change within a 3 day period, and how that would look, I'd be eternally grateful!

Thanks in advance!
Jacques
 
Mathematics news on Phys.org
This question cannot be answered without knowledge of the table structures and how you define "hottest" among 96 temperature data a day.
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...

Similar threads

Back
Top