Skip to content

Conversation

AldoCanfora
Copy link
Collaborator

No description provided.

Copy link
Contributor

@Grufoony Grufoony left a 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 and tqdm to show feedback on loops

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

Copy link
Contributor

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):

Copy link
Contributor

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'
Copy link
Contributor

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)
Copy link
Contributor

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):
Copy link
Contributor

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]))
Copy link
Contributor

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:
Copy link
Contributor

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.
Copy link
Contributor

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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants