racookpe1978
Nuclear
- Feb 1, 2007
- 5,984
Working in Excel, am modestly familiar with the equations, but will not pretend to be an expert. Am certainly NOT a programmer in that system!
I have a number of different regions I need to model to approximate ice area as a function of day-of-year, but if I can get an answer for one, I think the rest can be figured out.
Each area stays at maximum for a different length of time, so the curves are not symmetric.
Freeze durations do NOT = melt durations, so each side of the area curve is not the same, and is not symmetric.
I think that modeling each half of the freeze-melt cycle as a different cosine or sine function is adequate, unless somebody has a better approximation they know of. No known "real" data is available.
Each region begins "growing" (freezing) at a different day-of-year (ranges from 0 to -60)
Call it DOY_FS variable name, area at start of freezing is always 0.0
Each stops growing (completely freezes) at a different day-of-year (ranges from 2 to 60)
Call this date DOY_FE variable name.
Area at end of freezing is different for each region, call it A_Max
Melt side of the problem:
Each starts to melt at a different date, call this one DOY_MS ranges from 120 to 150
Each ends melting back at area = 0.0, at DOY_ME. ranges from 190 to 215.
So the freeze_length = the difference between the freeze start and freeze end dates.
And the melt length = difference between melt start and melt end dates.
If I assume that the freezing is more-or-less like half of a sine function, then freeze_length = half of the "period" for that sine wave, right?
Starts at 0.0, ends at A_max
Melt_length is half of the "period" of the cosine wave going down, again shifted up by A/2
Starts at A_max, ends at 0.0
And total height of that sine wave = Area_Max, shifted up from -A/2 to 0.0 ?
Then I have a constant area from freeze end to melt start DOY_FE to DOY_MS
But, I'm getting stuck at translating that into "excelese" properly for the periods. (Probably my radians conversion into dates and periods.)
So, the basic wave is:
A freeze = (A_max * sin(DOY/(2*pi*freeze_length)+A_max/2) And I have to adjust it for the actual freeze start date.
A melt = (A_max * cos(DOY/(2*pi*melt_length) -A_max/2) And I have to adjust it for actual melt start date.
I have a number of different regions I need to model to approximate ice area as a function of day-of-year, but if I can get an answer for one, I think the rest can be figured out.
Each area stays at maximum for a different length of time, so the curves are not symmetric.
Freeze durations do NOT = melt durations, so each side of the area curve is not the same, and is not symmetric.
I think that modeling each half of the freeze-melt cycle as a different cosine or sine function is adequate, unless somebody has a better approximation they know of. No known "real" data is available.
Each region begins "growing" (freezing) at a different day-of-year (ranges from 0 to -60)
Call it DOY_FS variable name, area at start of freezing is always 0.0
Each stops growing (completely freezes) at a different day-of-year (ranges from 2 to 60)
Call this date DOY_FE variable name.
Area at end of freezing is different for each region, call it A_Max
Melt side of the problem:
Each starts to melt at a different date, call this one DOY_MS ranges from 120 to 150
Each ends melting back at area = 0.0, at DOY_ME. ranges from 190 to 215.
So the freeze_length = the difference between the freeze start and freeze end dates.
And the melt length = difference between melt start and melt end dates.
If I assume that the freezing is more-or-less like half of a sine function, then freeze_length = half of the "period" for that sine wave, right?
Starts at 0.0, ends at A_max
Melt_length is half of the "period" of the cosine wave going down, again shifted up by A/2
Starts at A_max, ends at 0.0
And total height of that sine wave = Area_Max, shifted up from -A/2 to 0.0 ?
Then I have a constant area from freeze end to melt start DOY_FE to DOY_MS
But, I'm getting stuck at translating that into "excelese" properly for the periods. (Probably my radians conversion into dates and periods.)
So, the basic wave is:
A freeze = (A_max * sin(DOY/(2*pi*freeze_length)+A_max/2) And I have to adjust it for the actual freeze start date.
A melt = (A_max * cos(DOY/(2*pi*melt_length) -A_max/2) And I have to adjust it for actual melt start date.