-
Notifications
You must be signed in to change notification settings - Fork 0
sky_view_factor package added #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I leave some final considerations:
- Standalone script with his data/output should not go into the package dir. We can think about a example folder which could be also useful as test (comparing input and output).
- Missing
__init__.py
file which is used to init the submodule - Some files have a weird author... if they come from another repo, we could simply link them
- Consider to use
logging
module to print runtime informations andtqdm
to show feedback on loops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
import numpy as np | ||
|
||
def create_patches(patch_option): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing docstring
@@ -0,0 +1,94 @@ | |||
__author__ = 'xlinfr' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this code come from another repo?
|
||
# Slope and aspect used in SEBE and Wall aspect | ||
def get_ders(dsm, scale): | ||
# dem,_,_=read_dem_grid(dem_file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docstring (same for all the functions in this file)
return shadowresult | ||
|
||
|
||
def shadowingfunction_20_old(a, vegdem, vegdem2, azimuth, altitude, scale, amaxvalue, bush, dlg, forsvf): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does old mean deprecated?
import wallalgorithms as wa | ||
|
||
def wallscheme_prepare(dsm, scale, pixel_resolution, feedback): | ||
total = 100. / (int(dsm.shape[0] * dsm.shape[1])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docstrings
loop_range = np.arange(svf_height, maxWallHeight + svf_height, svf_height) | ||
|
||
# Loop for svf calculations of all voxel heights | ||
for i in loop_range: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use feedback variable and not tqdm
library?
from osgeo.gdalconst import * | ||
|
||
def annulus_weight(altitude, aziinterval): | ||
n = 90. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docstrings
@@ -0,0 +1,197 @@ | |||
from builtins import range | |||
# -*- coding: utf-8 -*- | |||
__author__ = 'xlinfr' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another repo?
No description provided.