SkyMapMod 0.0.13__tar.gz → 0.0.14__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: SkyMapMod
3
- Version: 0.0.13
3
+ Version: 0.0.14
4
4
  Project-URL: Homepage, https://istina.msu.ru/profile/aminevann/
5
5
  Author-email: Anna Amineva <amineva.2219@physics.msu.ru>
6
6
  License-File: LICENSE
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "SkyMapMod"
7
- version = "0.0.13"
7
+ version = "0.0.14"
8
8
  authors = [
9
9
  { name="Anna Amineva", email="amineva.2219@physics.msu.ru" },
10
10
  ]
@@ -1,4 +1,5 @@
1
1
  from .zodiac import *
2
2
  from .airglow import *
3
3
  from .airglow_spectrum import *
4
- from .modtran_default_kp_transparency import *
4
+ from .modtran_default_kp_transparency import *
5
+ from transparency import *
@@ -0,0 +1,19 @@
1
+ #для работы с собственным свечением атмосферы. возможно, сюда можно досыпать поправку на радиопоток
2
+ import numpy as np
3
+ import math
4
+ import matplotlib.pyplot as plt
5
+
6
+ from .airglow_spectrum import wavelenght_kp, intensity_kp
7
+ from .modtran_default_kp_transparency import wavelenght_modtran_kp, trancparency_modtran_kp
8
+
9
+ def airglow(wavelenght_airglow = wavelenght_kp, intensity_airglow = intensity_kp, wavelenght_atmosphere = wavelenght_modtran_kp, transparency_atmosphere = trancparency_modtran_kp):
10
+ wavelenght = []
11
+ intensity = []
12
+ for i in range(wavelenght_airglow.shape[0]):
13
+ for j in range(wavelenght_atmosphere.shape[0]):
14
+ if wavelenght_airglow[i] == wavelenght_atmosphere[j]:
15
+ wavelenght.append(wavelenght_airglow[i])
16
+ intensity.append(intensity_airglow[i] / transparency_atmosphere[j])
17
+ return(np.array(wavelenght), np.array(intensity))
18
+ #функция написана для спектра взятого от китт пик, прозрачность атмосферы взята из модтрана, параметры -- см. доклад, там прямо скрин. Прозрачность взята для 45 градусов, пересчитана в 30 градусов
19
+
@@ -0,0 +1,7 @@
1
+ #для работы с прозрачностями атмосферы -- пересчет и тд
2
+ import numpy as np
3
+ from .zodiac import cos
4
+
5
+ #на вход подаем спектр и два угла, на выходе получаем другой спектр
6
+ def other_angle_transparency(initial_tr, initial_angle, angle):
7
+ return initial_tr ** (cos(initial_angle) / cos(angle))
@@ -0,0 +1,6 @@
1
+ {
2
+ "cells": [],
3
+ "metadata": {},
4
+ "nbformat": 4,
5
+ "nbformat_minor": 5
6
+ }
@@ -2,6 +2,10 @@ import numpy as np
2
2
  import math
3
3
  import matplotlib.pyplot as plt
4
4
 
5
+ #коэффициент пересчета из единиц S10 в количество фотонов от Солнца
6
+ #вычислен на основе спектра АЧТ от звезды класса A0, солнечного спектра и факта, что 1 ед. S10 соответствует 100 фотонов от звезды класса A0
7
+ k = 100.63910099562007
8
+
5
9
  #переопределяю тригонометрические функции, чтобы работать с градусами
6
10
  def cos(x):
7
11
  return math.cos(x * math.pi / 180)
@@ -134,3 +138,5 @@ def zodiacal_light(lmbd, beta, lmbd_sun):
134
138
  fourth = (8800 * exp((1 - sqrt(1 + ((abs_gm - 90)/3)**2))/10) - 1200) * exp(-eps/10)
135
139
  zod = first + (second_1 + second_2) * second_mult + third + fourth + S(lmbd, beta, lmbd_sun, Omega) + D(lmbd, beta, lmbd_sun) + E(lmbd, beta) + F(lmbd, beta, lmbd_sun) + G(lmbd, beta, lmbd_sun)
136
140
  return zod/0.415 #деление на 0.415 осуществляет переход из ед. ADU в ед. S10
141
+
142
+
@@ -1,16 +0,0 @@
1
- import numpy as np
2
- import math
3
- import matplotlib.pyplot as plt
4
-
5
- from .airglow_spectrum import wavelenght_kp, intensity_kp
6
- from .modtran_default_kp_transparency import wavelenght_modtran_kp, trancparency_modtran_kp
7
-
8
- def airglow_custom(wavelenght_airglow = wavelenght_kp, intensity_airglow = intensity_kp, wavelenght_atmosphere = wavelenght_modtran_kp, transparency_atmosphere = trancparency_modtran_kp):
9
- wavelenght = []
10
- intensity = []
11
- for i in range(wavelenght_airglow.shape[0]):
12
- for j in range(wavelenght_atmosphere.shape[0]):
13
- if wavelenght_airglow[i] == wavelenght_atmosphere[j]:
14
- wavelenght.append(wavelenght_airglow[i])
15
- intensity.append(intensity_airglow[i] / transparency_atmosphere[j])
16
- return(np.array(wavelenght), np.array(intensity))
File without changes
File without changes