mirror of
https://github.com/heyarne/earth-observation-for-journalism.git
synced 2026-05-06 19:13:40 +02:00
Write complete text for dNBR comparisons
This commit is contained in:
parent
78a810ee87
commit
7c5c62fcb0
6 changed files with 1325 additions and 435 deletions
|
|
@ -1,39 +0,0 @@
|
|||
rm input/tempelhofer_feld/S2A_MSIL2A_20190216T102111_N0211_R065_T33UUU_20190216T130428.zip
|
||||
rm input/tempelhofer_feld/S2B_MSIL2A_20190419T101029_N0211_R022_T33UUU_20190419T132322.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190407T102021_N0211_R065_T33UUU_20190407T134109.zip
|
||||
rm input/tempelhofer_feld/S2B_MSIL2A_20190512T102029_N0212_R065_T33UUU_20190512T134103.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190613T101031_N0212_R022_T33UUU_20190614T125329.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190424T101031_N0211_R022_T32UQD_20190424T162325.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190822T101031_N0213_R022_T32UQD_20190822T143621.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190623T101031_N0212_R022_T33UUU_20190623T132509.zip
|
||||
ls
|
||||
cd true-color-image/
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190216T102111_N0211_R065_T33UUU_20190216T130428.zip
|
||||
rm input/tempelhofer_feld/S2B_MSIL2A_20190419T101029_N0211_R022_T33UUU_20190419T132322.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190407T102021_N0211_R065_T33UUU_20190407T134109.zip
|
||||
rm input/tempelhofer_feld/S2B_MSIL2A_20190512T102029_N0212_R065_T33UUU_20190512T134103.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190613T101031_N0212_R022_T33UUU_20190614T125329.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190424T101031_N0211_R022_T32UQD_20190424T162325.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190822T101031_N0213_R022_T32UQD_20190822T143621.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190623T101031_N0212_R022_T33UUU_20190623T132509.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190603T101031_N0212_R022_T33UUU_20190603T114652.zip
|
||||
rm input/tempelhofer_feld/S2A_MSIL2A_20190404T101031_N0211_R022_T32UQD_20190404T174806.zip
|
||||
file
|
||||
df -h
|
||||
htop
|
||||
top
|
||||
ls /tmp
|
||||
ls -a
|
||||
ls -a .cache/
|
||||
ls -a .jupyter/
|
||||
ls -a .jupyter/lab/
|
||||
ls -a .jupyter/lab/user-settings/
|
||||
ls -sh
|
||||
ls -sh ..
|
||||
cd true-color-image/input/
|
||||
find . -name '.zip' -size -500M
|
||||
find tempelhofer_feld -name '.zip' -size -500M
|
||||
find tempelhofer_feld -name '*.zip' -size -500M
|
||||
find tempelhofer_feld -name '*.zip' -size -500M | xargs rm
|
||||
rm -rf true-color-image/S2A_MSIL2A_20190114T101351_N0211_R022_T32UQD_20190114T113404.SAFE/
|
||||
rm -rf true-color-image/S2A_MSIL2A_20190114T101351_N0211_R022_T32UQD_20190114T113404.SAFE/
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
"\n",
|
||||
"The variables below are configuration parameters of the pipeline.\n",
|
||||
"Please note that the pipeline does not do any verification of these parameters.\n",
|
||||
"Misconfigurations can break the cells below."
|
||||
"Bad configurations can break the cells below."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -922,6 +922,13 @@
|
|||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.8.6"
|
||||
},
|
||||
"widgets": {
|
||||
"application/vnd.jupyter.widget-state+json": {
|
||||
"state": {},
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -90,15 +90,15 @@ def scihub_band_paths(p, bands, resolution=None):
|
|||
rasters = p.glob('**/*.jp2')
|
||||
|
||||
# take only the paths that contain one of the given bands
|
||||
rasters = [Path(raster) for band in bands for raster in rasters if band in raster]
|
||||
rasters = [raster for band in bands for raster in rasters if band in raster]
|
||||
|
||||
# if a resolution is given, further discard the bands we don't need
|
||||
if resolution:
|
||||
rasters = [raster for raster in rasters if resolution in raster.name]
|
||||
rasters = [raster for raster in rasters if resolution in raster]
|
||||
|
||||
if p.suffix == '.zip':
|
||||
# we have to reformat the paths to
|
||||
rasters = [Path(f'zip+file://{p}!/{r.name}') for r in rasters]
|
||||
# we have to reformat the paths to point inside the zip archive
|
||||
rasters = [f'zip+file://{p}!/{r}' for r in rasters]
|
||||
|
||||
return rasters
|
||||
|
||||
|
|
@ -223,7 +223,7 @@ def geodataframe_on_map(geodataframe):
|
|||
'''
|
||||
bbox = geodataframe.unary_union.bounds
|
||||
minx, miny, maxx, maxy = bbox
|
||||
m = folium.Map([0, 0], tiles='cartodbpositron')
|
||||
m = folium.Map([0, 0], tiles='cartodbpositron', scroll_wheel_zoom=False)
|
||||
folium.GeoJson(geodataframe.to_json()).add_to(m)
|
||||
m.fit_bounds([[miny, minx], [maxy, maxx]])
|
||||
return m
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue