spatial-data-discovery / spatial-data-discovery.github.io

Organization website
https://spatial-data-discovery.github.io/
4 stars 0 forks source link

Sandbox Challenge - ASC Format Script #17

Closed dt-woods closed 5 years ago

dt-woods commented 5 years ago

Please write a script that reads all the raster files in the sandbox folder (e.g., *.txt, .asc, and no extension) and checks to make certain the number of rows and number of columns header values (NROWS and NCOLS) matches the dataset. Remember that the datasets are organized in rows with space-separated columns. You may also want to check that each value is numeric (you cannot have alpha or special characters as raster values).

Save your script to the sandbox and name it using your name underscore "asc" (e.g., sandbox/davis_asc.py).