eo-tides 0.0.23__py3-none-any.whl → 0.1.0__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.
eo_tides/model.py CHANGED
@@ -3,6 +3,7 @@ from __future__ import annotations
3
3
 
4
4
  import os
5
5
  import pathlib
6
+ import textwrap
6
7
  import warnings
7
8
  from concurrent.futures import ProcessPoolExecutor
8
9
  from concurrent.futures.process import BrokenProcessPool
@@ -148,16 +149,19 @@ def list_models(
148
149
 
149
150
  # Raise error or warning if no models are available
150
151
  if not available_models:
151
- warning_text = (
152
- f"No valid tide models are available in `{directory}`. "
153
- "Are you sure you have provided the correct `directory` path, "
154
- "or set the `EO_TIDES_TIDE_MODELS` environment variable "
155
- "to point to the location of your tide model directory?"
156
- )
152
+ warning_msg = textwrap.dedent(
153
+ f"""
154
+ No valid tide models are available in `{directory}`.
155
+ Are you sure you have provided the correct `directory` path, or set the
156
+ `EO_TIDES_TIDE_MODELS` environment variable to point to the location of your
157
+ tide model directory?
158
+ """
159
+ ).strip()
160
+
157
161
  if raise_error:
158
- raise Exception(warning_text)
162
+ raise Exception(warning_msg)
159
163
  else:
160
- warnings.warn(warning_text, UserWarning)
164
+ warnings.warn(warning_msg, UserWarning)
161
165
 
162
166
  # Return list of available and supported models
163
167
  return available_models, supported_models
@@ -286,12 +290,14 @@ def _model_tides(
286
290
 
287
291
  # Raise error if constituent files no not cover analysis extent
288
292
  except IndexError:
289
- error_msg = (
290
- f"The {model} tide model constituent files do not cover the requested analysis extent. "
291
- "This can occur if you are using clipped model files to improve run times. "
292
- "Consider using model files that cover your analysis area, or set `crop=False` "
293
- "to reduce the extent of tide model constituent files that is loaded."
294
- )
293
+ error_msg = textwrap.dedent(
294
+ f"""
295
+ The {model} tide model constituent files do not cover the requested analysis extent.
296
+ This can occur if you are using clipped model files to improve run times.
297
+ Consider using model files that cover your entire analysis area, or set `crop=False`
298
+ to reduce the extent of tide model constituent files that is loaded.
299
+ """
300
+ ).strip()
295
301
  raise Exception(error_msg)
296
302
 
297
303
  # Calculate complex phase in radians for Euler's
@@ -562,8 +568,8 @@ def model_tides(
562
568
  <https://pytmd.readthedocs.io/en/latest/getting_started/Getting-Started.html#directories>
563
569
 
564
570
  This function is a modification of the `pyTMD` package's
565
- `compute_tidal_elevations` function. For more info:
566
- <https://pytmd.readthedocs.io/en/latest/api_reference/compute_tidal_elevations.html>
571
+ `pyTMD.compute.tide_elevations` function. For more info:
572
+ <https://pytmd.readthedocs.io/en/latest/api_reference/compute.html#pyTMD.compute.tide_elevations>
567
573
 
568
574
  Parameters
569
575
  ----------
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eo-tides
3
- Version: 0.0.23
3
+ Version: 0.1.0
4
4
  Summary: Tide modelling tools for large-scale satellite earth observation analysis
5
5
  Author-email: Robbi Bishop-Taylor <Robbi.BishopTaylor@ga.gov.au>
6
6
  Project-URL: Homepage, https://GeoscienceAustralia.github.io/eo-tides/
@@ -91,6 +91,10 @@ For instructions on how to set up these models for use in `eo-tides`, refer to [
91
91
 
92
92
  To get started with `eo-tides`, follow the [Installation](https://geoscienceaustralia.github.io/eo-tides/install/) and [Setting up tide models](https://geoscienceaustralia.github.io/eo-tides/setup/) guides.
93
93
 
94
+ ## Jupyter Notebooks code examples
95
+
96
+ Interactive Jupyter Notebook usage examples and more complex coastal EO case studies can be found in the [`docs/notebooks/`](https://github.com/GeoscienceAustralia/eo-tides/tree/main/docs/notebooks) directory, or [rendered in the documentation here](https://geoscienceaustralia.github.io/eo-tides/notebooks/Model_tides/).
97
+
94
98
  ## Citing `eo-tides`
95
99
 
96
100
  To cite `eo-tides` in your work, please use the following citation:
@@ -0,0 +1,11 @@
1
+ eo_tides/__init__.py,sha256=TWmQNplePCcNAlua5WI_H7SShkWNk-Gd3X70EDEknSo,1557
2
+ eo_tides/eo.py,sha256=OTFjchQWpSfgi2Q62mFBj6ckmy_1B_ExCAmex4UT4js,21616
3
+ eo_tides/model.py,sha256=Bwc2VVhDDBJB0wuKUAdSKYfBPZG4XDfldb_BO5Wcy6Y,34517
4
+ eo_tides/stats.py,sha256=9nfa7_obkS4tiHrQ1WTutuy2jlHtFg-cmOqP3l_Q7b8,20644
5
+ eo_tides/utils.py,sha256=l9VXJawQzaRBYaFMsP8VBeaN5VA3rFDdzcvF7Rk04Vc,5620
6
+ eo_tides/validation.py,sha256=JjTUqDfbR189m_6W1bpaSolQIHNTLicTHN7z9O_nr3s,11828
7
+ eo_tides-0.1.0.dist-info/LICENSE,sha256=owxWsXViCL2J6Ks3XYhot7t4Y93nstmXAT95Zf030Cc,11350
8
+ eo_tides-0.1.0.dist-info/METADATA,sha256=S8nHZcj3TWi2w_RpYilZFeBM_Hjw38hXE16eFJhNPQc,7260
9
+ eo_tides-0.1.0.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
10
+ eo_tides-0.1.0.dist-info/top_level.txt,sha256=lXZDUUM1DlLdKWHRn8zdmtW8Rx-eQOIWVvt0b8VGiyQ,9
11
+ eo_tides-0.1.0.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- eo_tides/__init__.py,sha256=TWmQNplePCcNAlua5WI_H7SShkWNk-Gd3X70EDEknSo,1557
2
- eo_tides/eo.py,sha256=OTFjchQWpSfgi2Q62mFBj6ckmy_1B_ExCAmex4UT4js,21616
3
- eo_tides/model.py,sha256=XoJoIa6SmcAR8v1IDisqV8nW44XfY4YU4HWCoTgokx0,34390
4
- eo_tides/stats.py,sha256=9nfa7_obkS4tiHrQ1WTutuy2jlHtFg-cmOqP3l_Q7b8,20644
5
- eo_tides/utils.py,sha256=l9VXJawQzaRBYaFMsP8VBeaN5VA3rFDdzcvF7Rk04Vc,5620
6
- eo_tides/validation.py,sha256=JjTUqDfbR189m_6W1bpaSolQIHNTLicTHN7z9O_nr3s,11828
7
- eo_tides-0.0.23.dist-info/LICENSE,sha256=owxWsXViCL2J6Ks3XYhot7t4Y93nstmXAT95Zf030Cc,11350
8
- eo_tides-0.0.23.dist-info/METADATA,sha256=P01mYqtSyfTHIVAduGhTPyRbQe-ZNuCJXhYqKa4sq_s,6902
9
- eo_tides-0.0.23.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
10
- eo_tides-0.0.23.dist-info/top_level.txt,sha256=lXZDUUM1DlLdKWHRn8zdmtW8Rx-eQOIWVvt0b8VGiyQ,9
11
- eo_tides-0.0.23.dist-info/RECORD,,