AERONET 数据处理 - AOD插值(550nm)(附Python代码)

AERONET 数据处理

1. AERONET 数据下载

主要针对AOD数据进行处理,以便与地面站点的验证。AERONET数据下载官网
选择所需要的站点数据进行下载

2. 批量更改后缀

站点数据为文本存取,批量更改文件后缀名为*.txt,便于后续处理。

!#!/usr/bin/python
# -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import os
import glob
from scipy.optimize import curve_fit
import datetime as dt
import math
# 批量更改后缀名
InputPath=r'G:\AERONET\AOD_Level20_All_Points_V3\AOD\AOD20\ALL_POINTS'
File=glob.glob(os.path.join(InputPath,'*'))
for i in File:
    po=i.replace('.','_')
    newName = po+'.txt'  #修改为目标后缀
    os.rename(i, newName)

结果如下:
批量更改后缀名后结果

3. 合并所需要使用的站点数据

将所需要的站点数据进行筛选放入同一文件夹下,进行站点数据的合并

#合并所需要的站点数据
# InputPath=r'G:\AERONET\AOD_Level20_All_Points_V3\AOD\AOD20\ALL_POINTS'
File=glob.glob(os.path.join(InputPath,'*.txt'))
#df_=pd.read_csv(File[0],header=6,index_col=False,na_values=['N/A'])#index_col=False为去掉第一列作为索引值
dateparse = lambda x: dt.datetime.strptime(x, "%d:%m:%Y %H:%M:%S") #日期的转换
df=pd.DataFrame(columns=['AERONET_Site_Name','Site_Latitude(Degrees)','Site_Longitude(Degrees)','Site_Elevation(m)',
                   'Dates',"Day_of_Year","Precipitable_Water(cm)",'AOD_440nm',"AOD_500nm",'AOD_675nm','440-675_Angstrom_Exponent','Interpolation_AOD_550nm'])#所需要的字段

for i in File:
    aeronet = pd.read_csv(i,header=6, na_values=['N/A'],index_col=False,
                      parse_dates={'Dates':[0,1]},
                      date_parser=dateparse)
    
    aeronet=aeronet.loc[:,['AERONET_Site_Name','Site_Latitude(Degrees)','Site_Longitude(Degrees)','Site_Elevation(m)',
                       'Dates',"Day_of_Year","Precipitable_Water(cm)",'AOD_440nm',"AOD_500nm",'AOD_675nm','440-675_Angstrom_Exponent',]]
    #去除无效值
    aeronet=aeronet.loc[aeronet['AOD_440nm'].map(int)!=-999]
    aeronet=aeronet.loc[aeronet['AOD_500nm'].map(int)!=-999]
    aeronet=aeronet.loc[aeronet['AOD_675nm'].map(int)!=-999]
    aeronet=aeronet.loc[aeronet['440-675_Angstrom_Exponent'].map(int)!=-999]
    aeronet=aeronet.loc[aeronet['Precipitable_Water(cm)'].map(int)!=-999]
    df=pd.concat([aeronet,df],axis =0)   

# df.to_csv(r'E:\Orange\desktop\wins\aeronet\merge.csv')#保存为csv

4. AOD插值 (550nm)

为了卫星能与地面观测值能够进行比较,需要通过波段插值来获550nm通道的AOD值

4.1 Angstrom指数插值方法(Angstrom, 1929

使用440nm,675nm 通道的AOD,结合440-675_Angstrom 指数,插值550nm AOD,公式如下:
Angstrom指数插值方法

#使用波长指数(440-675_Angstrom)拟合插值550nmAOD

df['AOD_440nm']=df['AOD_440nm'].astype(float)
df['AOD_440nm']=df['AOD_440nm'].astype(float)
df['AOD_675nm']=df['AOD_675nm'].astype(float)
df['440-675_Angstrom_Exponent']=df['440-675_Angstrom_Exponent'].astype(float)
df['Interpolation_AOD_550nm']=df['Interpolation_AOD_550nm'].astype(float)
df['Interpolation_AOD_550nm']=df.apply(lambda x: x['AOD_440nm']*math.pow((550/440), -x['440-675_Angstrom_Exponent']) , axis=1)

df.to_csv(r'E:\Orange\desktop\wins\aeronet\merge.csv',index=False)

4.2 二次多项式插值(Eck et al., 1999)

相对于Angstrom波长指数插值方法,二次多项式插值法可插值出精度更高、更可靠的550nm通道处AOD值。这主要是因为Angstrom波长指数插值方法依赖于气溶胶的荣格尺度分布(Junge,1955),而通常情况下的气溶胶粒子尺度不遵循这一分布特征(King et al.,1976),从而导致基于Angstrom波长指数插值方法结果的精度相对较差。

二次多项式插值方法公式:
二次多项式插值方法公式

#使用二次多项式拟合插值550nmAOD

# 定义要拟合的二次多项式函数
def quadratic_poly(x, a0, a1, a2):
    return np.exp(a0 + a1 * np.log(x) + a2 * np.log(x)**2)

# 定义打包函数
def fit_and_compute(df):
    # 提取要拟合的数据列
    x_data = np.array([440, 500, 675])
    y_data = np.array([df["AOD_440nm"], df["AOD_500nm"], df["AOD_675nm"]])

    # 使用curve_fit进行拟合
    params, _ = curve_fit(quadratic_poly, x_data, y_data)

    # 计算x=550时对应的y值
    x = 550
    y = quadratic_poly(x, *params)

    return y

df['Polyfit2_AOD_550nm'] = df.apply(fit_and_compute, axis=1)

#保存为csv
df.to_csv(r'E:\Orange\desktop\wins\aeronet\merge.csv',index=False)

希望以上内容能对大家处理AERONET 数据有所帮助!

  • 8
    点赞
  • 34
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 12
    评论
T he concept and description of a remote sensing aerosol monitoring network initiated by NASA, developed to sup- port NASA, CNES, and NASDA’s Earth satellite systems under the name AERONET and expanded by national and international collaboration, is described. Recent de- velopment of weather-resistant automatic sun and sky scanning spectral radiometers enable frequent measure- ments of atmospheric aerosol optical properties and pre- cipitable water at remote sites. Transmission of automatic measurements via the geostationary satellites GOES and METEOSATS’ Data Collection Systems allows reception and processing in near real-time from approximately 75% of the Earth’s surface and with the expected addition of GMS, the coverage will increase to 90% in 1998. NASA developed a UNIX-based near real-time processing, display and analysis system providing internet access to the emerg- ing global database. Information on the system is avail- able on the project homepage, http://spamer.gsfc.nasa.gov. The philosophy of an open access database, centralized processing and a user-friendly graphical interface has contributed to the growth of international cooperation for ground-based aerosol monitoring and imposes a stan- dardization for these measurements. The system’s auto- matic data acquisition, transmission, and processing fa- cilitates aerosol characterization on local, regional, and global scales with applications to transport and radiation budget studies, radiative transfer-modeling and valida- tion of satellite aerosol retrievals. This article discusses the operation and philosophy of the monitoring system, the precision and accuracy of the measuring radiometers, a brief description of the processing system, and access to the database. Elsevier Science Inc., 1998

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

香橙橙V

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值