dea-tools 0.3.6.dev38__tar.gz → 0.3.6.dev41__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.
Files changed (42) hide show
  1. {dea_tools-0.3.6.dev38/dea_tools.egg-info → dea_tools-0.3.6.dev41}/PKG-INFO +3 -2
  2. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/app/animations.py +2 -0
  3. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/app/crophealth.py +5 -5
  4. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/app/imageexport.py +1 -1
  5. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/landcover.py +11 -7
  6. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41/dea_tools.egg-info}/PKG-INFO +3 -2
  7. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/.gitignore +0 -0
  8. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/LICENSE +0 -0
  9. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/MANIFEST.in +0 -0
  10. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/README.rst +0 -0
  11. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/__init__.py +0 -0
  12. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/__main__.py +0 -0
  13. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/app/__init__.py +0 -0
  14. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/app/changefilmstrips.py +0 -0
  15. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/app/deacoastlines.py +0 -0
  16. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/app/geomedian.py +0 -0
  17. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/app/miningrehab.py +0 -0
  18. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/app/widgetconstructors.py +0 -0
  19. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/bandindices.py +0 -0
  20. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/bom.py +0 -0
  21. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/classification.py +0 -0
  22. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/climate.py +0 -0
  23. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/coastal.py +0 -0
  24. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/dask.py +0 -0
  25. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/datahandling.py +0 -0
  26. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/maps.py +0 -0
  27. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/plotting.py +0 -0
  28. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/pyfes_model.py +0 -0
  29. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/spatial.py +0 -0
  30. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/temporal.py +0 -0
  31. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/validation.py +0 -0
  32. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/waterbodies.py +0 -0
  33. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools/wetlands.py +0 -0
  34. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools.egg-info/SOURCES.txt +0 -0
  35. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools.egg-info/dependency_links.txt +0 -0
  36. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools.egg-info/requires.txt +0 -0
  37. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/dea_tools.egg-info/top_level.txt +0 -0
  38. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/index.rst +0 -0
  39. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/mock_imports.txt +0 -0
  40. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/pyproject.toml +0 -0
  41. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/setup.cfg +0 -0
  42. {dea_tools-0.3.6.dev38 → dea_tools-0.3.6.dev41}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dea-tools
3
- Version: 0.3.6.dev38
3
+ Version: 0.3.6.dev41
4
4
  Summary: Functions and algorithms for analysing Digital Earth Australia data.
5
5
  Home-page: https://github.com/GeoscienceAustralia/dea-notebooks
6
6
  Author: Geoscience Australia
@@ -72,6 +72,7 @@ Dynamic: description
72
72
  Dynamic: description-content-type
73
73
  Dynamic: home-page
74
74
  Dynamic: license
75
+ Dynamic: license-file
75
76
  Dynamic: provides-extra
76
77
  Dynamic: requires-dist
77
78
  Dynamic: requires-python
@@ -75,6 +75,7 @@ sat_params = {
75
75
  "products": [
76
76
  "ga_s2am_ard_3",
77
77
  "ga_s2bm_ard_3",
78
+ "ga_s2cm_ard_3",
78
79
  ],
79
80
  "styles": {
80
81
  "True colour": ("simple_rgb", ["nbart_red", "nbart_green", "nbart_blue"]),
@@ -88,6 +89,7 @@ sat_params = {
88
89
  "products": [
89
90
  "ga_s2am_ard_3",
90
91
  "ga_s2bm_ard_3",
92
+ "ga_s2cm_ard_3",
91
93
  "ga_ls5t_ard_3",
92
94
  "ga_ls7e_ard_3",
93
95
  "ga_ls8c_ard_3",
@@ -7,7 +7,7 @@ Available functions:
7
7
  load_crophealth_data
8
8
  run_crophelath_app
9
9
 
10
- Last modified: August 2023
10
+ Last modified: February 2025
11
11
  '''
12
12
 
13
13
  # Load modules
@@ -41,10 +41,10 @@ def load_crophealth_data():
41
41
  """
42
42
  Loads Sentinel-2 analysis-ready data (ARD) product for the crop health
43
43
  case-study area. The ARD product is provided for the last year.
44
- Last modified: January 2020
44
+ Last modified: February 2025
45
45
 
46
46
  outputs
47
- ds - data set containing combined, masked data from Sentinel-2a and -2b.
47
+ ds - data set containing combined, masked data from Sentinel-2a, -2b and -2c.
48
48
  Masked values are set to 'nan'
49
49
  """
50
50
 
@@ -67,7 +67,7 @@ def load_crophealth_data():
67
67
  time = (start_date.strftime("%Y-%m-%d"), end_date.strftime("%Y-%m-%d"))
68
68
 
69
69
  # Construct the data cube query
70
- products = ["ga_s2am_ard_3", "ga_s2bm_ard_3"]
70
+ products = ["ga_s2am_ard_3", "ga_s2bm_ard_3", "ga_s2cm_ard_3"]
71
71
 
72
72
  query = {
73
73
  'x': longitude,
@@ -105,7 +105,7 @@ def run_crophealth_app(ds):
105
105
  Last modified: January 2020
106
106
 
107
107
  inputs
108
- ds - data set containing combined, masked data from Sentinel-2a and -2b.
108
+ ds - data set containing combined, masked data from Sentinel-2a, -2b and -2c.
109
109
  Must also have an attribute containing the NDVI value for each pixel
110
110
  """
111
111
 
@@ -70,7 +70,7 @@ sat_params = {
70
70
  },
71
71
  },
72
72
  "ga_s2m_ard_3": {
73
- "products": ["ga_s2am_ard_3", "ga_s2bm_ard_3"],
73
+ "products": ["ga_s2am_ard_3", "ga_s2bm_ard_3", "ga_s2cm_ard_3"],
74
74
  "styles": {
75
75
  "True colour": ("simple_rgb", ["nbart_red", "nbart_green", "nbart_blue"]),
76
76
  "False colour": (
@@ -555,7 +555,9 @@ def plot_land_cover(data, labelsize=10, year=None, measurement=None, out_width=1
555
555
  _legend_colourmap to specify which colour scheme will be used. If non
556
556
  provided, reads data array name from `da` to determine.
557
557
  out_width : integer, optional
558
- It controls the size of the output
558
+ Specifies the desired width of the output plot in inches.
559
+ The height of the plot is scaled accordingly to maintain the
560
+ correct aspect ratio of the data
559
561
  cols: integer, optional
560
562
  Sets number of columns if multiple time steps are visualised
561
563
 
@@ -676,7 +678,7 @@ def lc_animation(
676
678
  stacked_plot=False,
677
679
  colour_bar=False,
678
680
  animation_interval=500,
679
- width_pixels=10,
681
+ out_width=20,
680
682
  dpi=150,
681
683
  font_size=15,
682
684
  label_size = 15,
@@ -710,8 +712,10 @@ def lc_animation(
710
712
  animation_interval : int , optional
711
713
  How quickly the frames of the animations should be re-drawn.
712
714
  Default: 500.
713
- width_pixels : int, optional
714
- How wide in pixles the animation plot should be. Default: 10.
715
+ out_width : integer, optional
716
+ Specifies the desired width of the output plot in inches.
717
+ The height of the plot is scaled accordingly to maintain the
718
+ correct aspect ratio of the data
715
719
  dpi : int, optional
716
720
  Stands for 'Dots Per Inch'. Passed to the fuction that saves the
717
721
  animation and determines the resolution. A higher number will
@@ -745,7 +749,7 @@ def lc_animation(
745
749
 
746
750
  # Get info on dataset dimensions and define size of output
747
751
  height, width = da.geobox.shape
748
- scale = width_pixels / width
752
+ scale = out_width / width
749
753
  left, bottom, right, top = da.geobox.extent.boundingbox
750
754
  extent = [left, right, bottom, top]
751
755
 
@@ -791,7 +795,7 @@ def lc_animation(
791
795
 
792
796
  # Define & set up figure (two axes: the LC array and the stacked line plot)
793
797
  fig, (ax1, ax2) = plt.subplots(1, 2, dpi=dpi, constrained_layout=True)
794
- fig.set_size_inches(width * scale * 2, height * scale, forward=True)
798
+ fig.set_size_inches(width * scale, height * scale / 2, forward=True)
795
799
  fig.set_constrained_layout_pads(w_pad=0.2, h_pad=0.2, hspace=0, wspace=0)
796
800
 
797
801
  # set the size of the ticks labels using font_size
@@ -814,7 +818,7 @@ def lc_animation(
814
818
  # Define & set up figure, two subplots so colour bar fits :)
815
819
  fig, (ax1, ax2) = plt.subplots(1, 2, dpi=dpi,
816
820
  constrained_layout=True, gridspec_kw={'width_ratios': [3, 1]})
817
- fig.set_size_inches(width * scale * 2, height * scale, forward=True)
821
+ fig.set_size_inches(width * scale, height * scale / 2, forward=True)
818
822
  fig.set_constrained_layout_pads(w_pad=0.2, h_pad=0.2, hspace=0, wspace=0)
819
823
 
820
824
  # make colour bar
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dea-tools
3
- Version: 0.3.6.dev38
3
+ Version: 0.3.6.dev41
4
4
  Summary: Functions and algorithms for analysing Digital Earth Australia data.
5
5
  Home-page: https://github.com/GeoscienceAustralia/dea-notebooks
6
6
  Author: Geoscience Australia
@@ -72,6 +72,7 @@ Dynamic: description
72
72
  Dynamic: description-content-type
73
73
  Dynamic: home-page
74
74
  Dynamic: license
75
+ Dynamic: license-file
75
76
  Dynamic: provides-extra
76
77
  Dynamic: requires-dist
77
78
  Dynamic: requires-python
File without changes