From 77e17c9080bb91c09a9d0a8f80b9160db4befb6f Mon Sep 17 00:00:00 2001 From: "Andrew M. Lubawy" Date: Fri, 5 Feb 2021 17:41:34 -0500 Subject: [PATCH] Updated notebooks with collection fix --- notebooks/DCAL/DCAL_Cloud_Statistics.ipynb | 2 +- notebooks/DCAL/DCAL_Vegetation_Phenology.ipynb | 2 +- scripts/update_notebooks | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notebooks/DCAL/DCAL_Cloud_Statistics.ipynb b/notebooks/DCAL/DCAL_Cloud_Statistics.ipynb index bd86745..d396a73 100644 --- a/notebooks/DCAL/DCAL_Cloud_Statistics.ipynb +++ b/notebooks/DCAL/DCAL_Cloud_Statistics.ipynb @@ -344,7 +344,7 @@ "\n", "platform = 'LANDSAT_8'\n", "product = 'ls8_usgs_sr_scene'\n", - "collection = 'c2'\n", + "collection = 'c1'\n", "level = 'l2'" ] }, diff --git a/notebooks/DCAL/DCAL_Vegetation_Phenology.ipynb b/notebooks/DCAL/DCAL_Vegetation_Phenology.ipynb index 8745fa1..d241743 100644 --- a/notebooks/DCAL/DCAL_Vegetation_Phenology.ipynb +++ b/notebooks/DCAL/DCAL_Vegetation_Phenology.ipynb @@ -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", diff --git a/scripts/update_notebooks b/scripts/update_notebooks index e6d8d6f..0c65633 100755 --- a/scripts/update_notebooks +++ b/scripts/update_notebooks @@ -55,7 +55,7 @@ for notebook in $(ls ./notebooks/DCAL | grep .ipynb); do sed -i "s@@$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