See Migrate from ArcMap to ArcGIS Pro for more information. There are no plans to release an ArcGIS Desktop 10.9, and it is recommended that you migrate to ArcGIS Pro. If you have only two rasters, you can still make a condition statement to find the maximum using the 'Con' keyword in map algebra. ArcGIS 10.8.2 is the current release of ArcGIS Desktop and will enter Mature Support in March 2024. See Analysis environments and Spatial Analyst for additional details on the geoprocessing environments that apply to this tool. If they are all integer, the output raster will be integer. So Rastos answer probably wont work in ArcGIS 10 (it didnt for me when I just tried it). If any of the rasters in the input list is floating point, the output raster will be floating point. Which is significantly less typing and you don't need to search all over your keyboard for the pipe (|) symbol to do a C style OR. 1: reclassified dtm, with 10>dtm<200, 2200>dtm<400, 3400>dtm<600, 10 if 1800>dtm<2000, 11 dtm>2000. I believe the 'max' keyword in raster calculator was deprecated with the transition from ArcGIS 9.x to ArcGIS 10.Which can get quite long winded, however for Integer rasters (not floating point) like classified rasters you can use the SQL in operator: Value in (3,5,7,9) so where the expression is true the output will be the input, where it's false it will be 0.įor individual values (for example 3,5,7,9) you can specify implicitly: Value = 3 || Value = 5 || Value = 7 || Value = 9 this is saying where the expression is true the output will be what's in the input the false raster or constant is 0. I was running on some 10+GB files (hence the error), so SetNull bombed, but Set Raster Properties. Note that the input conditional raster and input true raster or constant are the same value. raster dataset that you select in step 2. Your SQL statement has the potential to be quite long unless you've got a suitable range for example: Value > 350 & Value < 360 || Value = 340 The tool you want to use is Con, although you can do it with Extract by Attributes Con gives you more control over the 'false' case. Con (IsNull ('streams'), 0, 'streams') The tool supports the standard Map Algebra syntax that is used in Python scripting. It works in ArcMap's raster calculator but since SetNull moved to its own tool in Pro, I cant figure it out: SetNull ( (5 example.tif) < 0, 5 example.tif) I am creating a flood inundation map and need everything above 5 to be no value. Start Time: Wednesday, 16 March 2022 18:28:46Ĭon(Raster(r"Presentation MCE: TWI\TWI") 0) & (Raster(r"Presentation MCE: TWI\TWI") = 1) & (Raster(r"Presentation MCE: TWI\TWI") = 2) & (Raster(r"Presentation MCE: TWI\TWI") = 3) & (Raster(r"Presentation MCE: TWI\TWI") = 4) & (Raster(r"Presentation MCE: TWI\TWI") = 5) & (Raster(r"Presentation MCE: TWI\TWI") = 6) & (Raster(r"Presentation MCE: TWI\TWI") = 7) & (Raster(r"Presentation MCE: TWI\TWI") = 8) & (Raster(r"Presentation MCE: TWI\TWI") = 9) & (Raster(r"Presentation MCE: TWI\TWI") =10, 1))ĮRROR 000539: Traceback (most recent call last):įile "", line 5, in rcexec_DC684390_0C54_4F14_9EBF_B34DF3F2E1B1įile "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\ Functions.py", line 1140, in BooleanAndįile "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\ Utils.py", line 55, in swapperįile "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\ Functions.As you have reclassified this raster I'll assume that you have access to the Spatial Analyst extension, so will continue with instructions that require this extension. You can run Con as a tool or in Raster Calculator. Cara kedua ini adalah yang paling mudah karena langkah-langkah pada point 1 s/d 11 diatas akan dibuatkan dalam expressi map algebra, cukup dengan satu baris saja sudah selesai. Map Algebra expression Con("Presentation MCE: TWI\TWI" 0) & ("Presentation MCE: TWI\TWI" = 1) & ("Presentation MCE: TWI\TWI" = 2) & ("Presentation MCE: TWI\TWI" = 3) & ("Presentation MCE: TWI\TWI" = 4) & ("Presentation MCE: TWI\TWI" = 5) & ("Presentation MCE: TWI\TWI" = 6) & ("Presentation MCE: TWI\TWI" = 7) & ("Presentation MCE: TWI\TWI" = 8) & ("Presentation MCE: TWI\TWI" = 9) & ("Presentation MCE: TWI\TWI" =10, 1)) Menghapus Nilai Sel Raster dengan Raster Calculator. Am I missing some paranthesis or something? I counted each Con to have the same number of paranthesises.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |