Skip to main content

A Package to convert NetCDF files to CSV

Project description

Why netcdf2csv ?

netcdf2csv is a opensource python package to convert NetCDF files to CSV format. This is mainly helpful for those who are working with weather data, GIS data etc.

Installation

pip install netcdf2csv

Usages

Convert entire NetCdf file directory to csv

from netcdf2csv import convert_dir

convert_dir(netcdf_dir,csv_dir,cleaned_csv_dir='./',clean_choice=0)
  • net_cdf_dir = Directory containing all netcdf (.nc) files

  • csv_dir = Directory to output all csv files(uncleaned- containing null values)

  • cleaned_csv_dir = Directory to output cleaned csv files (does not containing null values) (Optional)

  • clean_choice = (0 -> if you don't need cleaned csv, 1 -> if you want cleaned csv output)

 

Convert a single NetCdf file to csv

from netcdf2csv import convert_dir

convert_file(filepath,csv_dir,cleaned_csv_dir,clean_choice=0)
  • filepath = Full path of file

  • csv_dir = Directory to output csv files (Uncleaned - containing null)

  • cleaned_csv_dir = Directory to output cleaned csv files (does not containing null values) (Optional)

  • clean_choice = (0 -> if you don't need cleaned csv, 1 -> if you want cleaned csv output)

Donate

Please donate to support further developement of this package https://pmny.in/Sr8zto1GCbdq

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netcdf2csv-0.0.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netcdf2csv-0.0.3-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file netcdf2csv-0.0.3.tar.gz.

File metadata

  • Download URL: netcdf2csv-0.0.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for netcdf2csv-0.0.3.tar.gz
Algorithm Hash digest
SHA256 562cf23b1161536f0174baa3334682236ae9971282858f60a794b38d95531d88
MD5 0093ea6693da326428d17660ce48cb19
BLAKE2b-256 80e0724fa4e0b34b796a5e66be98254d624fe0683065d681cb3e10593ab0ab07

See more details on using hashes here.

File details

Details for the file netcdf2csv-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: netcdf2csv-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for netcdf2csv-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1fcfd70addc4aa3f8c03e379fb6c85e0a788aeb23046b257b95c2f830f2979e
MD5 5384ca4377a18cf1ad0823248045317b
BLAKE2b-256 d4d8b0bd00117e27f08ce72cdd62edaa38f4a12dc718f14261d9ec5b72cc56e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page