|
POST
|
I think I found the loophole. The IPRIME Field in your raster is a "Double" value. The tools seem to only like Floating Point or Integer values. If you can live with your values *10 you can just make an integer field and use the field calculator. Then use the lookup tool (It works, I tried it). If you create a floating point field or keep the double and use the lookup there is an Arc10 glitch that makes 0.4 0.40000012 (or adds some random decimal to the end). Where is this data coming from? Do you have an original file/files you used to create this raster? With that I could provide some more help. So to review the loophole is: Create a new field of type integer Calculate value to be IPRIME * 10 Use the lookup tool to create a new raster based on your new integer field There ya go.... a nice roundabout method Thank you Kyle for the help. finally it did work! now i got a dissolved raster with the values of 0.2, 0.4, 0.6, 0.8 and 1 i have another raster of the values: a, b, c and d what i need now in to combine them then to add a field in which I'm going to apply the If statement below: ---------------------------------------------------------------------------- if [CtachType] = "a" then Select Case [Iprime] Case .2 OP= 0 Case .4 OP= 0 Case .6 OP= 0 Case .8 OP= 0 Case 1 OP= 0 end select else if [CtachType] = "b" then Select Case [Iprime] Case .2 OP= .2 Case .4 OP= .4 Case .6 OP= .6 Case .8 OP= .8 Case 1 OP= 1 end select else if [CtachType] = "c" then Select Case [Iprime] Case .2 OP= .4 Case .4 OP= .6 Case .6 OP= .8 Case .8 OP= 1 Case 1 OP= 1 end select else if [CtachType] = "d" then Select Case [Iprime] Case .2 OP= .6 Case .4 OP= .8 Case .6 OP= 1 Case .8 OP= 1 Case 1 OP= 1 end select end if end if end if end if ----------------------------------------------------------------------------------------- unfortunately, the combine tool switches the original values to another ones!!!!! so that i can't apply the above If statement!!!! very confusing and exhausting!!!!!!!! how can i combine these two rasters but to keep the original values to proceed in the analysis??? please, see the attached images. The second image shows the flow chart that i apply in order to derive what we call I-map. in order to derive the I-map, 4 main rasters are involved: Land use: forest, field/meadow/pasture Slope: <3.5%, 3.5%-27%, >27% Hydraulic conductivity: Type A, Type B, Type C, Type D, Type E, Type F Surface catchment: a, b, c, d then these rasters are combined according the logic illustrated in the flow chart (2nd image in the attachment) in each single step of the analysis, i got stuck!!!! ArcGIS doesn't give a smooth path to accomplish the analysis straight forward!!!! So how can i combine the two rasters but to keep the original values???? regards Jamal
... View more
05-27-2011
01:39 AM
|
0
|
0
|
2995
|
|
POST
|
Try some of the other suggestions then, there have been several others but you appear to be fixed on one, is there a reason? at all. this is the only suggestion that i got. do you have any?
... View more
05-26-2011
03:34 PM
|
0
|
0
|
4704
|
|
POST
|
why the "Combine" tool doesn't keep the original values of the combined rasters? please, see the attached image that shows my question how can i combine two raster with keeping the same values of the combined raster? it is quite confusing that ArcGIS switch the original values to other ones! this way we get lost!!!! is there any other tool that combines the rasters but keeps the values of the fields of as they are???
... View more
05-26-2011
03:33 PM
|
0
|
3
|
1550
|
|
POST
|
Raster to Polygon only takes integer (or string) - period. This is by design since 9.0 The reason is that too many individual polygons will be created in most cases. In the case where one really wants float output, then can multiply the raster by, say 1000, and cast to integer, convert and then divide by 1000. This workflow has been repeated many, many times in this Forum. Steve Thank you for the answer. this problem is originated from trying to dissolve the raster (attached image) according the Iprime field. i was trying to have a dissolved raster with 5 values: 0.2, 0.4, 0.6, 0.8 and 1. but i couldn't find any tool to accomplish this task. i got a suggestion to convert the raster to polygons then the ploygons to raster to achieve the dissolve!!!!! nevertheless, the problem is again there. i couldn't obtain a dissolved raster with the values 0.2, 0.4, 0.6, 0.8 and 1 basically, how can i dissolve the raster according the Iprime field?
... View more
05-26-2011
03:14 PM
|
0
|
0
|
4704
|
|
POST
|
Jamal, I would contact Support and open an incident with them. It looks like you are having issues with that dataset in multiple tools. Without the data in hand, it's going to be difficult to guess what the problem is. the data is attached thank you Jamal
... View more
05-26-2011
02:47 PM
|
0
|
0
|
6784
|
|
POST
|
Don't know why I asked if it was short or long, because you obviously have decimals in there. As for why it doesn't work, when I asked early looked at the wrong Help. I accidentally looked up the help for polygon to raster, which will use float or integer. Raster to Polygon only uses integer or string. raster_field (Optional) The field used to assign values from the cells in the input raster to the polygons in the output dataset. It can be an integer or a string field. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001200000008000000.htm It is SP2. I'm not sure also why when we reclassify according the Iprime then the result is irrelevant!!! (attached)
... View more
05-26-2011
02:12 PM
|
0
|
0
|
4704
|
|
POST
|
Use the Lookup tool. It will take a raster, and use a field, and make a new raster. To output a ESRI Grid, just don't put an extension on the end of the name (i.e. instead of test.tif just call it test). If you are just looking to go from Tiff to Grid, just use Copy Raster. What i'm looking for is to have a dissolved raster of values: 0.2, 0.4, 0.6, 0.8 and 1. please, see the attached images that show that the "lookup" too is not helpful to achieve what I'm looking for what else i may try?
... View more
05-26-2011
02:04 PM
|
0
|
0
|
6784
|
|
POST
|
How to move the symbol up and down as we do with shape files? please, see the attached images that shows my question why there is no tool to move the symbols up or down in raster case? regards Jamal
... View more
05-26-2011
01:39 PM
|
0
|
3
|
3082
|
|
POST
|
What is the Type for this field? Is it String, Short, Long, Float, Double? it is double.
... View more
05-26-2011
01:35 PM
|
0
|
0
|
4704
|
|
POST
|
convert the tif to an ESRI grid using the IPRIM field but using which tool can i convert the TIF to ESRI GIRID?
... View more
05-26-2011
01:33 PM
|
0
|
0
|
6784
|
|
POST
|
It depends on what you want to do with the raster. You could just create a new raster where the field you want is the "Value" field and then just use that raster as a "zone". Or you could just change the symbology so that it represents the field you want. Another method would be to covert your raster to a polygon based on the field you want, then use the dissolve and convert back to a raster. As far as I know there is no "raster dissolve" tool. You could also use some sort of conditional statement as well if you want to dive into that. Thank you for the answer Kyle. please, have a look on the attached image that shows that i cant convert the raster to polygons according the Iprime field that contain real numbers what I'm looking for is to have a raster that has only the values: 0.2, 0.4, 0.6, 0.8 and 1. (out of the given raster) then this raster (Iprime) is intended to be combined with another raster (CtachType) that has the values: a, b, c and d. then a field is added to the combined raster and its values are calculated according to the following if statement: ------------------------------------------------------------------------------------------ if [CtachType] = "a" then Select Case [Iprime] Case .2 OP= 0 Case .4 OP= 0 Case .6 OP= 0 Case .8 OP= 0 Case 1 OP= 0 end select else if [CtachType] = "b" then Select Case [Iprime] Case .2 OP= .2 Case .4 OP= .4 Case .6 OP= .6 Case .8 OP= .8 Case 1 OP= 1 end select else if [CtachType] = "c" then Select Case [Iprime] Case .2 OP= .4 Case .4 OP= .6 Case .6 OP= .8 Case .8 OP= 1 Case 1 OP= 1 end select else if [CtachType] = "d" then Select Case [Iprime] Case .2 OP= .6 Case .4 OP= .8 Case .6 OP= 1 Case .8 OP= 1 Case 1 OP= 1 end select end if end if end if end if ----------------------------------------------------------------------------- this is why i need the resulted raster to have only the values 0.2, 0.4, 0.6, 0.8 and 1. but how can i do that? regards Jamal
... View more
05-26-2011
11:49 AM
|
0
|
0
|
6784
|
|
POST
|
sorry for the mistake in the title of this post. it should be: why the "Raster to polygon" tool takes only the fields that contain integer numbers? Does the tool "Raster to polygon" take only the fields that contain only integer number? please, see the attached image that shows my question why the "Raster to polygon" tool takes only the fields that contain real numbers? what i should do if i have a field that contain Real number? what's wrong with the real numbers??? than you regards Jamal
... View more
05-26-2011
11:31 AM
|
0
|
9
|
5009
|
|
POST
|
what is the "Dissolve" tool for rasters? please, see the attached image that shows my question I'm trying to dissolve the cell of the raster based on the Iprime field, but couldn't fine an equivalent tool. I tried to use the "reclassify" tool but resulted raster was meaningless! thank you regards Jamal
... View more
05-26-2011
10:29 AM
|
0
|
14
|
11113
|
|
POST
|
use "combine" to produce the unique conditions if you don't want to do the nested "con" statements, then query for your cases. It is all documented in the help files Thank you Patterson. i used the combine tool then i added a new field at which i applied the if statement. it did work ---------------------------------------------------------------------------------------------------- if [LANDUSE] = 1 then if [HYDRCOND] = 1 then Select Case [SLOPE] Case 1 oo = .6 Case 2 oo =.4 Case 3 oo =.2 Case Else oo =0 End Select else if [HYDRCOND] = 2 then Select Case [SLOPE] Case 1 oo = .8 Case 2 oo =.4 Case 3 oo =.2 Case Else oo =0 End Select end if end if else if [LANDUSE] = 2 then if [HYDRCOND] = 1 then Select Case [SLOPE] Case 1 oo = .8 Case 2 oo =.6 Case 3 oo =.4 Case Else oo =0 End Select else if [HYDRCOND] = 2 then Select Case [SLOPE] Case 1 oo = 1 Case 2 oo =.6 Case 3 oo =.4 Case Else oo =0 End Select end if end if end if end if --------------------------------------------------------------------------------------------------------- Regards Jamal
... View more
05-26-2011
09:32 AM
|
0
|
0
|
2095
|
|
POST
|
Con http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z00000005000000.htm Thank you for the answer Patterson. i couldn't manage how to use the "Con" tool to fit my case! (attached). the help doesn't show what I'm looking for...! Could you please elaborate more how can i use this tool? how can i use it to apply the first condition? --------------------------------------------------------------------------------------------- if [Type] = "Forest" and [FlowType] = "TYPE D" and [Slope] = 1 then op = .8 --------------------------------------------------------------------------------------------- regards Jamal
... View more
05-25-2011
02:58 PM
|
0
|
0
|
2095
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-30-2022 10:43 PM | |
| 2 | 05-05-2025 10:33 AM | |
| 1 | 05-08-2025 09:49 PM | |
| 1 | 05-06-2025 11:10 PM | |
| 1 | 02-20-2021 01:23 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|