当前位置: 首页 > article >正文

基于Python下载HYCOM-3hourly数据(可无脑用)

基于Python下载HYCOM-3hourly数据

  • 一、安装库
  • 二、主要函数
    • 2.1 `draw_time_range`
    • 2.2 `download`
      • 2.2.1 下载函数
      • 2.2.2 必传入参数:
      • 2.2.3 其他参数:
    • 2.3 `merge5nc`
  • 三、完整代码
    • 3.1 乱七八糟版
    • 3.2 精简版
    • 3.3 get_time_list
  • 四、效果
    • 4.1 终端
    • 4.2 nc文件
    • 4.3 全文本...

一、安装库

pip install OAFuncs

二、主要函数

from OAFuncs.oa_down.hycom_3hourly import draw_time_range
from OAFuncs.oa_down.hycom_3hourly import download
from OAFuncs.oa_nc import merge5nc

2.1 draw_time_range

可以忽略,这个是绘制目前所能下载3h分辨率数据的数据集;看需求,作用不大

draw_time_range(r'I:\Delete') # 图片保存至指定文件夹
# or
draw_time_range() # 图片保存至当前文件夹

结果

HYCOM_time_range.png has been saved in I:\Delete

图片展示
在这里插入图片描述
注意:
1、最新版本数据集,由于目前一直在更新,但是时间会相对滞后,所以我把结束时间暂时设置到2030年,免得经常去更新这个时间
2、GLBv0.08_93.0,经验证具体到小时
3、其他数据集,目前所设定的时间都是官网写出来的,但是实际应该会有小时上的差异,目前默认起点00h,终点21h
4、所有数据集时间分辨率为3hourly,且固定00、03、…、21
5、最新版本数据集有1hourly产品,暂未编写该部分代码
6、其他信息可去HYCOM官方自行了解

2.2 download

2.2.1 下载函数

def download(var, time_s, time_e, lon_min=0, lon_max=359.92, lat_min=-80, lat_max=90,  depth=None, level=None, store_path=None, dataset_name=None, version_name=None, num_workers=None, check=False):
    '''
    Description:
    Download the data of single time or a series of time

    Parameters:
    var: str, the variable name, such as 'u', 'v', 'temp', 'salinity', 'ssh', 'u_b', 'v_b', 'temp_b', 'salinity_b' or 'water_u', 'water_v', 'water_temp', 'salinity', 'surf_el', 'water_u_bottom', 'water_v_bottom', 'water_temp_bottom', 'salinity_bottom'
    time_s: str, the start time, such as '2024110100' or '20241101', if add hour, the hour should be 00, 03, 06, 09, 12, 15, 18, 21
    time_e: str, the end time, such as '2024110221' or '20241102', if add hour, the hour should be 00, 03, 06, 09, 12, 15, 18, 21
    lon_min: float, the minimum longitude, default is 0
    lon_max: float, the maximum longitude, default is 359.92
    lat_min: float, the minimum latitude, default is -80
    lat_max: float, the maximum latitude, default is 90
    depth: float, the depth, default is None
    level: int, the level number, default is None
    store_path: str, the path to store the data, default is None
    dataset_name: str, the dataset name, default is None, example: 'GLBv0.08', 'GLBu0.08', 'GLBy0.08'
    version_name: str, the version name, default is None, example: '53.X', '56.3'
    num_workers: int, the number of workers, default is None

    Returns:
    None
    '''

2.2.2 必传入参数:

1、var
可以是官方数据名,如‘water_u’,也可以是简写,‘u’
由于不同数据集里面下载方式有异,目前只编写了单变量下载,即一个变量存储一个nc;
不支持两个及以上变量存入同一个nc,会增加很多工作量,如有需要,可以后续自行处理,应该很简单;
目前可下9种数据
2、tiem_s,time_e,起始时间
可为‘年月日’,也可为‘年月日时’;
若为年月日,默认time_s+00,time_e+21;
若起始时刻相同,则只下载一个数据;若起始时刻不同,会自动下载之间所有时刻数据(3hourly间隔);
不过,如果提供时刻,不要提供非3倍数或00时刻以外的,目前代码没做这方面优化,会报错提醒,但不会智能纠正;

2.2.3 其他参数:

(均非必须了,根据需求,不提供都会有默认值)
简单解释一下吧~
经纬度:默认值是官方的全球范围,经度不是-180到180,而是0到359.92;纬度南半球-80
深度:如果设置,就会下载单层数据,会自动寻找与该水深最接近的分层;官方有默认分层水深,40层
分层:直接指定下载某一层数据,1-40;level和depth二选一即可

level_depth = [0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 15.0, 20.0, 25.0, 30.0, 35.0, 40.0, 45.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0, 125.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0, 1250.0, 1500.0, 2000.0, 2500.0, 3000.0, 4000.0, 5000]

存储路径:不设置就是当前路径,建议设置,程序会自动创建对应文件夹
数据集和版本名:这是一套,对应的,就是上面那个图里面;不指定,默认下载查询到的第一个数据集之中的数据(上面那个图可以看出,部分时刻数据出现在多个数据集/版本里面了)
工作数:并行数量,不指定默认串行;建议老实点,尽可能串行吧;目前我限定在最高10,如果太大,会被改成10;并行快倒是足够快,也很爽…,不过呢,封你ip的时候也很爽;串行基本不会导致封ip;封了ip大约一天会解封;目前针对反爬做了一些处理,但是比较重要的代理并没有提供(这个成本太大);所以适当用用并行,别太高频,也是可以的
检查:默认False,如果已存在同名文件,会覆盖重新下载;如果设置True,则会检查该nc文件是否存在,如果存在,检查能否正确打开,能正确打开,即跳过,反之删除重下;且原本便不存在的文件,会自动下载;所以有时候是需要开启此功能的!!!

2.3 merge5nc

前面都是单一时刻数据下载,为什么呢?
因为HYCOM有请求限制,好像是一次性不超过一天的数据量?那懒得去折腾,不如全部单一时刻请求并下载…
下载好之后,根据需要合并数据文件
这个函数主要用于按照某一维度合并nc文件
这里给个简单示例

file_list = []
for time_str in time_list:
    file_list.append(root_path + rf'/HYCOM_{var_name}_{time_str}.nc')
merge5nc(file_list, var_name, 'time', root_path + rf'/HYCOM_{var_name}_{merge_name}.nc')

三、完整代码

其实不用我这么复杂~
简单点几行代码也能搞定,大可不必学我,这里仅供参考

3.1 乱七八糟版

from OAFuncs.oa_down.hycom_3hourly import draw_time_range
from OAFuncs.oa_down.hycom_3hourly import download
from OAFuncs.oa_nc import merge5nc
from pathlib import Path # 我喜欢用这个库处理路径
if __name__ == '__main__':
    time_s, time_e = '2018010112', '2018020100'
    merge_name = '201801'
    root_path = r'I:\hycom_data_2018'
    location_dict = {'west': 115, 'east': 130, 'south': 33, 'north': 45}
    download_dict = {
        'water_u': {'simple_name': 'u', 'download': 0},
        'water_v': {'simple_name': 'v', 'download': 0},
        'surf_el': {'simple_name': 'ssh', 'download': 0},
        'water_temp': {'simple_name': 'temp', 'download': 0},
        'salinity': {'simple_name': 'salinity', 'download': 1},
    }

    # set depth or level, only one can be True
    # if you wanna download all depth or level, set both False
    set_depth, depth = False, 0  # 0-4000 meters
    set_level, level = False, 1  # 1-40 levels
    num_workers = 5
    check = True

    download_switch = True
    combine_switch = False

    def download_var(var_name):
        var = download_dict[var_name]['simple_name']
        if_download = download_dict[var_name]['download']
        if if_download == 0:
            return
        if set_depth:
            download(var=var, time_s=time_s, time_e=time_e, store_path=Path(root_path)/var, lon_min=location_dict[
                'west'], lon_max=location_dict['east'], lat_min=location_dict['south'], lat_max=location_dict['north'], depth=depth, num_workers=num_workers, check=check)
        elif set_level:
            download(var=var, time_s=time_s, time_e=time_e, store_path=Path(root_path)/var, lon_min=location_dict[
                'west'], lon_max=location_dict['east'], lat_min=location_dict['south'], lat_max=location_dict['north'], level=level, num_workers=num_workers, check=check)
        else:
            download(var=var, time_s=time_s, time_e=time_e, store_path=Path(root_path)/var, lon_min=location_dict[
                'west'], lon_max=location_dict['east'], lat_min=location_dict['south'], lat_max=location_dict['north'], num_workers=num_workers, check=check)

    if download_switch:
        for var_name in download_dict.keys():
            download_var(var_name)

    draw_time_range(r'I:\Delete')

    """ if combine_switch:
        time_list = get_time_list(time_s, time_e, 3)
        for var_name in download_dict.keys():
            var = download_dict[var_name]['simple_name']
            if_download = download_dict[var_name]['download']
            if if_download == 0:
                continue
            file_list = []
            for time_str in time_list:
                file_list.append(
                    Path(root_path)/var/f'HYCOM_{var_name}_{time_str}.nc')
            merge5nc(file_list, var_name, 'time',
                     Path(root_path)/var/f'HYCOM_{var_name}_{merge_name}.nc') """

3.2 精简版

#from OAFuncs.oa_down.hycom_3hourly import draw_time_range
from OAFuncs.oa_down.hycom_3hourly import download
from OAFuncs.oa_nc import merge5nc

#draw_time_range(r'I:\Delete')

download('water_u', '20180101', '20180131', lon_min=100, lon_max=120, lat_min=20, lat_max=50, store_path=r'I:\Delete', check=True)

time_list = get_time_list('2018010100', '2018013121', 3) # 这里根据个人喜好去获取时间列表
file_list = []
for time_str in time_list:
   file_list.append(rf'I:\Delete\HYCOM_water_u_{time_str}.nc')
merge5nc(file_list, 'water_u', 'time', r'I:\Delete\HYCOM_water_u_201801.nc')

3.3 get_time_list

估计有人还想要这个函数…?

from OAFuncs.oa_down.hycom_3hourly import get_time_list
time_list = get_time_list('2018010100', '2018013121', 3)

说明

def get_time_list(time_s, time_e, delta_hour):
    '''
    Description: get a list of time strings from time_s to time_e with delta_hour
    Args:
        time_s: start time string, e.g. '2023080203'
        time_e: end time string, e.g. '2023080303'
        delta_hour: interval of hours
    Returns:
        dt_list: a list of time strings
    '''

四、效果

开了并行,输出结果就不那么好看~

4.1 终端

在这里插入图片描述

4.2 nc文件

在这里插入图片描述

4.3 全文本…

Downloading a series of files...
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010112 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
2018010115 is in the following dataset and version:
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
GLBv0.08 93.0 2018010112-2020021909
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010118 is in the following dataset and version:
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
dataset: GLBv0.08, version: 93.0 is chosen
2018010121 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
2018010200 is in the following dataset and version:
Full depth or full level data will be downloaded...
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Downloading HYCOM_water_u_2018010115.nc...
Full depth or full level data will be downloaded...
dataset: GLBv0.08, version: 93.0 is chosen
Downloading HYCOM_water_u_2018010112.nc...
Full depth or full level data will be downloaded...
I:\hycom_data_2018\u\HYCOM_water_u_2018010115.nc does not exist
Downloading HYCOM_water_u_2018010118.nc...
Full depth or full level data will be downloaded...
I:\hycom_data_2018\u\HYCOM_water_u_2018010112.nc does not exist
Downloading HYCOM_water_u_2018010121.nc...
Download_start_time: 2024-11-12 15:41:19.315134
I:\hycom_data_2018\u\HYCOM_water_u_2018010118.nc does not exist
Downloading HYCOM_water_u_2018010200.nc...
Download_start_time: 2024-11-12 15:41:19.317122
I:\hycom_data_2018\u\HYCOM_water_u_2018010121.nc does not exist
Download_start_time: 2024-11-12 15:41:19.320120
I:\hycom_data_2018\u\HYCOM_water_u_2018010200.nc does not exist
Download_start_time: 2024-11-12 15:41:19.324283
Download_start_time: 2024-11-12 15:41:19.327282
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010112.nc 下载成功
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010121.nc 下载成功
Download_end_time: 2024-11-12 15:41:25.926848
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010203 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_water_u_2018010203.nc...
I:\hycom_data_2018\u\HYCOM_water_u_2018010203.nc does not exist
Download_start_time: 2024-11-12 15:41:25.936254
Download_end_time: 2024-11-12 15:41:28.673941
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010206 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_water_u_2018010206.nc...
I:\hycom_data_2018\u\HYCOM_water_u_2018010206.nc does not exist
Download_start_time: 2024-11-12 15:41:28.683972
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010203.nc 下载成功
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010115.nc 下载成功
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010118.nc 下载成功
Download_end_time: 2024-11-12 15:41:32.868537
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010209 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_water_u_2018010209.nc...
I:\hycom_data_2018\u\HYCOM_water_u_2018010209.nc does not exist
Download_start_time: 2024-11-12 15:41:32.879063
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Download_end_time: 2024-11-12 15:41:34.836269
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010212 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_water_u_2018010212.nc...
I:\hycom_data_2018\u\HYCOM_water_u_2018010212.nc does not exist
Download_start_time: 2024-11-12 15:41:34.843813
Download_end_time: 2024-11-12 15:41:34.896266
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010215 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_water_u_2018010215.nc...
I:\hycom_data_2018\u\HYCOM_water_u_2018010215.nc does not exist
Download_start_time: 2024-11-12 15:41:34.905033
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010209.nc 下载成功
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010215.nc 下载成功
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010206.nc 下载成功
Download_end_time: 2024-11-12 15:41:40.419714
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010218 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_water_u_2018010218.nc...
I:\hycom_data_2018\u\HYCOM_water_u_2018010218.nc does not exist
Download_start_time: 2024-11-12 15:41:40.428975
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010200.nc 下载成功
Download_end_time: 2024-11-12 15:41:42.019486
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010221 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_water_u_2018010221.nc...
I:\hycom_data_2018\u\HYCOM_water_u_2018010221.nc does not exist
Download_start_time: 2024-11-12 15:41:42.028042
Download_end_time: 2024-11-12 15:41:43.125069
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010300 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_water_u_2018010300.nc...
I:\hycom_data_2018\u\HYCOM_water_u_2018010300.nc does not exist
Download_start_time: 2024-11-12 15:41:43.132820
Download_end_time: 2024-11-12 15:41:43.890892
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010221.nc 下载成功
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Download_end_time: 2024-11-12 15:41:48.152418
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010300.nc 下载成功
Download_end_time: 2024-11-12 15:41:52.722792
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010212.nc 下载成功
文件 I:\hycom_data_2018\u\HYCOM_water_u_2018010218.nc 下载成功
Download_end_time: 2024-11-12 15:42:02.139767
Download_end_time: 2024-11-12 15:42:04.580072
Downloading... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Downloading a series of files...
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010112 is in the following dataset and version:
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
GLBv0.08 93.0 2018010112-2020021909
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
dataset: GLBv0.08, version: 93.0 is chosen
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010115 is in the following dataset and version:
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010118 is in the following dataset and version:
Full depth or full level data will be downloaded...
2018010121 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
2018010200 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
GLBv0.08 93.0 2018010112-2020021909
Downloading HYCOM_salinity_2018010112.nc...
dataset: GLBv0.08, version: 93.0 is chosen
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
dataset: GLBv0.08, version: 93.0 is chosen
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010112.nc does not exist
Full depth or full level data will be downloaded...
Full depth or full level data will be downloaded...
Full depth or full level data will be downloaded...
Downloading HYCOM_salinity_2018010115.nc...
Download_start_time: 2024-11-12 15:42:04.615772
Downloading HYCOM_salinity_2018010118.nc...
Downloading HYCOM_salinity_2018010121.nc...
Downloading HYCOM_salinity_2018010200.nc...
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010115.nc does not exist
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010118.nc does not exist
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010121.nc does not exist
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010200.nc does not exist
Download_start_time: 2024-11-12 15:42:04.624139
Download_start_time: 2024-11-12 15:42:04.626138
Download_start_time: 2024-11-12 15:42:04.627248
Download_start_time: 2024-11-12 15:42:04.627248
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010112.nc 下载成功
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010121.nc 下载成功
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Download_end_time: 2024-11-12 15:42:10.864679
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010203 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_salinity_2018010203.nc...
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010203.nc does not exist
Download_start_time: 2024-11-12 15:42:10.873864
Download_end_time: 2024-11-12 15:42:12.625797
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010206 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_salinity_2018010206.nc...
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010206.nc does not exist
Download_start_time: 2024-11-12 15:42:12.636489
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010203.nc 下载成功
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010118.nc 下载成功
Download_end_time: 2024-11-12 15:42:17.263427
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010209 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_salinity_2018010209.nc...
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010209.nc does not exist
Download_start_time: 2024-11-12 15:42:17.272111
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Download_end_time: 2024-11-12 15:42:18.938817
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010212 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_salinity_2018010212.nc...
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010212.nc does not exist
Download_start_time: 2024-11-12 15:42:18.945780
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010209.nc 下载成功
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010212.nc 下载成功
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010200.nc 下载成功
Download_end_time: 2024-11-12 15:42:24.455424
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010215 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_salinity_2018010215.nc...
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010215.nc does not exist
Download_start_time: 2024-11-12 15:42:24.464813
Download_end_time: 2024-11-12 15:42:24.586489
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010218 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_salinity_2018010218.nc...
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010218.nc does not exist
Download_start_time: 2024-11-12 15:42:24.596975
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010115.nc 下载成功
Timeout Error: HTTPSConnectionPool(host='ncss.hycom.org', port=443): Read timed out. (read timeout=5)
Download_end_time: 2024-11-12 15:42:27.446295
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010221 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_salinity_2018010221.nc...
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010221.nc does not exist
Download_start_time: 2024-11-12 15:42:27.456477
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010215.nc 下载成功
Download_end_time: 2024-11-12 15:42:28.582823
The dataset_name and version_name are None, so the dataset and version will be chosen according to the download_time.
If there is more than one dataset and version in the time range, the first one will be chosen.
If you wanna choose the dataset and version by yourself, please set the dataset_name and version_name together.
2018010300 is in the following dataset and version:
GLBv0.08 93.0 2018010112-2020021909
dataset: GLBv0.08, version: 93.0 is chosen
Full depth or full level data will be downloaded...
Downloading HYCOM_salinity_2018010300.nc...
I:\hycom_data_2018\salinity\HYCOM_salinity_2018010300.nc does not exist
Download_start_time: 2024-11-12 15:42:28.592080
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010218.nc 下载成功
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010221.nc 下载成功
Download_end_time: 2024-11-12 15:42:30.568878
Download_end_time: 2024-11-12 15:42:31.669004
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010206.nc 下载成功
文件 I:\hycom_data_2018\salinity\HYCOM_salinity_2018010300.nc 下载成功
Download_end_time: 2024-11-12 15:42:33.567151
Download_end_time: 2024-11-12 15:42:35.251822
Download_end_time: 2024-11-12 15:42:35.576907
Downloading... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00

http://www.kler.cn/a/390412.html

相关文章:

  • 浅谈C#之内存管理
  • 鸿蒙进阶篇-属性动画-animateTo转场动画
  • vue3项目中内嵌vuepress工程两种实现方式
  • 后端接口返回二进制文件,前端 window.opent预览展示
  • 【Linux】进程池实现指南:掌控并发编程的核心
  • AI写作(四)预训练语言模型:开启 AI 写作新时代(4/10)
  • 2024 CEMS中国食药物质产业发展大会将在杭州隆重开幕
  • GoLang协程Goroutiney原理与GMP模型详解
  • java操作ES(一)RestHighLevelClient(2)集成与demo
  • freeRTOS学习笔记
  • 如何优化Elasticsearch的查询性能?
  • Mac上无法访问usr/local的文件
  • 【含开题报告+文档+源码】基于SpringBoot的智慧养老医护管理系统
  • Android CarrierConfig 参数项和正则匹配逻辑
  • OAK相机:纯视觉SLAM在夜晚的应用
  • Python——设集P合为A={1,2,4,5},B={x|x**2-5*x+6=0},请计算出集合A与B的并,交,差。
  • 开源模型应用落地-glm模型小试-glm-4-9b-chat-智谱大模型开放平台(七)
  • FASTLIO2建图学习笔记
  • 网络为什么要分层:OSI模型与TCP/IP模型
  • 【大数据学习 | HBASE高级】region split机制和策略
  • GPU性能测试,环境搭建笔记,transformers/huggingface_hub改国内源,BertLayer import 报错
  • Spring Boot编程训练系统:前端与后端集成
  • Android Parcelable和Serializable的区别与联系
  • 面试基础算法题-日常面试足够
  • 网络管理之---3种网络模式配置
  • C++11新特性(二)