POST
|
Thank you for your answer! I finally managed to solve the problem though. By cutting my contrast layer to the boundaries of my "false" layer, and ad pixels with the value of 0 to fill out the area, i managed to get it to work. It does not explain the weird behaviour, but it solved my problem.
... View more
04-17-2012
11:54 PM
|
0
|
0
|
337
|
POST
|
I have a layer were some pixel values are wrong and i want to set them to a value close to zero by using a raster mask. I have succesfully used the Con-statement before but this time I only get a single coloured square which does not make sense. "antireflex" is my binary conditional raster. Where this layer is = 1 i want the value in my output to be set to 0.00001 When this condition is not met, I want the output cell to have the same value as the "false raster". When I run this, the result is a black square with the value of 0.00001 every where. It seemse like the spatial analyst does not care about the conditional statement at all. I attach a picture with my input window, and screen shot from the result. The black square is transparent, reveling the circle which is the "false raster". The coral coloured shape is the "antireflex" binary conditional raster. If some one could please help me and explain why I do not get the output I want, I will be forever gratefull! /Rasmus
... View more
04-17-2012
01:47 AM
|
0
|
2
|
1189
|
POST
|
In Arc 10.x, you should be able to paste your raster calculator expressions into the python command window, as long as you enter this line first: from arcpy.sa import *
That's terrific! Thank you alot! Do you know how to specify output location/filename in this way? Right now it exports to a standard folder with some generic name.
... View more
03-27-2012
12:55 AM
|
0
|
0
|
474
|
POST
|
Due to poor python skills i don't have the possibility to write scripts to automate my raster operations. As a solution to my problems I thought the batch mode of raster calculator would do the trick. I use Microsoft Excel to generate commands and pathways for the output files, resulting in long lists. But much to my dismay I can't find any way to enter them all at the same time in the batch window. I have been forced to copy every single line by it self, and paste in to each corresponding batch row. I guess there must be a way to paste them in a more efficient way, but I can't find out how. If somebody could suggest me a solution I would be forever grateful!
... View more
03-26-2012
03:50 AM
|
0
|
5
|
1399
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|