Skip to content

Commit

Permalink
paper 2 edits
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestfwilliams committed Feb 7, 2022
1 parent c37b23b commit 18e2e7c
Show file tree
Hide file tree
Showing 7 changed files with 939 additions and 865 deletions.
Binary file added .DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions autorift.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# vim: set filetype=cfg:
##------------------------ smallbaselineApp.cfg ------------------------##
########## computing resource configuration
mintpy.compute.maxMemory = 120 #[float > 0.0], auto for 4, max memory to allocate in GB
mintpy.compute.maxMemory = 4 #[float > 0.0], auto for 4, max memory to allocate in GB
## parallel processing with dask
## currently apply to steps: invert_network, correct_topography
## cluster = none to turn off the parallel computing
Expand Down Expand Up @@ -30,7 +30,7 @@ mintpy.load.autoPath = auto #[yes / no], auto for no, use pre-defined aut
mintpy.load.updateMode = no #[yes / no], auto for yes, skip re-loading if HDF5 files are complete
mintpy.load.compression = auto #[gzip / lzf / no], auto for no.
##---------for ISCE only:
mintpy.load.metaFile = /home/micromamba/pixel/poroa/autorift/metadata.txt #[path of common metadata file for the stack], i.e.: ./reference/IW1.xml, ./referenceShelve/data.dat
mintpy.load.metaFile = ../autorift_ndvi/metadata.txt #[path of common metadata file for the stack], i.e.: ./reference/IW1.xml, ./referenceShelve/data.dat
mintpy.load.baselineDir = auto #[path of the baseline dir], i.e.: ./baselines
##---------interferogram datasets:
mintpy.load.unwFile = auto #[path pattern of unwrapped interferogram files]
Expand All @@ -40,8 +40,8 @@ mintpy.load.intFile = auto #[path pattern of wrapped interferogram fil
mintpy.load.ionoFile = auto #[path pattern of ionospheric delay files], optional
mintpy.load.magFile = auto #[path pattern of interferogram magnitude files], optional
##---------offset datasets (optional):
mintpy.load.azOffFile = /home/micromamba/pixel/poroa/autorift/*NSOffset.tif #[path pattern of azimuth offset file], optional
mintpy.load.rgOffFile = /home/micromamba/pixel/poroa/autorift/*EWOffset.tif #[path pattern of range offset file], optional
mintpy.load.azOffFile = ../autorift_ndvi/*NSOffset.tif #[path pattern of azimuth offset file], optional
mintpy.load.rgOffFile = ../autorift_ndvi/*EWOffset.tif #[path pattern of range offset file], optional
mintpy.load.offSnrFile = auto #[path pattern of offset signal-to-noise ratio file], optional
##---------geometry datasets:
mintpy.load.demFile = auto #[path of DEM file]
Expand Down
45 changes: 22 additions & 23 deletions autorift.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{
"data": {
"text/plain": [
"'/home/micromamba/pixel/pixeloffset_mintpy'"
"'/home/micromamba/scripts'"
]
},
"execution_count": 2,
Expand All @@ -51,12 +51,12 @@
"name": "stdout",
"output_type": "stream",
"text": [
"/home/micromamba/pixel/poroa\n"
"/home/micromamba/data/bird_landslide\n"
]
}
],
"source": [
"cd /home/micromamba/pixel/poroa"
"cd /home/micromamba/data/bird_landslide"
]
},
{
Expand Down Expand Up @@ -220,10 +220,9 @@
"source": [
"Image = namedtuple('Image','date file')\n",
"\n",
"types = {'planet':{'files':'*AnalyticMS_SR*tif','date_loc':slice(0,8)},\n",
" 'sentinel2':{'files':'s2*tif','date_loc':slice(-12,-4)}}\n",
"types = {'sentinel2':{'files':'s2*tif','date_loc':slice(-12,-4)}}\n",
"\n",
"image_loc = Path('.')\n",
"image_loc = Path('raw_ndvi')\n",
"meta = types['sentinel2']\n",
"pattern = meta['files']\n",
"date_loc = meta['date_loc']"
Expand All @@ -238,12 +237,12 @@
{
"data": {
"text/plain": [
"[Image(date='20161122', file=PosixPath('s2_l2_R129_T60HUB_20161122.tif')),\n",
" Image(date='20171122', file=PosixPath('s2_l2_R129_T60HUB_20171122.tif')),\n",
" Image(date='20181112', file=PosixPath('s2_l2_R129_T60HUB_20181112.tif')),\n",
" Image(date='20191122', file=PosixPath('s2_l2_R129_T60HUB_20191122.tif')),\n",
" Image(date='20201201', file=PosixPath('s2_l2_R129_T60HUB_20201201.tif')),\n",
" Image(date='20211101', file=PosixPath('s2_l2_R129_T60HUB_20211101.tif'))]"
"[Image(date='20161122', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20161122.tif')),\n",
" Image(date='20171122', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20171122.tif')),\n",
" Image(date='20181217', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20181217.tif')),\n",
" Image(date='20191122', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20191122.tif')),\n",
" Image(date='20201201', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20201201.tif')),\n",
" Image(date='20211101', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20211101.tif'))]"
]
},
"execution_count": 6,
Expand All @@ -265,12 +264,12 @@
{
"data": {
"text/plain": [
"[Image(date='20161122', file=PosixPath('s2_l2_R129_T60HUB_20161122.tif')),\n",
" Image(date='20171122', file=PosixPath('s2_l2_R129_T60HUB_20171122.tif')),\n",
" Image(date='20181112', file=PosixPath('s2_l2_R129_T60HUB_20181112.tif')),\n",
" Image(date='20191122', file=PosixPath('s2_l2_R129_T60HUB_20191122.tif')),\n",
" Image(date='20201201', file=PosixPath('s2_l2_R129_T60HUB_20201201.tif')),\n",
" Image(date='20211101', file=PosixPath('s2_l2_R129_T60HUB_20211101.tif'))]"
"[Image(date='20161122', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20161122.tif')),\n",
" Image(date='20171122', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20171122.tif')),\n",
" Image(date='20181217', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20181217.tif')),\n",
" Image(date='20191122', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20191122.tif')),\n",
" Image(date='20201201', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20201201.tif')),\n",
" Image(date='20211101', file=PosixPath('raw_ndvi/s2_l2_R129_T60HUB_20211101.tif'))]"
]
},
"execution_count": 7,
Expand Down Expand Up @@ -330,21 +329,21 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"id": "b9bed7ee-1904-4f2f-ab3d-2ddb01e3dff8",
"metadata": {},
"outputs": [],
"source": [
"from pathlib import Path\n",
"out_dir = Path('autorift')\n",
"out_dir = Path('autorift_ndvi')\n",
"\n",
"if not out_dir.exists():\n",
" out_dir.mkdir()"
]
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"id": "b5868948-ba5a-44d2-953b-53fa83caa642",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -417,7 +416,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 13,
"id": "1b1fabf1-aea4-4772-beaf-c8195b839f42",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -492,7 +491,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.12"
"version": "3.9.5"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 18e2e7c

Please sign in to comment.