遇见数据集

climateset/climateset

收藏
Hugging Face2024-03-12 更新2024-05-25 收录
官方服务:

资源简介:

--- tags: - climate license: other --- ## Terms of Use By using the dataset, you agree to comply with the dataset license ([CC-by-4.0-Deed](https://creativecommons.org/licenses/by/4.0/deed.en)). ## Download Instructions To download one file, please use ``` from huggingface_hub import hf_hub_download # Path of the directory where the data will be downloaded in your local machine local_directory = 'LOCAL_DIRECTORY' # Relative path of the file in the repository filepath = 'FILE_PATH' repo_id = "climateset/climateset" repo_type = "dataset" hf_hub_download(repo_id=repo_id, filename=filepath, local_dir=local_directory, repo_type=repo_type, local_dir_use_symlinks=False) ``` To download the content of the whole repository, please use ``` from huggingface_hub import snapshot_download # Path of the directory where the data will be downloaded in your local machine local_directory = 'LOCAL_DIRECTORY' repo_id = "climateset/climateset" repo_type = "dataset" snapshot_download(repo_id=repo_id, repo_type=repo_type, local_dir=local_directory, local_dir_use_symlinks=False) ``` Please note that the script `extract_climateset.py` can be used to extract the content of each of the .TAR archive files once they are downloaded in your local machine.

提供机构:
climateset
原始信息汇总

数据集概述

数据集标签

  • 气候

许可证

  • 其他

使用条款

  • 使用本数据集需遵守CC-by-4.0许可证。

下载指南

  • 单个文件下载:

    • 使用huggingface_hub库中的hf_hub_download函数。

    • 示例代码: python from huggingface_hub import hf_hub_download

      local_directory = LOCAL_DIRECTORY filepath = FILE_PATH

      repo_id = "climateset/climateset" repo_type = "dataset" hf_hub_download(repo_id=repo_id, filename=filepath, local_dir=local_directory, repo_type=repo_type, local_dir_use_symlinks=False)

  • 整个仓库内容下载:

    • 使用huggingface_hub库中的snapshot_download函数。

    • 示例代码: python from huggingface_hub import snapshot_download

      local_directory = LOCAL_DIRECTORY

      repo_id = "climateset/climateset" repo_type = "dataset" snapshot_download(repo_id=repo_id, repo_type=repo_type, local_dir=local_directory, local_dir_use_symlinks=False)

  • 数据集解压:

    • 使用extract_climateset.py脚本解压下载的.TAR归档文件。
二维码
社区交流群
二维码
科研交流群
商业服务