Calculate solar zenith angle
Afficher commentaires plus anciens
I want to calculate solar zenith angle for inputting a function. i tried with the available codes but didnt work out for me. Any references/guides for estimating solar zenith angle
2 commentaires
Image Analyst
le 16 Mai 2022
Probably. Did you try a web search?
Arvind Gauns
le 17 Mai 2022
Réponses (1)
Sam Chak
le 16 Mai 2022
I did a web search and found the formula. It's a little strange that your browser didn't show references/guides to calculate the solar zenith angle.
Anyhow, I also tried the code and it works:
prompt1 = "What is the value of the local latitude? ";
Phi = input(prompt1)
prompt2 = "What is the value of the current declination of the Sun? ";
delta = input(prompt2)
prompt3 = "What is the value of the hour angle, in the local solar time? ";
h = input(prompt3)
theta_s = acos(sin(Phi)*sin(delta) + cos(Phi)*cos(delta)*cos(h))

2 commentaires
Arvind Gauns
le 17 Mai 2022
Lei
le 24 Déc 2023
Hey Arvind,
Could you please shard the function of calczenithangle?
Thanks,
Leo
Catégories
En savoir plus sur Sources dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!