Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 KB | None | 0 0
  1. cd gsi/MissionSource/WGS84
  2. source environment_config
  3. module load gdal
  4.  
  5. SetLimits.sh MMtest -0.85 53.1 0.15 53.7
  6.  
  7. CreateProject.sh MMtest
  8.  
  9. GetAWSinfo.sh MMtest 30
  10.  
  11. # <Use WinSCP to copy all annotated QuickLooks to local windows machine to visualise>
  12. # Download /lustre/w23/mattgsi/satdata/RF/AWS/QL/New_MMtest*.tif to local windows machine
  13. #
  14. # Download /home/w23/mattgsi/gsi/MissionSource/WGS84/AWS_MMtest_Scenes.txt to local windows m/c
  15. #
  16. # On local windows machine, cycle through all downloaded quicklooks, and delete unusable
  17. # scenes (too cloudy or only small portion of AoI covered) from AWS_MMtest_Scenes.txt.
  18. #
  19. # Upload edited AWS_MMtest_Scenes.txt to /home/w23/mattgsi/gsi/MissionSource/WGS84
  20.  
  21.  
  22. GetAWSdata.sh MMtest
  23.  
  24. # Files for AoI extracted into dir: /lustre/w23/mattgsi/satdata/RF/AWS/MMtest/NDVI
  25. # (only the bands needed for NDVI are downloaded)
  26. # [This also does the equivalent of "FourierAWS.sh MMtest", which woudl only need
  27. # to be run if additional dates are downloaded later]
  28. #
  29. # <optional - to get all bands for selected scenes>
  30.  
  31. GetAWSbands.sh MMtest
  32.  
  33. CreateAWS.sh MMtest
  34.  
  35. # Now set up with AWS data remapped to AoI, with per-year Fourier(*4) stats,
  36. # ready for running RFtrain etc
  37. # BUT only if we have (default) params for Landcover, Species & Structure (currently over Canada).
  38. # If not, we need to set up some other Target data to use for training, by editing the file:
  39. # /lustre/w23/mattgsi/satdata/RF/Projects/Models/AoI_Target_MMtest.txt
  40. # For example, add a replacement/new line:
  41. # Target/WheatYield,/home/w23/mattgsi/gsi/New_Target_Data/Crop_Data/processed/rejigged/wheat_YieldDensity_1000.tif
  42. # Then run the following:
  43. #
  44. # <optional to extract Fourier-filtered images from multiple dates per band>
  45.  
  46. FourierBandsAWS.sh MMtest
  47.  
  48. AddNewTargetData.sh MMtest
  49.  
  50. # This creates the new Target file for the AoI:
  51. # /lustre/w23/mattgsi/satdata/RF/Projects/MMtest/Target/WheatYield_MMtest.tif
  52. # We now may need to create a new Target Parameter set to specify which params to
  53. # use in the subsequent RF processing:
  54. # This requires creating two new files (by editing other example files), for example:
  55. # /lustre/w23/mattgsi/satdata/RF/Projects/Models/Paramset_Wheat.txt
  56. # /lustre/w23/mattgsi/satdata/RF/Projects/Models/RFparams_Wheat.txt
  57. # (Note that these can now be used for any other AoIs which want to model with the same parameters)
  58. # We can now run RF:
  59.  
  60. RunProject.sh MMtest AWS Wheat
  61.  
  62. # This generated Trained & Scored Wheat Yield at 30m (using 10km input Wheat Yield Density data)
  63. #
  64. # As an experiment, then used the previous scored 1km WheatYield data
  65. # (mean over 14 years) as new target,
  66. # so added a new line to AoI_Target_MMtest.txt:
  67. # Target/Wheat1kmYield,/lustre/w23/mattgsi/satdata/RF/1km/Wheat_Test_2/Scores_Historic/mean_ConditionalMean_wheat_YieldDensity_100.h17v03.tif
  68. # Then re-ran:
  69.  
  70. AddNewTargetData.sh MMtest
  71.  
  72. # This created the new Target file for the AoI:
  73. # /lustre/w23/mattgsi/satdata/RF/Projects/MMtest/Target/Wheat1kmYield_MMtest.tif
  74. # Then created two nes fiels for the new Wheat1km paramset: Paramset_Wheat1km.txt & RFparams_Wheat1km.txt
  75. # The re-ran RF with new 1km target data (instead of previous 10km data)
  76.  
  77. RunProject.sh MMtest AWS Wheat1km
  78.  
  79. # This generated Trained & Scored Wheat Yield at 30m (using 1km input Wheat Yield Density data)
  80.  
  81.  
  82. # Then using Sentinel-2 data (10m):
  83.  
  84. GetS2AWSInfo.sh MMtest 30
  85.  
  86. # <Use WinSCP to copy all annotated QuickLooks to local windows machine to visualise>
  87. # Download /lustre/w23/mattgsi/satdata/RF/S2AWS/MMtest/QL/New_*.tif to local windows machine
  88. #
  89. # Download /home/w23/mattgsi/gsi/MissionSource/WGS84/S2AWS_Lidar_good_scenes.txt
  90. # If any of the pre-selected "good" scenes are no good, then delete from
  91. # S2AWS_Lidar_good_scenes.txt, and upload to original location.
  92.  
  93. GetS2AWSdata.sh MMtest
  94.  
  95. # This downloads the Sentinel-2 imagery for the "good" scenes, just for the bands needed for NDVI
  96. # The resulting imagery is extracted/remapped to the specified AoI,
  97. # and placed in /lustre/w23/mattgsi/satdata/RF/S2AWS/<AoI>/NDVI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement