Skip to content

Koushikphy/kfutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kfutils: A tool for common data file operations.

Alt text Alt text Alt text Alt text Alt text Alt text

⚒ Instalation

Download and install the latest package from the release section or directly by pip

pip install kfutils

This installs the python module and a command line tool named kfutils.

⚡ Usage

✈ Using as a command line tool.

kutils [-h] -i FILE [-o FILE] [-c COLS [COLS ...]] [-rd COLS [COLS ...]] [-dr COLS [COLS ...]] [-dc COLS [COLS ...]] [-int N [N ...]] [-mir N] [-rep N]
Argument Description
-i Input file name
If no operations are given it will show the stats about the file
-o Output file name. (default: '_out' prefix to input file name)
-c Index(s) of grid columns. 2 columns for 2D file
-rd Index(s) of columns to convert to degree from radian
-dr Index(s) of columns to convert to radian from degree
-dc Index(s) of columns to delete
-int Number of grid to interpolate to. Can be 1D or 2D
-mir Number of times to mirror
-rep Number of times to repeat

🚀 Using as a python module
The toplevel python module kfutils exposes several functions/class.