File:Twilight illumination by sun depression luxes 1 r 1.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 902 × 616 pixels, file size: 34 KB)

Captions

Captions

Illumination of twilight, by altitude on sun

Summary[edit]

Description
English: Outdoor illumination of twilight, by altitude on sun. Angle of sun altitude in degrees, illumination in luxes (lx).
Date
Source Own work
Author Merikanto

Source of equations is

https://www.hnsky.org/sqm_twilight.htm The brightness (SQM) value of the twilight sky NSSKY planetarium program

Python 3 source code

    1. illumination of twilight
    2. luxes from sun altitude
    3. sun altitude between -18 ... 0
  1. 15.8.2023 0000.0000

import math import numpy as np import matplotlib.pyplot as plt

  1. The brightness (SQM) value of the twilight sky
  1. https://www.hnsky.org/sqm_twilight.htm
    1. estimation of illumination grom threshold magnitude

def calculate_illum_from_alt(alt1): sqm1=999 if(alt1<0):sqm1=-1.057*alt1+6.7489 if(alt1<-12):sqm1= -0.0744*alt1*alt1-2.5768*alt1-0.5845 if(alt1<-18):sqm1=-999 sqm0=-1.057*0+6.7489 sqm6=-1.057*-6+6.7489 deltasqm1=sqm0-sqm1 deltalog1=deltasqm1*0.4 illumcoeff1=math.pow(10,deltalog1) illum1=illumcoeff1*450 ## assumed sunset 435 lx return(illum1)

def np_calculate_log_illum_from_alt(alts1): sqm1=999 #if(alt1<0):sqm1=-1.057*alt1+6.7489 #if(alt1<-12):sqm1= -0.0744*alt1*alt1-2.5768*alt1-0.5845 #if(alt1<-18):sqm1=-999 sqm1=np.copy(alts1) sqm2=np.copy(sqm1)

sqm1=np.where(sqm1>-12,-1.057*sqm1+6.7489, 0) sqm2=np.where(sqm2<-12.001, -0.0744*sqm2*sqm2-2.5768*sqm2-0.5845,0) sqm1=sqm1+sqm2 sqm0=-1.057*0+6.7489 sqm6=-1.057*-6+6.7489 deltasqm1=sqm0-sqm1 deltalog1=deltasqm1*0.4 illumcoeff1=np.power(10,deltalog1) illum1=illumcoeff1*450 ## assumed sunset 435 lx logillum1=np.log10(illum1) return(logillum1)

alt1=-7

illum1=calculate_illum_from_alt(alt1)

print(alt1, illum1)

alts1=np.linspace(-18,0,180)

logillums1=np_calculate_log_illum_from_alt(alts1)

  1. print (illums1)

plt.xlabel("Altitude of Sun, degrees", size=18) plt.ylabel("Log10 of illumination lx", size=18)

plt.yticks(fontsize=18) plt.xticks(fontsize=18)

plt.title("Illumination of twilight, luxes", fontsize=22)

plt.plot(alts1, logillums1, linewidth=6, color="#ff7f00") plt.grid()

plt.axvline(x = 0, color = '#FFFF00', label = 'Sunset') plt.axvline(x = -6, color = '#7f7f00', label = 'Civil twilight ends') plt.axvline(x = -12, color = '#3f3f00', label = 'Nautical twilight ends') plt.axvline(x = -18, color = '#1f1f00', label = 'Astronomical twilight ends')

plt.text(-5, 0, "Civil twilight", size=17) plt.text(-11.5, -1, "Nautical twilight", size=17) plt.text(-17.5, -2, "Astronomical twi.", size=17)

plt.show()

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:21, 15 August 2023Thumbnail for version as of 12:21, 15 August 2023902 × 616 (34 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata