Sentinel-1相关链接

本文提供了一个Python脚本,用于自动化下载Sentinel-1卫星的精确轨道数据。通过设置工作路径并运行脚本,可以针对指定文件夹内的所有Sentinel-1A数据文件下载对应的精轨文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

哨兵数据下载网址:https://scihub.copernicus.eu/

1、Sentinel-1精轨数据:
https://qc.sentinel1.eo.esa.int/

2021年4月更新:目前欧空局哨兵数据轨道文件存储库正在维护,可以在https://s1qc.asf.alaska.edu/aux_poeorb/网站下载S1数据的轨道文件。

精轨数据命名规则:
S1A_OPER_AUX_POEORB_OPOD_20150325T123058_V20150303T225944_20150305T005944.EOF

the first date and time showing the time the file was produced,the second date and time telling the start of the time period covered by the file,and the third date and time telling the end of the period.


2、The SENTINEL-1 Toolbox 、Sentinel-1 Data、Open Source Development

https://sentinel.esa.int/web/sentinel/toolboxes/sentinel-1%20

3、Calibration Auxiliary Data [AUX_CAL]
https://qc.sentinel1.eo.esa.int/aux_cal/?instrument_configuration_id=3

4、POD Precise Orbit Ephemerides [AUX_POEORB]
https://qc.sentinel1.eo.esa.int/aux_poeorb/

参见ISCE example/master_TOPS_SENTINEL1.xml


##批量下载Sentinel-1A精轨数据:

V1.0 by Xiaowen Wang
ESSC @ The Chinese University of Hong Kong
文件名:sentinel_poe_download.py

#!/usr/bin/python3

############################################################
# V1.0 by Xiaowen Wang                         
# ESSC @ The Chinese University of Hong Kong	
# Aug-08, 2016	   
############################################################
#"""
#Python script for downloading the Sentinel-1 orbit data
#
#  Please make sure the python3 has been isntalled in the OS, if not:
#                 sudo apt-get install python3                 
# #############################################################   

# 1) Change the variable "work_path" at Line 29 to your own work_path, the work path
#   should have the folder "RAW" where the unzipped S1A data are putted

# 2) run this script: python3 sentinel_poe_download.py   
#"""
###############################################################

import datetime
import urllib.request
import ssl
import re
import os
##############################################################################
# work_path and variables setting
work_path="/home/lu/Sentinel-1A_Data"
#work_path="/media/root/G/test"

POE_path=work_path+"/POE"
RAW_path=work_path+"/RAW"
os.environ['POE_path']=str(POE_path);
os.environ['RAW_path']=str(RAW_path);

# Judge whether the POE folder is existing 
if os.path.exists(POE_path):
    print('Already having the POE foloder')
else:
    os.popen('mkdir $POE_path')

# List the raw list data 
im_list=os.popen('ls $RAW_path | grep ^S1.*SAFE$').read().split()

######################
for im_var in im_list:
    print("Download the POE orbit file for the list Sentinel-1 image:\n", im_var)
    ###############################Read the image acquire time 
    Sensor=im_var[0:3];
    Sence_time=im_var[17:25];
    Year=int(Sence_time[0:4]);
    Month=int(Sence_time[4:6]);
    Day=int(Sence_time[6:8]);
    
    Sence_day=datetime.date(Year,Month,Day);
    Start_day=format(Sence_day-datetime.timedelta(days=1));
    End_day=format(Sence_day+datetime.timedelta(days=1));
    ##############################Generate the download url
    url_ymd=format(Start_day);
    url_ym=url_ymd[0:7];
    url_pre='https://qc.sentinel1.eo.esa.int/aux_poeorb/?';
    url_poe='mission='+Sensor+'&validity_start_time='+str(Year)+'&validity_start_time='+url_ym+'&validity_start_time='+Start_day+'..'+End_day+'&validity_start_time='+url_ymd;
    url_download=url_pre+url_poe;
    
    ###############################Download the page_info and get the POE name 
    ctx = ssl.create_default_context()
    ctx.check_hostname = False
    ctx.verify_mode = ssl.CERT_NONE
    up=urllib.request.urlopen(url_download,context=ctx)
    cont=up.read()
    
    #file_object = open('./dl.html', 'w') 
    #file_object.write(str(cont))
    #file_object.close()
    
    ###############################Download the POE data 
    #file_object = open('text.html').read()
    pat=re.compile(Sensor+"_OPER.*.EOF");
    pat_mat=pat.search(str(cont));
    
    if pat_mat is None:
        print("****The precise oribt data for this image is not avaible now****")
        continue
    else:    
        mat=pat_mat.group()
        POE_name=mat[0:77];
        print();print(POE_name);print()
        POE_file=POE_path+'/'+POE_name
        if  os.path.exists(POE_file):
            print("****The orbit file has been download already****")
            continue
        else:
            dl_head="https://qc.sentinel1.eo.esa.int/aux_poeorb//"
            dl_url=dl_head+POE_name;
            data_tmp=urllib.request.urlopen(dl_url,context=ctx)
            data_w=data_tmp.read()
            with open(POE_file, "wb") as flg:     
                flg.write(data_w)
##############################################################################

使用说明:修该sentinel_poe_download.py文件中的work_path为自己的工作目录,此处设为/home/lu/Sentinel-1A_Data,在工作目录(/home/lu/Sentinel-1A_Data)下建立RAW文件夹,将Sentinel-1A解压后的文件夹放到RAW目录下,在该工作目录下执行sentinel_poe_download.py,该命令脚步会根据RAW目录下的所有文件夹列表下载对应的精轨数据。

### Sentinel-1 数据获取、使用、处理、下载及格式说明 #### Sentinel-1 数据简介 Sentinel-1 是欧洲航天局 (ESA) 发射的一系列地球观测卫星,主要用于提供全天候、全季节的合成孔径雷达(SAR)图像。该卫星有两种主要工作模式:干涉宽幅(IW) 和扩展宽幅(EW),这两种模式均采用TOPSAR成像技术来捕获覆盖广阔区域的数据集[^1]。 #### 数据获取方式 对于希望利用这些高质量遥感影像的研究者来说,Google Earth Engine(GEE) 提供了一种高效便捷的方法来进行数据访问与初步预处理。相较于传统方法需手动从官方站点下载大量未经筛选的原始文件而言,在线平台允许用户直接调用经过裁切适配特定地理范围内的资料片段,从而显著降低了存储需求并加快了分析流程的速度[^2]。 #### 基本操作指南 为了便于理解和应用,下面给出一段Python代码示例,展示如何通过GEE API加载并可视化Sentinel-1 IW模式下的VV极化强度图: ```python import ee ee.Initialize() # 定义感兴趣区域(AOI) aoi = ee.Geometry.Polygon( [[[87.90, 24.56], [87.90, 23.56], [89.90, 23.56], [89.90, 24.56]]]) # 加载Sentinel-1 C-band SAR 图像集合 sentinel1 = ee.ImageCollection('COPERNICUS/S1_GRD') \ .filterBounds(aoi) \ .filterDate('2023-01-01', '2023-02-01') # 只保留垂直发射/接收(VV) 极化的图像 vv_images = sentinel1.select(['VV']) # 计算平均值作为最终显示的结果 mean_image = vv_images.mean() # 设置地图中心位置,并添加图层到Map对象中 map_id_dict = mean_image.getMapId({'bands': ['VV'], 'min': -25, 'max': 0}) print(f"https://earthengine.googleapis.com/map/{map_id_dict['mapid']}/{{z}}/{{x}}/{{y}}?token={map_id_dict['token']}") ``` 此脚本实现了指定时间段内AOI范围内所有可用的Sentinel-1 VV通道反射率产品的读取及其时空聚合运算;最后生成了一个可嵌入Web页面的地图服务链接地址用于查看结果。 #### 文件格式解释 当从GEE导出Sentinel-1产品时,默认情况下将以GeoTIFF形式保存至用户的Google Drive账户或其他云储存空间。这种栅格图形标准支持多波段信息记录,并且能够携带坐标参照系(CRS)参数以便于后续GIS软件中的进一步编辑和解析。此外,针对某些特殊应用场景还可以选择其他输出选项如NetCDF等科学计算常用的二进制交换格式。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

IvanLJF

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

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

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

打赏作者

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

抵扣说明:

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

余额充值