This commit is contained in:
Roman Krivonos
2024-09-27 19:46:24 +03:00
parent 462133ce2e
commit 0839938594
149 changed files with 157799 additions and 157347 deletions

24
Spectra/figures/flux.py Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env python
__author__ = "Roman Krivonos"
__copyright__ = "Space Research Institute (IKI)"
import numpy as np
import pandas as pd
from astropy.io import fits
import matplotlib.pyplot as plt
import math, sys, os
import pickle
val=float(sys.argv[1])
flux = np.power(10, val)/1e-10
val=float(sys.argv[2])
flux_lo = np.power(10, val)/1e-10
val=float(sys.argv[3])
flux_hi = np.power(10, val)/1e-10
print("{:.1f} -{:.1f} {:.1f}".format(flux,(flux-flux_lo),(flux_hi-flux)))