pyatmos的MSISE00模型有问题

# pyatmos的MSISE00模型有问题 2023年10月29日
# 80km处的温度有突变
# 可能是考虑了 kp 指数等因素的影响,但是未能处理好衔接融合问题,以致于引起“突变”

import numpy as np
from matplotlib import pyplot as plt

def MSISE00_Den(start_time, latt, lonn, Alt):
    import numpy as np
    import pandas as pd
    import pyatmos
    from pyatmos import download_sw_nrlmsise00, read_sw_nrlmsise00, nrlmsise00
    # Download or update the space weather file from www.celestrak.com
    swfile = download_sw_nrlmsise00()
    # Read the space weather data
    swdata = read_sw_nrlmsise00(swfile)

    # Set a specific time and location
    t = start_time  # time(UTC)
    Rho = []
    T = []

    for i in Alt:
        lat, lon, alt = latt, lonn, i  # latitude, longitude in [degree], and altitude in [km]
        nrl00 = nrlmsise00(t, (lat, lon, alt), swdata)
        # nrl00 =nrlmsise00(t, (lat, lon, 0.95166), swdata)
        # print(nrl00.rho)
        Rho.append(nrl00.rho)
        T.append(nrl00.T)

    # Create a Pandas DataFrame
    data = {
        'Altitude': Alt,
        'Density (rho)': Rho,
        'Temperature (T)': T
    }
    df = pd.DataFrame(data)

    return df


Alt = np.linspace(35, 105, 100)
start_time = '2023-09-20 15:38:00'
latt = 39.10#N39
lonn = 105.28#E105
MsiseData = MSISE00_Den(start_time, latt, lonn, Alt)
##print(MSISE00_Den(start_time, latt, lonn, Alt))
plt.plot(MsiseData['Temperature (T)'], MsiseData['Altitude'],'.-',label='pyatmos ERROR')
plt.title(start_time)
plt.xlim([185,265])
plt.ylim([35,105])
plt.legend()
plt.grid()
plt.xlabel('Temperature(K)')
plt.ylabel('Altitude(km)')
plt.show()

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值