dea-tools 0.3.4.dev47__tar.gz → 0.3.4.dev49__tar.gz
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.
- {dea_tools-0.3.4.dev47/dea_tools.egg-info → dea_tools-0.3.4.dev49}/PKG-INFO +1 -1
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/coastal.py +10 -4
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/wetlands.py +19 -6
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49/dea_tools.egg-info}/PKG-INFO +1 -1
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/.gitignore +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/LICENSE +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/MANIFEST.in +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/README.rst +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/__init__.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/__main__.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/app/__init__.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/app/animations.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/app/changefilmstrips.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/app/crophealth.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/app/deacoastlines.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/app/geomedian.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/app/imageexport.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/app/miningrehab.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/app/widgetconstructors.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/bandindices.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/bom.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/classification.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/climate.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/dask.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/datahandling.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/landcover.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/maps.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/plotting.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/pyfes_model.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/spatial.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/temporal.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/validation.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools/waterbodies.py +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools.egg-info/SOURCES.txt +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools.egg-info/dependency_links.txt +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools.egg-info/requires.txt +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/dea_tools.egg-info/top_level.txt +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/index.rst +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/mock_imports.txt +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/pyproject.toml +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/setup.cfg +0 -0
- {dea_tools-0.3.4.dev47 → dea_tools-0.3.4.dev49}/setup.py +0 -0
|
@@ -16,7 +16,7 @@ https://gis.stackexchange.com/questions/tagged/open-data-cube).
|
|
|
16
16
|
If you would like to report an issue with this script, you can file one
|
|
17
17
|
on GitHub (https://github.com/GeoscienceAustralia/dea-notebooks/issues/new).
|
|
18
18
|
|
|
19
|
-
Last modified:
|
|
19
|
+
Last modified: July 2024
|
|
20
20
|
|
|
21
21
|
"""
|
|
22
22
|
|
|
@@ -250,7 +250,6 @@ def _model_tides(
|
|
|
250
250
|
`pyTMD`.
|
|
251
251
|
"""
|
|
252
252
|
|
|
253
|
-
import pyTMD.constants
|
|
254
253
|
import pyTMD.eop
|
|
255
254
|
import pyTMD.io
|
|
256
255
|
import pyTMD.time
|
|
@@ -280,7 +279,7 @@ def _model_tides(
|
|
|
280
279
|
timescale = pyTMD.time.timescale().from_datetime(time.flatten())
|
|
281
280
|
|
|
282
281
|
# Read tidal constants and interpolate to grid points
|
|
283
|
-
if pytmd_model.format in ("OTIS", "ATLAS", "
|
|
282
|
+
if pytmd_model.format in ("OTIS", "ATLAS", "TMD3"):
|
|
284
283
|
amp, ph, D, c = pyTMD.io.OTIS.extract_constants(
|
|
285
284
|
lon,
|
|
286
285
|
lat,
|
|
@@ -614,6 +613,10 @@ def model_tides(
|
|
|
614
613
|
- {directory}/fes2014/ocean_tide/
|
|
615
614
|
- {directory}/fes2014/load_tide/
|
|
616
615
|
|
|
616
|
+
For FES2022 (https://www.aviso.altimetry.fr/en/data/products/auxiliary-products/global-tide-fes.html):
|
|
617
|
+
- {directory}/fes2022b/ocean_tide/
|
|
618
|
+
- {directory}/fes2022b/load_tide/
|
|
619
|
+
|
|
617
620
|
For TPXO8-atlas (https://www.tpxo.net/tpxo-products-and-registration):
|
|
618
621
|
- {directory}/tpxo8_atlas/
|
|
619
622
|
|
|
@@ -648,6 +651,7 @@ def model_tides(
|
|
|
648
651
|
model : string, optional
|
|
649
652
|
The tide model used to model tides. Options include:
|
|
650
653
|
- "FES2014" (pre-configured on DEA Sandbox)
|
|
654
|
+
- "FES2022"
|
|
651
655
|
- "TPXO9-atlas-v5"
|
|
652
656
|
- "TPXO8-atlas"
|
|
653
657
|
- "EOT20"
|
|
@@ -719,7 +723,7 @@ def model_tides(
|
|
|
719
723
|
Defaults to "long".
|
|
720
724
|
ensemble_models : list, optional
|
|
721
725
|
An optional list of models used to generate the ensemble tide
|
|
722
|
-
model if "ensemble" tide modelling is requested. Defaults to
|
|
726
|
+
model if "ensemble" tide modelling is requested. Defaults to
|
|
723
727
|
["FES2014", "TPXO9-atlas-v5", "EOT20", "HAMTIDE11", "GOT4.10",
|
|
724
728
|
"FES2012", "TPXO8-atlas-v1"].
|
|
725
729
|
**ensemble_kwargs :
|
|
@@ -781,6 +785,7 @@ def model_tides(
|
|
|
781
785
|
|
|
782
786
|
# Verify that all provided models are supported
|
|
783
787
|
valid_models = [
|
|
788
|
+
"FES2022",
|
|
784
789
|
"FES2014",
|
|
785
790
|
"TPXO9-atlas-v5",
|
|
786
791
|
"EOT20",
|
|
@@ -1072,6 +1077,7 @@ def pixel_tides(
|
|
|
1072
1077
|
The tide model or a list of models used to model tides, as
|
|
1073
1078
|
supported by the `pyTMD` Python package. Options include:
|
|
1074
1079
|
- "FES2014" (default; pre-configured on DEA Sandbox)
|
|
1080
|
+
- "FES2022"
|
|
1075
1081
|
- "TPXO8-atlas"
|
|
1076
1082
|
- "TPXO9-atlas-v5"
|
|
1077
1083
|
- "EOT20"
|
|
@@ -18,7 +18,7 @@ here: https://gis.stackexchange.com/questions/tagged/open-data-cube).
|
|
|
18
18
|
If you would like to report an issue with this script, file one on
|
|
19
19
|
GitHub: https://github.com/GeoscienceAustralia/dea-notebooks/issues/new
|
|
20
20
|
|
|
21
|
-
Last modified: July
|
|
21
|
+
Last modified: July 2024
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
24
|
import seaborn as sns
|
|
@@ -155,7 +155,7 @@ def normalise_wit(polygon_base_df):
|
|
|
155
155
|
|
|
156
156
|
# convert the string to Python datetime format, easy to do display the result in PNG
|
|
157
157
|
polygon_base_df.loc[:, "date"] = pd.to_datetime(
|
|
158
|
-
polygon_base_df["date"]
|
|
158
|
+
polygon_base_df["date"]
|
|
159
159
|
)
|
|
160
160
|
|
|
161
161
|
polygon_base_df.reset_index(inplace=True)
|
|
@@ -216,6 +216,7 @@ def display_wit_stack_with_df(
|
|
|
216
216
|
png_name="your_file_name",
|
|
217
217
|
width=32,
|
|
218
218
|
height=6,
|
|
219
|
+
x_axis_labels="years"
|
|
219
220
|
):
|
|
220
221
|
"""
|
|
221
222
|
This functions produces WIT plots. Function displays a stack plot and saves as a png.
|
|
@@ -233,6 +234,9 @@ def display_wit_stack_with_df(
|
|
|
233
234
|
'norm_npv']
|
|
234
235
|
polygon_name : string
|
|
235
236
|
png_name : string
|
|
237
|
+
x_axis_labels : string with options of "years" or "months"
|
|
238
|
+
to set either years or months on the x axis as labels
|
|
239
|
+
|
|
236
240
|
|
|
237
241
|
"""
|
|
238
242
|
|
|
@@ -297,10 +301,19 @@ def display_wit_stack_with_df(
|
|
|
297
301
|
hatch="//",
|
|
298
302
|
)
|
|
299
303
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
+
if x_axis_labels=="years":
|
|
305
|
+
# modify the xaxis settings
|
|
306
|
+
ax.xaxis.set_major_locator(mdates.YearLocator())
|
|
307
|
+
ax.xaxis.set_major_formatter(mdates.DateFormatter("%Y"))
|
|
308
|
+
|
|
309
|
+
if x_axis_labels=="months":
|
|
310
|
+
# modify the xaxis settings
|
|
311
|
+
ax.xaxis.set_major_locator(mdates.MonthLocator())
|
|
312
|
+
ax.xaxis.set_major_formatter(mdates.DateFormatter('%b-%Y'))
|
|
313
|
+
# Rotates and right-aligns the x labels so they don't crowd each other.
|
|
314
|
+
for label in ax.get_xticklabels(which='major'):
|
|
315
|
+
label.set(rotation=30, horizontalalignment='right')
|
|
316
|
+
|
|
304
317
|
x_label_text = "The Fractional Cover algorithm developed by the Joint Remote Sensing Research Program and\n the Water Observations from Space algorithm developed by Geoscience Australia are used in the production of this data"
|
|
305
318
|
|
|
306
319
|
ax.set_xlabel(x_label_text, style="italic")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|