GitHub-Rasters

所属分类:GIS/地图编程
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2023-11-13 16:12:54
上 传 者sh-1993
说明:  堪萨斯州立大学地理分析GEOG 728编程练习
(Exercise for GEOG 728 Programming for Geographic Analysis at Kansas State University)

文件列表:
GitHub-Rasters.py (314, 2023-12-04)
LICENSE (7048, 2023-12-04)
demo12_1.py (772, 2023-12-04)
demo12_2.py (824, 2023-12-04)
demo12_3.py (770, 2023-12-04)
demo12_4.py (950, 2023-12-04)
demo12_5.py (1396, 2023-12-04)
demo12_6.py (1371, 2023-12-04)

# GitHub-Rasters Exercise for GEOG 728 Programming for Geographic Analysis at Kansas State University ### Instructions: Accept the GitHub Classroom assignment GitHub-Raster and clone the new repository as a local personal repository. The compressed ArcGIS Pro project file for this week is too large to store in GitHub and, instead, can be found in this week's Canvas module or W:\GEOG\Courses\GEOG728\Exercises, Uncompress the provided ZIP file to access the ArcGIS Pro project file in your local repository workspace. The only file which needs to be pushed to origin at the conclusion of the exercise is a single Python script. There is no requirement to prepare and submit a script-based tool. Should you encounter difficulties during the week, seek assistance by posting an issue in GitHub. ### Task: Edit the provided Python file called GitHub-Rasters.py to create a new stand-alone script that calculats normalized difference vegetation index (NDVI) from a multi-band raster dataset. Be sure your script includes the following features and capabilities. For this script, there is no requirement to include user-defined inputs or any messaging, except for a custom print message should your script throw an exception (see the requirement below for a "try-except" block): 1. Uses one of the three available Landsat 8 images as the raster input. 2. Uses at least one, but no more than three, local variables. 3. Uses only Spatial Analyst functions – no Python math! 4. Checks out/in the Spatial Analyst extension. 5. Uses at least one "if-else" and "try-except" block for error trapping. 6. Saves one file – the output NDVI grid - to a workspace other than current workspace using one or more os module functions. 7. Prints only one message – either script success, user lacks the required extension, or a Level 2 geoprocessing error message. 8. The "script success" message should also report name of output file, its spatial resolution, and units. ## Rubric: Review the assignment rubric available on Canvas for additional details on how your work will be assessed. Double-check that your script includes a complete header section, uses good commenting, incorporates line spaces between blocks of code, and reads input and writes output to current workspace. ## Submission: Commit your code changes for GitHub-Rasters.py to your assignment repository on GitHub.

近期下载者

相关文件


收藏者