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 netcdf-2-csv
Usages
Convert entire NetCdf file directory to csv
from netcdf-2-csv 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 netcdf-2-csv 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
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
Built Distribution
Hashes for netcdf2csv-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41fc8874d92895f1bbab47bf7e15d14d0c756533a632f4ce3a940ef81f323738 |
|
MD5 | bdc55472225d39f6a34b8f6840d3890d |
|
BLAKE2b-256 | ea4982bdede169bab822a855a36fbae800e658c3fbfbe12a3628a6bdb597771f |