No project description provided
Project description
netCDF 轉換工具
這個專案包含兩個 Python 模組,用於操作 netCDF 格式的檔案。第一個模組 netcdf_to_csv.py
可將 netCDF 檔案轉換成 CSV 格式。第二個模組 netcdf_meta.py
可用來檢視 netCDF 檔案的元數據信息。
安裝
首先,使用以下命令安裝所需的套件:
python3 -m pip install netcdf-to-csv netcdf-meta
模組使用
netcdf_to_csv
這個模組將 netCDF 檔案轉換成 CSV 格式。以下為使用方法和範例:
python3 -m netcdf_to_csv <nc_file1> <nc_file2> ...
範例:
python3 -m netcdf_to_csv example1.nc example2.nc
這將會將 example1.nc
和 example2.nc
轉換成對應的 CSV 檔案 example1.csv
和 example2.csv
。
netcdf_meta
這個模組用來檢視 netCDF 檔案的元數據信息。以下為使用方法和範例:
python3 -m netcdf_meta <nc_file1> <nc_file2> ...
範例:
python3 -m netcdf_meta example1.nc example2.nc
這將會顯示 example1.nc
和 example2.nc
的元數據信息,包括全局屬性、維度、變量和前三行數據。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netcdf-to-csv-1.0.2.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file netcdf-to-csv-1.0.2.tar.gz
.
File metadata
- Download URL: netcdf-to-csv-1.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71dd246e2abf5a59bb07e0b649e8b160b7a8dd27b264e27792d7364681f67dcd |
|
MD5 | 258d8a3d2ce17220aa2bbd91e320f24b |
|
BLAKE2b-256 | 1122cba32657ce03b3e2e0f4a2efec3609ec1d08b5c58244e45c83d87fe78b0b |
File details
Details for the file netcdf_to_csv-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: netcdf_to_csv-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daba59aba538124a0cae311cb9e179bbf92026ab1d00f8420c2e33978f98781b |
|
MD5 | df876e5a3caeaa09ecbef4658b5f8ab8 |
|
BLAKE2b-256 | 3de30d399c3d86faa158fa9a9eacc8e882716aa04123271b4dd7575fe06707ce |