Commit d851b140 authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

update

parent 912f171d
Loading
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -96,7 +96,9 @@ except:
    from .mci_so import cdm03bidir

####################################################
########################### functions  #########################
# functions


def get_file_extension(filename):
    # 使用os.path.splitext()函数分割文件名和扩展名
    file_name, extension = os.path.splitext(filename)
@@ -119,6 +121,8 @@ parameters in parallel and serial direction.
"""

# CDM03bidir


class CDM03bidir():
    """
    Class to run CDM03 CTI model, class Fortran routine to perform the actual CDM03 calculations.
+3 −3
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ def zodiacal(ra, dec, time, path):
    dt = datetime.fromisoformat(time)
    jd = julian.to_jd(dt, fmt='jd')

    ###jd = time2jd(dt)
    # jd = time2jd(dt)
    t = Time(jd, format='jd', scale='utc')

    astro_sun = get_sun(t)
@@ -48,7 +48,7 @@ def zodiacal(ra, dec, time, path):

    # interpolated zodical surface brightness at 0.5 um
    zodi = pd.read_csv(path+'MCI_inputData/refs/zodi_map.dat',
                       sep='\s+', header=None, comment='#')
                       sep='\\s+', header=None, comment='#')
    beta_angle = np.array([0, 5, 10, 15, 20, 25, 30, 45, 60, 75])
    lamda_angle = np.array([0, 5, 10, 15, 20, 25, 30, 35, 40, 45,
                            60, 75, 90, 105, 120, 135, 150, 165, 180])
@@ -58,7 +58,7 @@ def zodiacal(ra, dec, time, path):

    # read the zodical spectrum in the ecliptic
    cat_spec = pd.read_csv(
        path+'MCI_inputData/refs/solar_spec.dat', sep='\s+', header=None, comment='#')
        path+'MCI_inputData/refs/solar_spec.dat', sep='\\s+', header=None, comment='#')
    wave = cat_spec[0].values       # A
    spec0 = cat_spec[1].values      # 10^-8 W m^�? sr^�? μm^�?
    zodi_norm = 252                 # 10^-8 W m^�? sr^�? μm^�?
+2 −2

File changed.

Contains only whitespace changes.