pyadps 0.2.0b0__py3-none-any.whl → 0.2.1b0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -166,6 +166,10 @@ date_df = pd.DataFrame(
166
166
  )
167
167
 
168
168
  st.session_state.date = pd.to_datetime(date_df)
169
+ st.session_state.date1 = pd.to_datetime(date_df)
170
+ st.session_state.date2 = pd.to_datetime(date_df)
171
+
172
+
169
173
 
170
174
  ######### MASK DATA ##############
171
175
  # The velocity data has missing values due to the cutoff
@@ -51,9 +51,9 @@ def file_write(path, axis_option, add_attributes=True):
51
51
  st.session_state.rawfilename = tempdirname.name + "/rawfile.nc"
52
52
 
53
53
  if add_attributes:
54
- wr.rawnc(path, st.session_state.rawfilename, st.session_state.date, axis_option, attributes=st.session_state.attributes)
54
+ wr.rawnc(path, st.session_state.rawfilename, st.session_state.date1, axis_option, attributes=st.session_state.attributes)
55
55
  else:
56
- wr.rawnc(path, st.session_state.rawfilename, st.session_state.date,axis_option)
56
+ wr.rawnc(path, st.session_state.rawfilename, st.session_state.date1,axis_option)
57
57
 
58
58
  @st.cache_data
59
59
  def file_write_vlead(path, axis_option, add_attributes=True):
@@ -61,9 +61,9 @@ def file_write_vlead(path, axis_option, add_attributes=True):
61
61
  st.session_state.vleadfilename = tempvardirname.name + "/vlead.nc"
62
62
 
63
63
  if add_attributes:
64
- wr.vlead_nc(path, st.session_state.vleadfilename, st.session_state.date, axis_option, attributes=st.session_state.attributes)
64
+ wr.vlead_nc(path, st.session_state.vleadfilename, st.session_state.date2, axis_option, attributes=st.session_state.attributes)
65
65
  else:
66
- wr.vlead_nc(path, st.session_state.vleadfilename, st.session_state.date, axis_option)
66
+ wr.vlead_nc(path, st.session_state.vleadfilename, st.session_state.date2, axis_option)
67
67
 
68
68
  if "axis_option" not in st.session_state:
69
69
  st.session_state.axis_option = "ensemble" # Default value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyadps
3
- Version: 0.2.0b0
3
+ Version: 0.2.1b0
4
4
  Summary: A Python package for ADCP data processing
5
5
  Home-page: https://example.com
6
6
  License: MIT
@@ -31,9 +31,21 @@ Description-Content-Type: text/markdown
31
31
 
32
32
  # pyadps
33
33
 
34
- `pyadps` is a Python package for processing moored Acoustic Doppler Current Profiler (ADCP) data. It provides various functionalities such as data reading, quality control tests, NetCDF file creation, and visualization.
34
+ `pyadps` is a Python package for processing moored Acoustic Doppler
35
+ Current Profiler (ADCP) data. It provides various functionalities
36
+ such as data reading, quality control tests, NetCDF file creation,
37
+ and visualization.
35
38
 
36
- This software offers both a graphical interface (`Streamlit`) for those new to Python and direct Python package access for experienced users. Please note that `pyadps` is primarily designed for Teledyne RDI workhorse ADCPs. Other company's ADCP files are not compatible, and while some other RDI models may work, they might require additional considerations.
39
+ This software offers both a graphical interface (`Streamlit`) for
40
+ those new to Python and direct Python package access for experienced
41
+ users. Please note that `pyadps` is primarily designed for Teledyne
42
+ RDI workhorse ADCPs. Other company's ADCP files are not compatible,
43
+ and while some other RDI models may work, they might require additional
44
+ considerations.
45
+
46
+ - Documentation: <https://pyadps.readthedocs.io>
47
+ - Source code: <https://github.com/p-amol/pyadps>
48
+ - Bug reports: <https://github.com/p-amol/pyadps/issues>
37
49
 
38
50
  ## Table of Contents
39
51
 
@@ -43,37 +55,49 @@ This software offers both a graphical interface (`Streamlit`) for those new to P
43
55
 
44
56
  ## Installation
45
57
 
46
- We recommend installing the package within a virtual environment. At present, the package is compatible exclusively with Python version 3.12.
47
- You can create a Python environment using tools like `venv` or `conda`. Below are instructions for both methods.
58
+ We recommend installing the package within a virtual environment.
59
+ At present, the package is compatible exclusively with Python version 3.12.
60
+ You can create a Python environment using tools like `venv` or `conda`.
61
+ Below are instructions for both methods.
48
62
 
49
63
  ### 1. Using `venv` (Built-in Python Tool)
50
64
 
51
65
  #### Step 1: Install Python version 3.12 (if not already installed)
66
+
52
67
  Ensure you have Python installed. You can download the latest version from [python.org](https://www.python.org/downloads/).
53
68
 
54
- #### Step 2: Create a Virtual Environment
69
+ #### Step 2: Create a Virtual Environment
70
+
55
71
  - Open your terminal or command prompt.
56
72
  - Navigate to your project folder:
73
+
57
74
  ```bash
58
75
  cd /path/to/your/project
59
76
  ```
60
- - Run the following command to create a virtual environment (replace adpsenv with your preferred environment name):
77
+
78
+ - Run the following command to create a virtual environment
79
+ (replace adpsenv with your preferred environment name):
61
80
 
62
81
  ```bash
63
82
  python -m venv adpsenv
64
83
  ```
65
84
 
66
85
  #### Step 3: Activate the Environment
86
+
67
87
  - On Windows:
88
+
68
89
  ```bash
69
90
  adpsenv\Scripts\activate
70
91
  ```
71
92
 
72
93
  - On macOS/Linux:
94
+
73
95
  ```bash
74
96
  source adpsenv/bin/activate
75
97
  ```
76
- You’ll see the environment name in your terminal prompt indicating the environment is active.
98
+
99
+ You’ll see the environment name in your terminal prompt
100
+ indicating the environment is active.
77
101
 
78
102
  #### Step 4: Install Dependencies
79
103
 
@@ -84,44 +108,51 @@ pip install pyadps
84
108
  ```
85
109
 
86
110
  #### Step 5: Deactivate the Environment
111
+
87
112
  When you’re done working in the environment, deactivate it by running:
88
113
 
89
114
  ```bash
90
115
  deactivate
91
116
  ```
92
117
 
93
-
94
-
95
-
96
- ### 2. Using `conda` (Anaconda/Miniconda):
118
+ ### 2. Using `conda` (Anaconda/Miniconda)
97
119
 
98
120
  #### Step 1: Install Conda
121
+
99
122
  First, you need to have Conda installed on your system. You can either install:
100
123
 
101
124
  - [Anaconda (Full Distribution)](https://www.anaconda.com/products/individual)
102
125
  - [Miniconda (Lightweight Version)](https://docs.conda.io/en/latest/miniconda.html)
103
126
 
104
127
  #### Step 2: Create a Conda Environment with Python 3.12
105
- Once Conda is installed, open a terminal or command prompt and run the following to create a new environment (replace `adpsenv` with your preferred environment name):
128
+
129
+ Once Conda is installed, open a terminal or command prompt and run
130
+ the following to create a new environment (replace `adpsenv` with
131
+ your preferred environment name):
106
132
 
107
133
  ```bash
108
134
  conda create --name adpsenv python=3.12
109
135
  ```
110
136
 
111
- #### Step 3: Activate the Environment
137
+ #### Step 3: Activate the Conda Environment
138
+
112
139
  ```bash
113
140
  conda activate adpsenv
114
141
  ```
115
142
 
116
- #### Step 4: Install Dependencies
117
- You can install packages with pip inside Conda environments.
143
+ #### Step 4: Install pyadps Dependencies
144
+
145
+ You can install packages with pip inside Conda environments.
146
+
118
147
  ```bash
119
148
  pip install pyadps
120
149
  ```
121
150
 
122
- #### Step 5: Deactivate the Environment
123
- When done, deactivate the environment by running:
124
- ```
151
+ #### Step 5: Deactivate the Conda Environment
152
+
153
+ When done working in the environment, deactivate the environment by running:
154
+
155
+ ```bash
125
156
  conda deactivate
126
157
  ```
127
158
 
@@ -130,11 +161,11 @@ conda deactivate
130
161
  ### Streamlit web interface
131
162
 
132
163
  Open a terminal or command prompt, activate the environment, and run the command.
164
+
133
165
  ```bash
134
166
  run-pyadps
135
167
  ```
136
168
 
137
-
138
169
  ## License
139
170
 
140
171
  This project is licensed under the MIT License. See the LICENSE file for details.
@@ -1,9 +1,9 @@
1
1
  pyadps/Home_Page.py,sha256=gC0eFMtn85U_A4KcVlCEzXkB6a_J0WD3vpK691Kmyw8,1180
2
2
  pyadps/__init__.py,sha256=bNCm6_WIhiwvaUeOZhRkyLZyzzUKfSH80Fslg0JPJyk,232
3
3
  pyadps/__main__.py,sha256=cIFUayxPnKl00oIR99L6IUEvc8trW7dijtfBQCAen5c,356
4
- pyadps/pages/01_Read_File.py,sha256=nN05FfZZ1wWOY0T1HRKQ9e2SGoKcc1eQLnTQnmQlfQw,8904
4
+ pyadps/pages/01_Read_File.py,sha256=HmszmDISLnmpAw-NOwl_2p__vlUn-EceXAQJ0ua9bsQ,9004
5
5
  pyadps/pages/02_View_Raw_Data.py,sha256=-Txl4seQG_c1iAyKRDGONebOARmgEelTgYw19DajToo,3675
6
- pyadps/pages/03_Download_Raw_File.py,sha256=XBpn4Jt4f9XjZoELS7svJW8S5JBFJnKPUkuIgsHlz_w,8787
6
+ pyadps/pages/03_Download_Raw_File.py,sha256=6tv1b5zyImSOVkTVhhGpm2TUVkvanhlTUksUlKJMWC8,8791
7
7
  pyadps/pages/04_QC_Test.py,sha256=RR6xos_jgTVrxve8GyrUxvWhEmxpLgbQ-Cx-xAazsls,10335
8
8
  pyadps/pages/05_Profile_Test.py,sha256=TBqxJ4TRM7TN5Y7UxXkVtyfS6isD7FWzyS4wuZw79XE,19570
9
9
  pyadps/pages/06_Velocity_Test.py,sha256=pBl56ITM-fTM5UnfB_qcYdzWNtmlhD5ZeGUGLwrBKj8,12066
@@ -24,8 +24,8 @@ pyadps/utils/script.py,sha256=yf3AZS3FMS2xk77rwezGA8WefwV03vIRQ6HraoeLuBA,4965
24
24
  pyadps/utils/signal_quality.py,sha256=E1lZWZfdUnbc5c02px5WWU8b12DnkeCo-gRHjIoe18s,4170
25
25
  pyadps/utils/velocity_test.py,sha256=sjQDgyC8TtOcmR8xW7crPhbt9ZAyp6Ej5o8bOdcWqxk,4707
26
26
  pyadps/utils/writenc.py,sha256=Oc6vtMec4YWitv_XQYBuiakvo3ZUACBL0uZSL9lGUm4,9793
27
- pyadps-0.2.0b0.dist-info/LICENSE,sha256=sfY_7DzQF5FxnO2T6ek74dfm5uBmwEp1oEg_WlzNsb8,1092
28
- pyadps-0.2.0b0.dist-info/METADATA,sha256=bcnpYpROIyXwlFdsDSTHRnryh1CokPj6bqi5jTY1LVw,4238
29
- pyadps-0.2.0b0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
30
- pyadps-0.2.0b0.dist-info/entry_points.txt,sha256=qS5lbmTJLC4Ys0nu4-2tJoBpAHxTREta30KFrDyTfsY,90
31
- pyadps-0.2.0b0.dist-info/RECORD,,
27
+ pyadps-0.2.1b0.dist-info/LICENSE,sha256=sfY_7DzQF5FxnO2T6ek74dfm5uBmwEp1oEg_WlzNsb8,1092
28
+ pyadps-0.2.1b0.dist-info/METADATA,sha256=HIdgrdWhwU8gAGbJHV0S6U5DPj1aPQi_o_gzzx1w5EA,4455
29
+ pyadps-0.2.1b0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
30
+ pyadps-0.2.1b0.dist-info/entry_points.txt,sha256=qS5lbmTJLC4Ys0nu4-2tJoBpAHxTREta30KFrDyTfsY,90
31
+ pyadps-0.2.1b0.dist-info/RECORD,,