Created
December 2, 2017 10:28
-
-
Save joastbg/a2a3d62f6fcf3c3c3573f0700cc68567 to your computer and use it in GitHub Desktop.
Estimating earth surface temperature from variation in sun spot density
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Refs: | |
% 1. https://en.wikipedia.org/wiki/Stefan%E2%80%93Boltzmann_law#cite_note-Solar_constant_at_ground_level-9 | |
% 2. https://en.wikipedia.org/wiki/Sunspot | |
% Kelvin | |
K = 273.15; | |
% sun earch distance | |
r = 149600000; % meters | |
% temperature at sun surface | |
T0 = 5780; % Kelvin | |
R0 = 695700; % meters | |
T = @(sf) T0 * sf * sqrt(R0 / (2*r)) - K ; % degrees | |
Y = arrayfun(T, linspace(0.9, 1.05)); | |
plot(Y); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment