greenshadow 1.2.2__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.
- greenshadow-1.2.2/LICENSE +287 -0
- greenshadow-1.2.2/PKG-INFO +339 -0
- greenshadow-1.2.2/README.md +223 -0
- greenshadow-1.2.2/greenshadow/__init__.py +468 -0
- greenshadow-1.2.2/greenshadow/buildings_infer.py +7441 -0
- greenshadow-1.2.2/greenshadow/crete_data.py +388 -0
- greenshadow-1.2.2/greenshadow/crop_light.py +571 -0
- greenshadow-1.2.2/greenshadow/crop_rows.py +2934 -0
- greenshadow-1.2.2/greenshadow/data/crop_mappings/corine.csv +12 -0
- greenshadow-1.2.2/greenshadow/data/crop_mappings/es_fega_producto.csv +890 -0
- greenshadow-1.2.2/greenshadow/data/crop_mappings/eucropmap.csv +26 -0
- greenshadow-1.2.2/greenshadow/data/crop_mappings/hcat.csv +42 -0
- greenshadow-1.2.2/greenshadow/data/crops.yaml +232 -0
- greenshadow-1.2.2/greenshadow/data/grid/it_reverse_flow_2025.csv +1730 -0
- greenshadow-1.2.2/greenshadow/data/grid_sources.yaml +83 -0
- greenshadow-1.2.2/greenshadow/data/pv_catalogue_2026.yaml +307 -0
- greenshadow-1.2.2/greenshadow/dimensionate.py +1882 -0
- greenshadow-1.2.2/greenshadow/dsm_dem_estimation.py +6199 -0
- greenshadow-1.2.2/greenshadow/fvg_data.py +414 -0
- greenshadow-1.2.2/greenshadow/grid_connection.py +863 -0
- greenshadow-1.2.2/greenshadow/grid_data.py +2094 -0
- greenshadow-1.2.2/greenshadow/lidar.py +611 -0
- greenshadow-1.2.2/greenshadow/logging_utils.py +179 -0
- greenshadow-1.2.2/greenshadow/orthophoto.py +499 -0
- greenshadow-1.2.2/greenshadow/overture.py +112 -0
- greenshadow-1.2.2/greenshadow/parcel_pv.py +3500 -0
- greenshadow-1.2.2/greenshadow/parcel_sources.py +949 -0
- greenshadow-1.2.2/greenshadow/pipelines/__init__.py +47 -0
- greenshadow-1.2.2/greenshadow/pipelines/__main__.py +26 -0
- greenshadow-1.2.2/greenshadow/pipelines/base.py +1307 -0
- greenshadow-1.2.2/greenshadow/pipelines/catalonia.py +414 -0
- greenshadow-1.2.2/greenshadow/pipelines/crete.py +455 -0
- greenshadow-1.2.2/greenshadow/pipelines/dem_terrain.py +266 -0
- greenshadow-1.2.2/greenshadow/pipelines/fvg.py +318 -0
- greenshadow-1.2.2/greenshadow/pipelines/lidar_roofs.py +322 -0
- greenshadow-1.2.2/greenshadow/pipelines/lidar_terrain.py +150 -0
- greenshadow-1.2.2/greenshadow/pipelines/portugal.py +317 -0
- greenshadow-1.2.2/greenshadow/prices.py +289 -0
- greenshadow-1.2.2/greenshadow/pt_data.py +469 -0
- greenshadow-1.2.2/greenshadow/pv_catalogue.py +575 -0
- greenshadow-1.2.2/greenshadow/qgis_builder.py +741 -0
- greenshadow-1.2.2/greenshadow/qgis_project.py +849 -0
- greenshadow-1.2.2/greenshadow/roof_obstacles.py +2631 -0
- greenshadow-1.2.2/greenshadow/roof_obstacles_validation.py +449 -0
- greenshadow-1.2.2/greenshadow/roofs_3d.py +1235 -0
- greenshadow-1.2.2/greenshadow/roofs_3d_viewer.py +797 -0
- greenshadow-1.2.2/greenshadow/rooftop_economics.py +244 -0
- greenshadow-1.2.2/greenshadow/rural_parcels.py +1087 -0
- greenshadow-1.2.2/greenshadow/sam3_worker.py +232 -0
- greenshadow-1.2.2/greenshadow/satellite.py +560 -0
- greenshadow-1.2.2/greenshadow/shader.py +4989 -0
- greenshadow-1.2.2/greenshadow/site_factors.py +751 -0
- greenshadow-1.2.2/greenshadow/utils.py +1937 -0
- greenshadow-1.2.2/greenshadow/weather.py +286 -0
- greenshadow-1.2.2/greenshadow.egg-info/PKG-INFO +339 -0
- greenshadow-1.2.2/greenshadow.egg-info/SOURCES.txt +76 -0
- greenshadow-1.2.2/greenshadow.egg-info/dependency_links.txt +1 -0
- greenshadow-1.2.2/greenshadow.egg-info/requires.txt +89 -0
- greenshadow-1.2.2/greenshadow.egg-info/top_level.txt +1 -0
- greenshadow-1.2.2/setup.cfg +4 -0
- greenshadow-1.2.2/setup.py +106 -0
- greenshadow-1.2.2/tests/test_costs.py +216 -0
- greenshadow-1.2.2/tests/test_crete.py +304 -0
- greenshadow-1.2.2/tests/test_crop_light.py +300 -0
- greenshadow-1.2.2/tests/test_crop_rows.py +54 -0
- greenshadow-1.2.2/tests/test_fvg.py +326 -0
- greenshadow-1.2.2/tests/test_grid_connection.py +379 -0
- greenshadow-1.2.2/tests/test_grid_data.py +453 -0
- greenshadow-1.2.2/tests/test_lidar_class_remap.py +57 -0
- greenshadow-1.2.2/tests/test_lidar_roofs.py +95 -0
- greenshadow-1.2.2/tests/test_manual.py +44 -0
- greenshadow-1.2.2/tests/test_parcel_sources.py +226 -0
- greenshadow-1.2.2/tests/test_prices.py +183 -0
- greenshadow-1.2.2/tests/test_pt_data.py +312 -0
- greenshadow-1.2.2/tests/test_pv_catalogue.py +147 -0
- greenshadow-1.2.2/tests/test_qgis_project.py +168 -0
- greenshadow-1.2.2/tests/test_site_factors.py +330 -0
- greenshadow-1.2.2/tests/test_win_rate.py +63 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
EUROPEAN UNION PUBLIC LICENCE v. 1.2
|
|
2
|
+
EUPL © the European Union 2007, 2016
|
|
3
|
+
|
|
4
|
+
This European Union Public Licence (the ‘EUPL’) applies to the Work (as defined
|
|
5
|
+
below) which is provided under the terms of this Licence. Any use of the Work,
|
|
6
|
+
other than as authorised under this Licence is prohibited (to the extent such
|
|
7
|
+
use is covered by a right of the copyright holder of the Work).
|
|
8
|
+
|
|
9
|
+
The Work is provided under the terms of this Licence when the Licensor (as
|
|
10
|
+
defined below) has placed the following notice immediately following the
|
|
11
|
+
copyright notice for the Work:
|
|
12
|
+
|
|
13
|
+
Licensed under the EUPL
|
|
14
|
+
|
|
15
|
+
or has expressed by any other means his willingness to license under the EUPL.
|
|
16
|
+
|
|
17
|
+
1. Definitions
|
|
18
|
+
|
|
19
|
+
In this Licence, the following terms have the following meaning:
|
|
20
|
+
|
|
21
|
+
- ‘The Licence’: this Licence.
|
|
22
|
+
|
|
23
|
+
- ‘The Original Work’: the work or software distributed or communicated by the
|
|
24
|
+
Licensor under this Licence, available as Source Code and also as Executable
|
|
25
|
+
Code as the case may be.
|
|
26
|
+
|
|
27
|
+
- ‘Derivative Works’: the works or software that could be created by the
|
|
28
|
+
Licensee, based upon the Original Work or modifications thereof. This Licence
|
|
29
|
+
does not define the extent of modification or dependence on the Original Work
|
|
30
|
+
required in order to classify a work as a Derivative Work; this extent is
|
|
31
|
+
determined by copyright law applicable in the country mentioned in Article 15.
|
|
32
|
+
|
|
33
|
+
- ‘The Work’: the Original Work or its Derivative Works.
|
|
34
|
+
|
|
35
|
+
- ‘The Source Code’: the human-readable form of the Work which is the most
|
|
36
|
+
convenient for people to study and modify.
|
|
37
|
+
|
|
38
|
+
- ‘The Executable Code’: any code which has generally been compiled and which is
|
|
39
|
+
meant to be interpreted by a computer as a program.
|
|
40
|
+
|
|
41
|
+
- ‘The Licensor’: the natural or legal person that distributes or communicates
|
|
42
|
+
the Work under the Licence.
|
|
43
|
+
|
|
44
|
+
- ‘Contributor(s)’: any natural or legal person who modifies the Work under the
|
|
45
|
+
Licence, or otherwise contributes to the creation of a Derivative Work.
|
|
46
|
+
|
|
47
|
+
- ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
|
|
48
|
+
the Work under the terms of the Licence.
|
|
49
|
+
|
|
50
|
+
- ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
|
|
51
|
+
renting, distributing, communicating, transmitting, or otherwise making
|
|
52
|
+
available, online or offline, copies of the Work or providing access to its
|
|
53
|
+
essential functionalities at the disposal of any other natural or legal
|
|
54
|
+
person.
|
|
55
|
+
|
|
56
|
+
2. Scope of the rights granted by the Licence
|
|
57
|
+
|
|
58
|
+
The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
|
|
59
|
+
sublicensable licence to do the following, for the duration of copyright vested
|
|
60
|
+
in the Original Work:
|
|
61
|
+
|
|
62
|
+
- use the Work in any circumstance and for all usage,
|
|
63
|
+
- reproduce the Work,
|
|
64
|
+
- modify the Work, and make Derivative Works based upon the Work,
|
|
65
|
+
- communicate to the public, including the right to make available or display
|
|
66
|
+
the Work or copies thereof to the public and perform publicly, as the case may
|
|
67
|
+
be, the Work,
|
|
68
|
+
- distribute the Work or copies thereof,
|
|
69
|
+
- lend and rent the Work or copies thereof,
|
|
70
|
+
- sublicense rights in the Work or copies thereof.
|
|
71
|
+
|
|
72
|
+
Those rights can be exercised on any media, supports and formats, whether now
|
|
73
|
+
known or later invented, as far as the applicable law permits so.
|
|
74
|
+
|
|
75
|
+
In the countries where moral rights apply, the Licensor waives his right to
|
|
76
|
+
exercise his moral right to the extent allowed by law in order to make effective
|
|
77
|
+
the licence of the economic rights here above listed.
|
|
78
|
+
|
|
79
|
+
The Licensor grants to the Licensee royalty-free, non-exclusive usage rights to
|
|
80
|
+
any patents held by the Licensor, to the extent necessary to make use of the
|
|
81
|
+
rights granted on the Work under this Licence.
|
|
82
|
+
|
|
83
|
+
3. Communication of the Source Code
|
|
84
|
+
|
|
85
|
+
The Licensor may provide the Work either in its Source Code form, or as
|
|
86
|
+
Executable Code. If the Work is provided as Executable Code, the Licensor
|
|
87
|
+
provides in addition a machine-readable copy of the Source Code of the Work
|
|
88
|
+
along with each copy of the Work that the Licensor distributes or indicates, in
|
|
89
|
+
a notice following the copyright notice attached to the Work, a repository where
|
|
90
|
+
the Source Code is easily and freely accessible for as long as the Licensor
|
|
91
|
+
continues to distribute or communicate the Work.
|
|
92
|
+
|
|
93
|
+
4. Limitations on copyright
|
|
94
|
+
|
|
95
|
+
Nothing in this Licence is intended to deprive the Licensee of the benefits from
|
|
96
|
+
any exception or limitation to the exclusive rights of the rights owners in the
|
|
97
|
+
Work, of the exhaustion of those rights or of other applicable limitations
|
|
98
|
+
thereto.
|
|
99
|
+
|
|
100
|
+
5. Obligations of the Licensee
|
|
101
|
+
|
|
102
|
+
The grant of the rights mentioned above is subject to some restrictions and
|
|
103
|
+
obligations imposed on the Licensee. Those obligations are the following:
|
|
104
|
+
|
|
105
|
+
Attribution right: The Licensee shall keep intact all copyright, patent or
|
|
106
|
+
trademarks notices and all notices that refer to the Licence and to the
|
|
107
|
+
disclaimer of warranties. The Licensee must include a copy of such notices and a
|
|
108
|
+
copy of the Licence with every copy of the Work he/she distributes or
|
|
109
|
+
communicates. The Licensee must cause any Derivative Work to carry prominent
|
|
110
|
+
notices stating that the Work has been modified and the date of modification.
|
|
111
|
+
|
|
112
|
+
Copyleft clause: If the Licensee distributes or communicates copies of the
|
|
113
|
+
Original Works or Derivative Works, this Distribution or Communication will be
|
|
114
|
+
done under the terms of this Licence or of a later version of this Licence
|
|
115
|
+
unless the Original Work is expressly distributed only under this version of the
|
|
116
|
+
Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee
|
|
117
|
+
(becoming Licensor) cannot offer or impose any additional terms or conditions on
|
|
118
|
+
the Work or Derivative Work that alter or restrict the terms of the Licence.
|
|
119
|
+
|
|
120
|
+
Compatibility clause: If the Licensee Distributes or Communicates Derivative
|
|
121
|
+
Works or copies thereof based upon both the Work and another work licensed under
|
|
122
|
+
a Compatible Licence, this Distribution or Communication can be done under the
|
|
123
|
+
terms of this Compatible Licence. For the sake of this clause, ‘Compatible
|
|
124
|
+
Licence’ refers to the licences listed in the appendix attached to this Licence.
|
|
125
|
+
Should the Licensee's obligations under the Compatible Licence conflict with
|
|
126
|
+
his/her obligations under this Licence, the obligations of the Compatible
|
|
127
|
+
Licence shall prevail.
|
|
128
|
+
|
|
129
|
+
Provision of Source Code: When distributing or communicating copies of the Work,
|
|
130
|
+
the Licensee will provide a machine-readable copy of the Source Code or indicate
|
|
131
|
+
a repository where this Source will be easily and freely available for as long
|
|
132
|
+
as the Licensee continues to distribute or communicate the Work.
|
|
133
|
+
|
|
134
|
+
Legal Protection: This Licence does not grant permission to use the trade names,
|
|
135
|
+
trademarks, service marks, or names of the Licensor, except as required for
|
|
136
|
+
reasonable and customary use in describing the origin of the Work and
|
|
137
|
+
reproducing the content of the copyright notice.
|
|
138
|
+
|
|
139
|
+
6. Chain of Authorship
|
|
140
|
+
|
|
141
|
+
The original Licensor warrants that the copyright in the Original Work granted
|
|
142
|
+
hereunder is owned by him/her or licensed to him/her and that he/she has the
|
|
143
|
+
power and authority to grant the Licence.
|
|
144
|
+
|
|
145
|
+
Each Contributor warrants that the copyright in the modifications he/she brings
|
|
146
|
+
to the Work are owned by him/her or licensed to him/her and that he/she has the
|
|
147
|
+
power and authority to grant the Licence.
|
|
148
|
+
|
|
149
|
+
Each time You accept the Licence, the original Licensor and subsequent
|
|
150
|
+
Contributors grant You a licence to their contributions to the Work, under the
|
|
151
|
+
terms of this Licence.
|
|
152
|
+
|
|
153
|
+
7. Disclaimer of Warranty
|
|
154
|
+
|
|
155
|
+
The Work is a work in progress, which is continuously improved by numerous
|
|
156
|
+
Contributors. It is not a finished work and may therefore contain defects or
|
|
157
|
+
‘bugs’ inherent to this type of development.
|
|
158
|
+
|
|
159
|
+
For the above reason, the Work is provided under the Licence on an ‘as is’ basis
|
|
160
|
+
and without warranties of any kind concerning the Work, including without
|
|
161
|
+
limitation merchantability, fitness for a particular purpose, absence of defects
|
|
162
|
+
or errors, accuracy, non-infringement of intellectual property rights other than
|
|
163
|
+
copyright as stated in Article 6 of this Licence.
|
|
164
|
+
|
|
165
|
+
This disclaimer of warranty is an essential part of the Licence and a condition
|
|
166
|
+
for the grant of any rights to the Work.
|
|
167
|
+
|
|
168
|
+
8. Disclaimer of Liability
|
|
169
|
+
|
|
170
|
+
Except in the cases of wilful misconduct or damages directly caused to natural
|
|
171
|
+
persons, the Licensor will in no event be liable for any direct or indirect,
|
|
172
|
+
material or moral, damages of any kind, arising out of the Licence or of the use
|
|
173
|
+
of the Work, including without limitation, damages for loss of goodwill, work
|
|
174
|
+
stoppage, computer failure or malfunction, loss of data or any commercial
|
|
175
|
+
damage, even if the Licensor has been advised of the possibility of such damage.
|
|
176
|
+
However, the Licensor will be liable under statutory product liability laws as
|
|
177
|
+
far such laws apply to the Work.
|
|
178
|
+
|
|
179
|
+
9. Additional agreements
|
|
180
|
+
|
|
181
|
+
While distributing the Work, You may choose to conclude an additional agreement,
|
|
182
|
+
defining obligations or services consistent with this Licence. However, if
|
|
183
|
+
accepting obligations, You may act only on your own behalf and on your sole
|
|
184
|
+
responsibility, not on behalf of the original Licensor or any other Contributor,
|
|
185
|
+
and only if You agree to indemnify, defend, and hold each Contributor harmless
|
|
186
|
+
for any liability incurred by, or claims asserted against such Contributor by
|
|
187
|
+
the fact You have accepted any warranty or additional liability.
|
|
188
|
+
|
|
189
|
+
10. Acceptance of the Licence
|
|
190
|
+
|
|
191
|
+
The provisions of this Licence can be accepted by clicking on an icon ‘I agree’
|
|
192
|
+
placed under the bottom of a window displaying the text of this Licence or by
|
|
193
|
+
affirming consent in any other similar way, in accordance with the rules of
|
|
194
|
+
applicable law. Clicking on that icon indicates your clear and irrevocable
|
|
195
|
+
acceptance of this Licence and all of its terms and conditions.
|
|
196
|
+
|
|
197
|
+
Similarly, you irrevocably accept this Licence and all of its terms and
|
|
198
|
+
conditions by exercising any rights granted to You by Article 2 of this Licence,
|
|
199
|
+
such as the use of the Work, the creation by You of a Derivative Work or the
|
|
200
|
+
Distribution or Communication by You of the Work or copies thereof.
|
|
201
|
+
|
|
202
|
+
11. Information to the public
|
|
203
|
+
|
|
204
|
+
In case of any Distribution or Communication of the Work by means of electronic
|
|
205
|
+
communication by You (for example, by offering to download the Work from a
|
|
206
|
+
remote location) the distribution channel or media (for example, a website) must
|
|
207
|
+
at least provide to the public the information requested by the applicable law
|
|
208
|
+
regarding the Licensor, the Licence and the way it may be accessible, concluded,
|
|
209
|
+
stored and reproduced by the Licensee.
|
|
210
|
+
|
|
211
|
+
12. Termination of the Licence
|
|
212
|
+
|
|
213
|
+
The Licence and the rights granted hereunder will terminate automatically upon
|
|
214
|
+
any breach by the Licensee of the terms of the Licence.
|
|
215
|
+
|
|
216
|
+
Such a termination will not terminate the licences of any person who has
|
|
217
|
+
received the Work from the Licensee under the Licence, provided such persons
|
|
218
|
+
remain in full compliance with the Licence.
|
|
219
|
+
|
|
220
|
+
13. Miscellaneous
|
|
221
|
+
|
|
222
|
+
Without prejudice of Article 9 above, the Licence represents the complete
|
|
223
|
+
agreement between the Parties as to the Work.
|
|
224
|
+
|
|
225
|
+
If any provision of the Licence is invalid or unenforceable under applicable
|
|
226
|
+
law, this will not affect the validity or enforceability of the Licence as a
|
|
227
|
+
whole. Such provision will be construed or reformed so as necessary to make it
|
|
228
|
+
valid and enforceable.
|
|
229
|
+
|
|
230
|
+
The European Commission may publish other linguistic versions or new versions of
|
|
231
|
+
this Licence or updated versions of the Appendix, so far this is required and
|
|
232
|
+
reasonable, without reducing the scope of the rights granted by the Licence. New
|
|
233
|
+
versions of the Licence will be published with a unique version number.
|
|
234
|
+
|
|
235
|
+
All linguistic versions of this Licence, approved by the European Commission,
|
|
236
|
+
have identical value. Parties can take advantage of the linguistic version of
|
|
237
|
+
their choice.
|
|
238
|
+
|
|
239
|
+
14. Jurisdiction
|
|
240
|
+
|
|
241
|
+
Without prejudice to specific agreement between parties,
|
|
242
|
+
|
|
243
|
+
- any litigation resulting from the interpretation of this License, arising
|
|
244
|
+
between the European Union institutions, bodies, offices or agencies, as a
|
|
245
|
+
Licensor, and any Licensee, will be subject to the jurisdiction of the Court
|
|
246
|
+
of Justice of the European Union, as laid down in article 272 of the Treaty on
|
|
247
|
+
the Functioning of the European Union,
|
|
248
|
+
|
|
249
|
+
- any litigation arising between other parties and resulting from the
|
|
250
|
+
interpretation of this License, will be subject to the exclusive jurisdiction
|
|
251
|
+
of the competent court where the Licensor resides or conducts its primary
|
|
252
|
+
business.
|
|
253
|
+
|
|
254
|
+
15. Applicable Law
|
|
255
|
+
|
|
256
|
+
Without prejudice to specific agreement between parties,
|
|
257
|
+
|
|
258
|
+
- this Licence shall be governed by the law of the European Union Member State
|
|
259
|
+
where the Licensor has his seat, resides or has his registered office,
|
|
260
|
+
|
|
261
|
+
- this licence shall be governed by Belgian law if the Licensor has no seat,
|
|
262
|
+
residence or registered office inside a European Union Member State.
|
|
263
|
+
|
|
264
|
+
Appendix
|
|
265
|
+
|
|
266
|
+
‘Compatible Licences’ according to Article 5 EUPL are:
|
|
267
|
+
|
|
268
|
+
- GNU General Public License (GPL) v. 2, v. 3
|
|
269
|
+
- GNU Affero General Public License (AGPL) v. 3
|
|
270
|
+
- Open Software License (OSL) v. 2.1, v. 3.0
|
|
271
|
+
- Eclipse Public License (EPL) v. 1.0
|
|
272
|
+
- CeCILL v. 2.0, v. 2.1
|
|
273
|
+
- Mozilla Public Licence (MPL) v. 2
|
|
274
|
+
- GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
|
|
275
|
+
- Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
|
|
276
|
+
works other than software
|
|
277
|
+
- European Union Public Licence (EUPL) v. 1.1, v. 1.2
|
|
278
|
+
- Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
|
|
279
|
+
Reciprocity (LiLiQ-R+).
|
|
280
|
+
|
|
281
|
+
The European Commission may update this Appendix to later versions of the above
|
|
282
|
+
licences without producing a new version of the EUPL, as long as they provide
|
|
283
|
+
the rights granted in Article 2 of this Licence and protect the covered Source
|
|
284
|
+
Code from exclusive appropriation.
|
|
285
|
+
|
|
286
|
+
All other changes or additions to this Appendix require the production of a new
|
|
287
|
+
EUPL version.
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: greenshadow
|
|
3
|
+
Version: 1.2.2
|
|
4
|
+
Summary: Python library for environmental shading analysis using LiDAR data and hillshade algorithms with maximum detail for rural and urban areas.
|
|
5
|
+
Home-page: https://github.com/BeeGroup-cimne/greenshadow
|
|
6
|
+
Author: Jose Manuel Broto, Gerard Mor
|
|
7
|
+
Author-email: jmbroto@cimne.upc.edu, gmor@cimne.upc.edu
|
|
8
|
+
License: EUPL-1.2
|
|
9
|
+
Project-URL: Bug Reports, https://github.com/BeeGroup-cimne/greenshadow/issues
|
|
10
|
+
Project-URL: Source, https://github.com/BeeGroup-cimne/greenshadow
|
|
11
|
+
Project-URL: Documentation, https://github.com/BeeGroup-cimne/greenshadow/blob/master/README.md
|
|
12
|
+
Keywords: lidar gis solar shading hillshade remote-sensing urban-planning
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
|
|
20
|
+
Requires-Python: >=3.12
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: affine>=2.3.0
|
|
24
|
+
Requires-Dist: beautifulsoup4>=4.12
|
|
25
|
+
Requires-Dist: contextily>=1.3.0
|
|
26
|
+
Requires-Dist: duckdb>=1.0
|
|
27
|
+
Requires-Dist: geopandas>=0.13.0
|
|
28
|
+
Requires-Dist: imageio>=2.20
|
|
29
|
+
Requires-Dist: laspy[lazrs]>=2.4.0
|
|
30
|
+
Requires-Dist: matplotlib>=3.5.0
|
|
31
|
+
Requires-Dist: numba>=0.57
|
|
32
|
+
Requires-Dist: numpy>=1.21.0
|
|
33
|
+
Requires-Dist: opencv-python>=4.5
|
|
34
|
+
Requires-Dist: pandas>=1.5.0
|
|
35
|
+
Requires-Dist: pillow>=9.0.0
|
|
36
|
+
Requires-Dist: psutil>=5.9
|
|
37
|
+
Requires-Dist: pvlib>=0.10
|
|
38
|
+
Requires-Dist: pyarrow>=14.0
|
|
39
|
+
Requires-Dist: pyogrio>=0.7
|
|
40
|
+
Requires-Dist: pyproj>=3.3.0
|
|
41
|
+
Requires-Dist: pytz>=2022.1
|
|
42
|
+
Requires-Dist: rasterio>=1.3.0
|
|
43
|
+
Requires-Dist: requests>=2.28.0
|
|
44
|
+
Requires-Dist: scikit-image>=0.20
|
|
45
|
+
Requires-Dist: scipy>=1.9.0
|
|
46
|
+
Requires-Dist: shapely>=1.8.0
|
|
47
|
+
Requires-Dist: threadpoolctl>=3.0
|
|
48
|
+
Requires-Dist: tqdm>=4.64.0
|
|
49
|
+
Requires-Dist: GDAL>=3.4.0
|
|
50
|
+
Requires-Dist: PyYAML>=5.4
|
|
51
|
+
Provides-Extra: solar
|
|
52
|
+
Requires-Dist: pysolar>=0.10; extra == "solar"
|
|
53
|
+
Requires-Dist: sunpy>=4.0.0; extra == "solar"
|
|
54
|
+
Requires-Dist: astropy>=5.0; extra == "solar"
|
|
55
|
+
Requires-Dist: pvlib>=0.10; extra == "solar"
|
|
56
|
+
Provides-Extra: pdal
|
|
57
|
+
Requires-Dist: pdal>=3.0.0; extra == "pdal"
|
|
58
|
+
Provides-Extra: weather
|
|
59
|
+
Requires-Dist: hypercadaster_ES>=1.2.3; extra == "weather"
|
|
60
|
+
Requires-Dist: polars>=1.0; extra == "weather"
|
|
61
|
+
Requires-Dist: cdsapi>=0.7; extra == "weather"
|
|
62
|
+
Requires-Dist: zarr>=2.18; extra == "weather"
|
|
63
|
+
Requires-Dist: fsspec>=2023.1.0; extra == "weather"
|
|
64
|
+
Requires-Dist: aiohttp>=3.8; extra == "weather"
|
|
65
|
+
Provides-Extra: grid
|
|
66
|
+
Requires-Dist: hypercadaster_ES>=1.2.3; extra == "grid"
|
|
67
|
+
Requires-Dist: pyrosm>=0.6; extra == "grid"
|
|
68
|
+
Provides-Extra: parcels
|
|
69
|
+
Requires-Dist: duckdb>=1.0; extra == "parcels"
|
|
70
|
+
Provides-Extra: satellite
|
|
71
|
+
Requires-Dist: pystac-client>=0.7; extra == "satellite"
|
|
72
|
+
Requires-Dist: planetary-computer>=1.0; extra == "satellite"
|
|
73
|
+
Requires-Dist: odc-stac>=0.3; extra == "satellite"
|
|
74
|
+
Requires-Dist: rioxarray>=0.13; extra == "satellite"
|
|
75
|
+
Provides-Extra: cuda
|
|
76
|
+
Requires-Dist: numba-cuda[cu13]; extra == "cuda"
|
|
77
|
+
Provides-Extra: dev
|
|
78
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
79
|
+
Requires-Dist: black>=22.0.0; extra == "dev"
|
|
80
|
+
Requires-Dist: flake8>=4.0.0; extra == "dev"
|
|
81
|
+
Provides-Extra: viz3d
|
|
82
|
+
Requires-Dist: plotly>=5.0.0; extra == "viz3d"
|
|
83
|
+
Requires-Dist: pyvista>=0.40; extra == "viz3d"
|
|
84
|
+
Provides-Extra: all
|
|
85
|
+
Requires-Dist: aiohttp>=3.8; extra == "all"
|
|
86
|
+
Requires-Dist: astropy>=5.0; extra == "all"
|
|
87
|
+
Requires-Dist: cdsapi>=0.7; extra == "all"
|
|
88
|
+
Requires-Dist: fsspec>=2023.1.0; extra == "all"
|
|
89
|
+
Requires-Dist: hypercadaster_ES>=1.2.3; extra == "all"
|
|
90
|
+
Requires-Dist: odc-stac>=0.3; extra == "all"
|
|
91
|
+
Requires-Dist: planetary-computer>=1.0; extra == "all"
|
|
92
|
+
Requires-Dist: plotly>=5.0.0; extra == "all"
|
|
93
|
+
Requires-Dist: polars>=1.0; extra == "all"
|
|
94
|
+
Requires-Dist: pvlib>=0.10; extra == "all"
|
|
95
|
+
Requires-Dist: pyrosm>=0.6; extra == "all"
|
|
96
|
+
Requires-Dist: pysolar>=0.10; extra == "all"
|
|
97
|
+
Requires-Dist: pystac-client>=0.7; extra == "all"
|
|
98
|
+
Requires-Dist: pyvista>=0.40; extra == "all"
|
|
99
|
+
Requires-Dist: rioxarray>=0.13; extra == "all"
|
|
100
|
+
Requires-Dist: sunpy>=4.0.0; extra == "all"
|
|
101
|
+
Requires-Dist: zarr>=2.18; extra == "all"
|
|
102
|
+
Dynamic: author
|
|
103
|
+
Dynamic: author-email
|
|
104
|
+
Dynamic: classifier
|
|
105
|
+
Dynamic: description
|
|
106
|
+
Dynamic: description-content-type
|
|
107
|
+
Dynamic: home-page
|
|
108
|
+
Dynamic: keywords
|
|
109
|
+
Dynamic: license
|
|
110
|
+
Dynamic: license-file
|
|
111
|
+
Dynamic: project-url
|
|
112
|
+
Dynamic: provides-extra
|
|
113
|
+
Dynamic: requires-dist
|
|
114
|
+
Dynamic: requires-python
|
|
115
|
+
Dynamic: summary
|
|
116
|
+
|
|
117
|
+
# greenshadow
|
|
118
|
+
|
|
119
|
+
Solar irradiation and PV potential at sub-metre resolution, from classified
|
|
120
|
+
LiDAR and reanalysis weather. greenshadow builds surface and terrain models
|
|
121
|
+
from the point cloud, casts the shadows of terrain, buildings and
|
|
122
|
+
semi-transparent trees for every sun position, sums them with the weather
|
|
123
|
+
into irradiation rasters, and lays out PV on the roofs and PV fields and
|
|
124
|
+
agrivoltaics on the rural parcels - costed and ranked against what each
|
|
125
|
+
parcel earns today.
|
|
126
|
+
|
|
127
|
+
It is built and validated on Catalan municipalities (ICGC LiDAR, Spanish
|
|
128
|
+
cadastre, SIGPAC), and the solar part is region-agnostic.
|
|
129
|
+
|
|
130
|
+
## What it does
|
|
131
|
+
|
|
132
|
+
- **Digital models from LiDAR**: DSM, DSM without vegetation and DEM at
|
|
133
|
+
0.5 m, with class correction from cadastral footprints, crane removal,
|
|
134
|
+
class-aware smoothing and seam-free tiling of whole municipalities.
|
|
135
|
+
- **Cast shadows** for every sun position, on the GPU when available, with
|
|
136
|
+
trees as a semi-transparent medium (tree crowns, seasonal leaves, growth
|
|
137
|
+
since the LiDAR flight).
|
|
138
|
+
- **Sky view factor** for the diffuse irradiance.
|
|
139
|
+
- **Weather**: ERA5-Land with ERA5's own direct radiation, aligned to the
|
|
140
|
+
middle of each hour and split into beam and diffuse at the exact sun
|
|
141
|
+
position, checked against PVGIS-SARAH3.
|
|
142
|
+
- **Irradiation rasters**: on the surface itself, or as exact bases for any
|
|
143
|
+
fixed panel orientation, vertical bifacial fences and single- and
|
|
144
|
+
dual-axis trackers (validated against pvlib).
|
|
145
|
+
- **Roof planes** segmented from the LiDAR, their **obstacles** (chimneys,
|
|
146
|
+
parapets, skylights ... from the LiDAR returns and the sky view factor)
|
|
147
|
+
and **rooftop PV** on what is left: modules and strings per building, one
|
|
148
|
+
scenario per mounting.
|
|
149
|
+
- **Crop rows**: direction, spacing, canopy and alley of every plantation.
|
|
150
|
+
- **PV fields and agrivoltaics** on every agricultural parcel - fixed,
|
|
151
|
+
trackers, solar grazing, overhead, interspace, vertical bifacial, and
|
|
152
|
+
agrivoltaics built into existing crop rows - with NPV, IRR, LCOE, payback
|
|
153
|
+
and land-equivalent ratio.
|
|
154
|
+
- **Pipelines**: the whole chain in one call per area, cached on disk.
|
|
155
|
+
|
|
156
|
+
## Quick start
|
|
157
|
+
|
|
158
|
+
```python
|
|
159
|
+
import datetime as dt
|
|
160
|
+
import greenshadow as gs
|
|
161
|
+
|
|
162
|
+
results = gs.run_catalonia_municipalities(
|
|
163
|
+
{"Alpicat": "25023"}, # output name: cadastral code
|
|
164
|
+
wd="/path/to/working/directory",
|
|
165
|
+
year=2023, # annual irradiation + PV layouts
|
|
166
|
+
days=[dt.date(2023, 12, 22)], # daily shadows, videos, irradiation
|
|
167
|
+
)
|
|
168
|
+
alpicat = results["Alpicat"]
|
|
169
|
+
alpicat.roof_pv_summary # rooftop PV per building and scenario
|
|
170
|
+
alpicat.parcel_pv_best # best PV / agrivoltaic scenario per parcel
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
or from the shell:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
python -m greenshadow.pipelines catalonia 25023 --name Alpicat \
|
|
177
|
+
--wd /path/to/working/directory --year 2023 --day 2023-12-22
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Every product lands under `{wd}/{name}/` and is reused on the next run.
|
|
181
|
+
[`example/get_solar_energy_from_municipality.py`](https://github.com/BeeGroup-cimne/greenshadow/blob/master/example/get_solar_energy_from_municipality.py)
|
|
182
|
+
shows every setting; [docs/pipelines.md](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/pipelines.md) lists them, the
|
|
183
|
+
outputs, and how to add a region (a bare DEM is enough for PV fields).
|
|
184
|
+
|
|
185
|
+
## Documentation
|
|
186
|
+
|
|
187
|
+
One document per computation, in [docs/](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/README.md):
|
|
188
|
+
|
|
189
|
+
| | |
|
|
190
|
+
|---|---|
|
|
191
|
+
| [Pipelines](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/pipelines.md) | The chain in one call; configuration, outputs, adding a region |
|
|
192
|
+
| [Example run: Alpicat](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/example_run_alpicat.md) | Execution time of each stage on one municipality, outputs, disk use |
|
|
193
|
+
| [Data sources](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/data_sources.md) | ICGC LiDAR and orthophoto, cadastre, SIGPAC, protected areas, ERA5, satellite |
|
|
194
|
+
| [Digital models](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/digital_models.md) | DSM / DEM: classes, correction, cranes, gap filling, smoothing, tiling |
|
|
195
|
+
| [Hillshades and sky view](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/hillshades_and_sky_view.md) | Sun tables, cast shadows (CPU / CUDA), elevated shadows, videos, SVF |
|
|
196
|
+
| [Vegetation canopy](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/vegetation_canopy.md) | Semi-transparent trees, crowns, leaves, growth |
|
|
197
|
+
| [Irradiance from ERA5](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/irradiance_era5.md) | Time alignment and beam/sky split, validated against PVGIS-SARAH3 |
|
|
198
|
+
| [Irradiation rasters](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/solar_energy.md) | Modes, units, POA bases, the one-pass reader |
|
|
199
|
+
| [Trackers and vertical PV](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/pv_tracking_irradiance_plan.md) | Vertical and tracking bases, shading between rows, pvlib validation |
|
|
200
|
+
| [Roof inference](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/roof_inference.md) | Roof planes from LiDAR, regularization, accuracy |
|
|
201
|
+
| [Roof obstacles](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/roof_obstacles.md) | Chimneys, parapets, skylights (LiDAR, sky view factor, SAM 3 on the orthophoto); the usable area of each roof plane; validation |
|
|
202
|
+
| [Rooftop PV](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/rooftop_pv.md) | Modules and strings on the roofs |
|
|
203
|
+
| [Crop rows](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/crop_rows.md) | Plantation geometry of the parcels |
|
|
204
|
+
| [Parcel PV and agrivoltaics](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/parcel_pv.md) | Scenarios, crops, economics, ranking |
|
|
205
|
+
| [Grid data](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/grid_data.md) | Substations, lines and access capacities around a site |
|
|
206
|
+
| [Grid connection](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/grid_connection.md) | Where each roof and parcel connects, at what cost, within what capacity |
|
|
207
|
+
| [Light on the crop](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/crop_light.md) | Light under the rows, the declared crop, the 40 % rule and the agrivoltaic frameworks |
|
|
208
|
+
| [Parcels from any region](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/parcel_sources.md) | One parcel schema for SIGPAC and fiboa (Portugal), HCAT crops, the parcels-and-grid screening |
|
|
209
|
+
| [PV and agrivoltaics manual](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/manual/README.md) | Every PV system with its section and a real layout, losses, costs, grid connection, crop light and the 40 % rule, selection, economics, worked examples |
|
|
210
|
+
|
|
211
|
+
[CHANGELOG.md](https://github.com/BeeGroup-cimne/greenshadow/blob/master/CHANGELOG.md) lists what changed and when;
|
|
212
|
+
[usecase.md](https://github.com/BeeGroup-cimne/greenshadow/blob/master/usecase.md) walks through Alpicat step by step.
|
|
213
|
+
|
|
214
|
+
## Modules
|
|
215
|
+
|
|
216
|
+
| Module | Main functions |
|
|
217
|
+
|---|---|
|
|
218
|
+
| `pipelines` | `run_catalonia_municipalities`, `CataloniaMunicipalityPipeline`, `CataloniaConfig`, `SolarPipeline`, `PipelineConfig`, `TerrainModels` |
|
|
219
|
+
| `lidar` | `icgc_tiles_from_geojson`, `icgc_download_from_geojson`, `icgc_lidar_metadata`, `icgc_lidar_acquisition_date` |
|
|
220
|
+
| `dsm_dem_estimation` | `build_digital_model_from_lidar_tiled`, `build_digital_model_from_lidar_pure`, `remove_objects_from_dsm`, `build_dem_from_masked_dsm` |
|
|
221
|
+
| `shader` | `generate_azimuth_altitude_pairs_by_date` / `_by_year`, `generate_multiple_hillshades_gdal`, `apply_height_shadow_to_hillshades`, `generate_daily_shadow_mp4`, `calculate_sky_view_factor`, `compute_surface_solar_energy` / `_energies`, `reconstruct_poa_from_basis`, `reconstruct_vertical_poa`, `reconstruct_tracking_poa`, `build_canopy_model_from_rasters`, `vegetation_growth`, `load_hillshade` |
|
|
222
|
+
| `weather` | `load_ERA5Land`, `load_ERA5Land_with_direct_radiation`, `load_ERA5_radiation` |
|
|
223
|
+
| `buildings_infer` | `detect_roof_planes`, `detect_roof_planes_tiled`, `filter_roof_planes_by_aoi`, `regularize_roof_planes` |
|
|
224
|
+
| `roofs_3d` | `roof_planes_3d` (WebGL view of the planes over the LiDAR) |
|
|
225
|
+
| `roof_obstacles` | `detect_lidar_obstacles`, `planes_qc_without_lidar`, `detect_svf_obstacles`, `coregister_orthophoto`, `detect_sam3_obstacles`, `detect_shadow_obstacles`, `fuse_obstacles`, `write_obstacle_layers`, `ObstacleConfig` |
|
|
226
|
+
| `sam3_worker` | `Sam3Segmenter` (in-process), `Sam3Client` (another interpreter over a pipe) |
|
|
227
|
+
| `roof_obstacles_validation` | `sample_roofs_for_labelling`, `obstacle_metrics`, `validate_obstacles`, `pv_yield_by_variant`, `plot_roof_obstacles`, `write_debug_pngs` |
|
|
228
|
+
| `orthophoto` | `icgc_orthophoto`, `dgt_orthophoto`, `local_orthophoto`, `read_orthophoto`, `Orthophoto` |
|
|
229
|
+
| `overture` | `overture_buildings`, `overture_building_uses`, `overture_release` |
|
|
230
|
+
| `dimensionate` | `plan_pv_strings_in_buildings`, `PVModuleSpec`, `DEFAULT_MODULES` |
|
|
231
|
+
| `rural_parcels` | `load_spanish_sigpac_parcels`, `filter_agricultural_parcels`, `sigpac_parcel_id`, `load_spanish_preserved_regions`, `tag_parcels_with_preserved_areas` |
|
|
232
|
+
| `crop_rows` | `detect_crop_rows` |
|
|
233
|
+
| `parcel_pv` | `plan_parcel_pv_scenarios`, `project_cashflows`, `MountingSystem`, `CropProfile`, `Economics`, `DEFAULT_SYSTEMS`, `DEFAULT_CROPS` |
|
|
234
|
+
| `satellite` | `get_ndvi`, `get_lst`, `get_vegetation_surface_indices` |
|
|
235
|
+
| `utils` | `force_raster_value_based_on_geometries`, `has_cuda`, `cuda_info` |
|
|
236
|
+
|
|
237
|
+
Most are exported at the package level (`gs.<function>`); the rest through
|
|
238
|
+
their module, e.g. `gs.dsm_dem_estimation.build_digital_model_from_lidar_pure`
|
|
239
|
+
or `gs.shader.load_hillshade`.
|
|
240
|
+
|
|
241
|
+
## Installation
|
|
242
|
+
|
|
243
|
+
Python 3.12 or later. GDAL first:
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
# Ubuntu / Debian
|
|
247
|
+
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
|
|
248
|
+
sudo apt update && sudo apt install gdal-bin libgdal-dev python3-dev
|
|
249
|
+
# macOS
|
|
250
|
+
brew install gdal
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Then the package from PyPI, in a virtual environment. GDAL's Python bindings
|
|
254
|
+
must match the system library, so install them first at its version:
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
python -m venv venv && source venv/bin/activate
|
|
258
|
+
pip install "GDAL==$(gdal-config --version)"
|
|
259
|
+
pip install "greenshadow[weather,cuda]"
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
For development, from a clone of the repository instead:
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
git clone https://github.com/BeeGroup-cimne/greenshadow.git
|
|
266
|
+
cd greenshadow
|
|
267
|
+
python -m venv venv && source venv/bin/activate
|
|
268
|
+
pip install -e ".[weather,cuda,dev]"
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
| Extra | Brings | Needed for |
|
|
272
|
+
|---|---|---|
|
|
273
|
+
| `weather` | `hypercadaster_ES`, `zarr`, `fsspec`, `aiohttp` | Weather, municipality boundaries, cadastre (and the Catalan pipeline) |
|
|
274
|
+
| `cuda` | `numba-cuda[cu13]` (CUDA toolkit and libNVVM as wheels) | GPU hillshades, SVF and irradiation; everything has a CPU path |
|
|
275
|
+
| `viz3d` | `plotly` | Optional 3D outputs |
|
|
276
|
+
| `pdal`, `solar` | PDAL, `pysolar`, `sunpy` | Optional |
|
|
277
|
+
| `dev` | `pytest`, `black`, `flake8` | Development |
|
|
278
|
+
|
|
279
|
+
Install the CUDA toolkit through the `cuda` extra rather than conda: numba
|
|
280
|
+
then finds the pip libNVVM. `gs.utils.cuda_info()` says whether the GPU is
|
|
281
|
+
usable.
|
|
282
|
+
|
|
283
|
+
The satellite indices need `pystac-client planetary-computer odc-stac
|
|
284
|
+
rioxarray`.
|
|
285
|
+
|
|
286
|
+
**Weather credentials.** ERA5 and ERA5-Land come from the Copernicus
|
|
287
|
+
Climate Data Store: create an account at
|
|
288
|
+
[cds.climate.copernicus.eu](https://cds.climate.copernicus.eu) and put the
|
|
289
|
+
API URL and key in `~/.cdsapirc`.
|
|
290
|
+
|
|
291
|
+
## Tests
|
|
292
|
+
|
|
293
|
+
The test and evaluation scripts are at the repository root and run as
|
|
294
|
+
`python test_<name>.py`; [docs/README.md](https://github.com/BeeGroup-cimne/greenshadow/blob/master/docs/README.md#tests-and-evaluation-scripts)
|
|
295
|
+
lists what each one checks.
|
|
296
|
+
|
|
297
|
+
## Citation
|
|
298
|
+
|
|
299
|
+
If you use greenshadow in your research, please cite:
|
|
300
|
+
|
|
301
|
+
```bibtex
|
|
302
|
+
@software{greenshadow2025,
|
|
303
|
+
author = {Broto, Jose Manuel and Mor, Gerard},
|
|
304
|
+
title = {greenshadow: Environmental shading analysis and solar energy assessment using LiDAR data},
|
|
305
|
+
year = {2026},
|
|
306
|
+
url = {https://github.com/BeeGroup-cimne/greenshadow},
|
|
307
|
+
version = {1.2.2}
|
|
308
|
+
}
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
## 📄 License
|
|
312
|
+
|
|
313
|
+
This project is licensed under the **EUPL v1.2**. See the [license](https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12) for details.
|
|
314
|
+
|
|
315
|
+
## 👥 Authors & Contributors
|
|
316
|
+
|
|
317
|
+
**Main Authors:**
|
|
318
|
+
- **Jose Manuel Broto Vispe** - jmbroto@cimne.upc.edu
|
|
319
|
+
- **Gerard Mor** - gmor@cimne.upc.edu
|
|
320
|
+
|
|
321
|
+
**Co-authors:**
|
|
322
|
+
- **David Blanco** - dblanco@cimne.upc.edu
|
|
323
|
+
- **Kerin Cardona** - kcardona@cimne.upc.edu
|
|
324
|
+
- **Jordi Cipriano** - cipriano@cimne.upc.edu
|
|
325
|
+
- **Gerard Laguna** - glaguna@cimne.upc.edu
|
|
326
|
+
- **Nadiya Mehraj** - nmehraj@cimne.upc.edu
|
|
327
|
+
- **Maite Sellart** - tsellart@cimne.upc.edu
|
|
328
|
+
|
|
329
|
+
**Institutional Affiliations:**
|
|
330
|
+
- **CIMNE** - Centre Internacional de Mètodes Numèrics en Enginyeria, Building Energy and Environment (BEE) group
|
|
331
|
+
- **Universitat Politècnica de Catalunya (UPC)** - Technical University of Catalonia
|
|
332
|
+
|
|
333
|
+
## Acknowledgments
|
|
334
|
+
|
|
335
|
+
- **ICGC** for providing open access to high-quality LiDAR data
|
|
336
|
+
- **Copernicus Climate Change Service** for ERA5Land weather data
|
|
337
|
+
- **CIMNE** for supporting this research
|
|
338
|
+
- This project uses the Segment Anything Model 3 (SAM 3) foundation model developed and released by Meta AI. We are grateful to the Meta Superintelligence Labs team for making this technology available to the AI community.
|
|
339
|
+
- The open-source geospatial community
|