Skip to content

Commit

Permalink
Updated notebooks with collection fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubawy-ama committed Feb 5, 2021
1 parent c808656 commit 77e17c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion notebooks/DCAL/DCAL_Cloud_Statistics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
"\n",
"platform = 'LANDSAT_8'\n",
"product = 'ls8_usgs_sr_scene'\n",
"collection = 'c2'\n",
"collection = 'c1'\n",
"level = 'l2'"
]
},
Expand Down
2 changes: 1 addition & 1 deletion notebooks/DCAL/DCAL_Vegetation_Phenology.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
" platforms.append('LANDSAT_8')\n",
" products.append('ls8_usgs_sr_scene')\n",
" \n",
"collection = 'c2'\n",
"collection = 'c1'\n",
"level = 'l2'\n",
"\n",
"# Select a vegetation proxy to use to track changes in vegetation.\n",
Expand Down
2 changes: 1 addition & 1 deletion scripts/update_notebooks
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ for notebook in $(ls ./notebooks/DCAL | grep .ipynb); do
sed -i "s@<URI_PLACEHOLDER>@$colab_uri/$notebook@g" ./notebooks/DCAL/$notebook
sed -i "s/ls8_l2_c2/ls8_usgs_sr_scene/g" ./notebooks/DCAL/$notebook
sed -i "s/ls8_lasrc[_a-z]*/ls8_usgs_sr_scene/g" ./notebooks/DCAL/$notebook
perl -pi -e "s/collection(?!==| ==)[ =].*c2(\\\\\"|')/collection = 'c1'/g" ./gee-notebooks/DCAL/$notebook
perl -pi -e "s/collection(?!==| ==)[ =].*c2(\\\\\"|')/collection = 'c1'/g" ./notebooks/DCAL/$notebook
perl -pi -e "s/platform(?!==| ==)[ =].*LANDSAT_7(\\\\\"|')/platform = 'LANDSAT_8'/g" ./notebooks/DCAL/$notebook
perl -pi -e "s/product(?!==| ==)[ =].*ls7[_a-z]*(\\\\\"|')/product = 'ls8_usgs_sr_scene'/g" ./notebooks/DCAL/$notebook
if [ $notebook == "DCAL_Land_Change.ipynb" ]; then
Expand Down

0 comments on commit 77e17c9

Please sign in to comment.