generated from erosita/uds
submit
This commit is contained in:
24
Spectra/figures/flux.py
Executable file
24
Spectra/figures/flux.py
Executable 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)))
|
Reference in New Issue
Block a user