Does anyone know of a source for an Access function which returns the phase of the Moon for a given date? Something that I can download or cut-and-paste into a module would be ideal.
The function should be something like
MoonPhase([date]) = p
where the value returned, p, would be a continuous and periodic numeric value with:
p= 0 for new moon,
p= +0.5 for waxing half moon,
p= 1.0 for full moon,
p= -0.5 for a waning half moon.
This would have to assume that the time of the moon phase measurement is standard, like Noon each day.
The reason for this lunacy is that I'd like to check the correlation of emergency room visit levels, surgical outcomes, etc., to moon phase. Not an official project, just something fun to do during the slow times here at the office. I tried something like this a few years ago, building a moon-phase table with start and end dates for the different quarters over a year, but it would be easier and more accurate to have a continuous phase function.
Paul
The function should be something like
MoonPhase([date]) = p
where the value returned, p, would be a continuous and periodic numeric value with:
p= 0 for new moon,
p= +0.5 for waxing half moon,
p= 1.0 for full moon,
p= -0.5 for a waning half moon.
This would have to assume that the time of the moon phase measurement is standard, like Noon each day.
The reason for this lunacy is that I'd like to check the correlation of emergency room visit levels, surgical outcomes, etc., to moon phase. Not an official project, just something fun to do during the slow times here at the office. I tried something like this a few years ago, building a moon-phase table with start and end dates for the different quarters over a year, but it would be easier and more accurate to have a continuous phase function.
Paul