Skip to content

Commit

Permalink
Added GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Jan 26, 2020
1 parent 5bb4613 commit 7108f28
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: lint_python
on: [push, pull_request]
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- run: pip install flake8
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
1 change: 1 addition & 0 deletions Array/array_transformations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"cell_type": "code",
"metadata": {},
"source": [
"import math\n",
"# This function masks the input with a threshold on the simple cloud score.\n",
"def cloudMask(img):\n",
" cloudscore = ee.Algorithms.Landsat.simpleCloudScore(img).select('cloud')\n",
Expand Down
1 change: 1 addition & 0 deletions Array/array_transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
'''

# %%
import math
# This function masks the input with a threshold on the simple cloud score.
def cloudMask(img):
cloudscore = ee.Algorithms.Landsat.simpleCloudScore(img).select('cloud')
Expand Down
3 changes: 3 additions & 0 deletions Image/hdr_landsat.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@
"cell_type": "code",
"metadata": {},
"source": [
"import datetime\n",
"\n",
"\n",
"Map.setCenter(-95.738, 18.453, 9)\n",
"\n",
"# Filter the LE7 collection to a single date.\n",
Expand Down
3 changes: 3 additions & 0 deletions Image/hdr_landsat.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
'''

# %%
import datetime


Map.setCenter(-95.738, 18.453, 9)

# Filter the LE7 collection to a single date.
Expand Down
2 changes: 2 additions & 0 deletions Image/hillshade.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
"cell_type": "code",
"metadata": {},
"source": [
"import math\n",
"\n",
"Map.setCenter(-121.767, 46.852, 11)\n",
"\n",
"def Radians(img):\n",
Expand Down
2 changes: 2 additions & 0 deletions Image/hillshade.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
'''

# %%
import math

Map.setCenter(-121.767, 46.852, 11)

def Radians(img):
Expand Down
2 changes: 2 additions & 0 deletions Image/image_displacement.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
"cell_type": "code",
"metadata": {},
"source": [
"import math\n",
"\n",
"# Load the two images to be registered.\n",
"image1 = ee.Image('SKYSAT/GEN-A/PUBLIC/ORTHO/MULTISPECTRAL/s01_20150502T082736Z')\n",
"image2 = ee.Image('SKYSAT/GEN-A/PUBLIC/ORTHO/MULTISPECTRAL/s01_20150305T081019Z')\n",
Expand Down
2 changes: 2 additions & 0 deletions Image/image_displacement.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
'''

# %%
import math

# Load the two images to be registered.
image1 = ee.Image('SKYSAT/GEN-A/PUBLIC/ORTHO/MULTISPECTRAL/s01_20150502T082736Z')
image2 = ee.Image('SKYSAT/GEN-A/PUBLIC/ORTHO/MULTISPECTRAL/s01_20150305T081019Z')
Expand Down
2 changes: 2 additions & 0 deletions Image/texture.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
"cell_type": "code",
"metadata": {},
"source": [
"import math\n",
"\n",
"# Load a high-resolution NAIP image.\n",
"image = ee.Image('USDA/NAIP/DOQQ/m_3712213_sw_10_1_20140613')\n",
"\n",
Expand Down
2 changes: 2 additions & 0 deletions Image/texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
'''

# %%
import math

# Load a high-resolution NAIP image.
image = ee.Image('USDA/NAIP/DOQQ/m_3712213_sw_10_1_20140613')

Expand Down
3 changes: 3 additions & 0 deletions Visualization/hillshade.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@
"cell_type": "code",
"metadata": {},
"source": [
"import math\n",
"\n",
"\n",
"def Radians(img):\n",
" return img.toFloat().multiply(math.pi).divide(180)\n",
"\n",
Expand Down
3 changes: 3 additions & 0 deletions Visualization/hillshade.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
'''

# %%
import math


def Radians(img):
return img.toFloat().multiply(math.pi).divide(180)

Expand Down

0 comments on commit 7108f28

Please sign in to comment.