MTgeophysics / mtpy

Python toolbox for standard Magnetotelluric (MT) data analysis
GNU General Public License v3.0
147 stars 66 forks source link

Added command wrapper to the edi_collection.py alongwith context settings. #41

Closed sudhirJain closed 6 years ago

sudhirJain commented 6 years ago

Command wrapper has been added to the edi_collecion.py alongwith context settings.

(mtpy) C:\dev\venv\satellite\mtpy>python mtpy\core\edi_collection.py -h Usage: edi_collection.py [OPTIONS]

Options: -i, --input TEXT input directory to edsi files or string of edsi files seperated by space

                python mtpy\core\edi_collection.py
                --input=examples/data/edi_files
                -or-
                python
                mtpy\core\edi_collection.py --input=
                "examples/data/edi_files/pb23c.edi
                examples/data/edi_files/pb25c.edi"

-h, --help Show this message and exit.

sudhirJain commented 6 years ago

Issue has been resolved and edi_collections.py has been updated. Github repository has been updated.

Sample results;

(mtpy) C:\dev\venv\satellite\mtpy>python mtpy\core\edi_collection.py --input="examples/data/edi_files/pb23c.edi examples/data/edi_files/pb25c.edi" Directory for edsi files or single file ---------> examples/data/edi_files/pb23c.edi examples/data/edi_files/pb25c.edi 2018-02-27T09:16:51 - main - INFO - number of edi files in this collection: 2 number of stations/edifiles = 2 2018-02-27T09:16:51 - main - INFO - Number of MT Periods: 43 count 1.000000 mean 0.006196 std NaN min 0.006196 25% 0.006196 50% 0.006196 75% 0.006196 max 0.006196 dtype: float64 2018-02-27T09:16:51 - main - INFO - 1,2,3,4 5 Percentile distances: 0.00619604841816, 0.00619604841816, 0.00619604841816, 0.00619604841816, 0.006 Min Distance = 0.00619604841816 Max Distance = 0.00619604841816