POST
|
Thanks Randy 🙂 I have worked with weighted overlay but this time i was looking for something different. I want to compare both objectives pixel by pixel and see if there are pixels that i can clearly eliminate since they dont perform good in both objectives in comparison to any other pixel,
... View more
12-18-2020
01:20 AM
|
0
|
0
|
205
|
POST
|
HI David, Thanks for the reply 🙂 What i am trying is to take each pixel by pixel and compare one another to eliminate the pixels that clearly perform badly interms of all 5 objectives. I want to first take two objectives/factors that is maximise solar energy and maximise distance to residentials. for every pixels. Comparing pixel 1 and pixel 2, if pixel 1 dominates pixel 2 in terms of both factors, i want to eliminate pixel 2. Similarly the pixel 3 with pixel 4, pixel 5 with pixel 6 etc through out entire study area to eliminate the clearly bad pixels. I want to finally have a set of pixels where it is hard to choose a pixel since every pixel dominate other one in terms of one objective. Then I want to check with this set of pixels with next set of objectives. In other words, a non dominant sorting of pixels with my 5 objectives (2 maximising and 3 minimising).
... View more
12-15-2020
06:27 AM
|
0
|
0
|
237
|
POST
|
Hi all, I am working with spatial multi-criteria analysis in ArcMap 10.8. I have 5 objectives or criteria maps with me. I need 2 criteria maps like solar energy, distance to residential to be maximized and other 3 factors like distance to power line, distance to transformer station, distance to road to be minimized. Is there a way in ArcMap where i could create Pareto optimal maps based on the 5 objectives. Thank you, Deepa
... View more
12-15-2020
02:09 AM
|
0
|
4
|
261
|
POST
|
Hi David, Thanks a lot for the reply. The aim is to make the same tool a bit modified and in line with the terminologies that we use in the assignment. Example, i would like to write it as controlpoint1 = 3, controlpoint2 = 5, controlpoint3 = 7 and controlpoint4 = 8.8 for the example and would like to have just the linear trasformation. How could i add the control points in the code to create a simpler version of the same tool in ArcMap? import os import sys from arcpy import env from arcpy.sa import * arcpy.CheckOutExtension( "Spatial" ) env.workspace = r"H:\Test" arcpy.env.cellSize = 100 inRaster = "elevation" Input = arcpy.GetParameterAsText( 0 ) folder = arcpy.GetParameterAsText( 1 ) raster = arcpy.GetParameterAsText( 2 ) ControlPoint1 = arcpy.GetParameterAsText( 3 ) ControlPoint2 = arcpy.GetParameterAsText( 4 ) ControlPoint3 = arcpy.GetParameterAsText( 5 ) ControlPoint4 = arcpy.GetParameterAsText( 6 ) arcpy.AddMessage( "Folder: {}" .format(folder)) arcpy.AddMessage( "Raster: {}" .format(raster)) save_raster = os.path.join(folder, raster) arcpy.AddMessage( "Save Location: {}" .format(save_raster)) minimum = ControlPoint2 maximum = ControlPoint3 lowerthresh = ControlPoint1 valbelowthresh = 0 upperthresh = ControlPoint4 valabovethresh = 1 myTfFunction = TfLinear(minimum, maximum, lowerthresh, valbelowthresh, upperthresh, valabovethresh) fromscale = 0 toscale = 1 outRescale = RescaleByFunction(inRaster, myTfFunction, fromscale, toscale) output.save(save_raster)
... View more
11-24-2020
01:45 PM
|
0
|
2
|
234
|
POST
|
I am trying to convert a raster file with values ranging from 3.2 to 8.8 into a linear scale from 0 to 1. The conditions that i want to apply in the transformation are as follows: 3 to 5 gets 0, 5 to 7 Linear variation from o to 1 and gets values based on straight line equation y = (slope)x + c, And greater than 7 gets 1. This is an example and this may vary with others preferences. So i want to create a tool using Python code values in zero range(Ex:My case 3 to 5), Linearly varying values from o to 1 range(Ex:My case 5 to 7),values in 1 range(Ex:My case greater than 7).How is it possible to create linear transformation as a tool in ArcGIS using python code where i can input those conditions mentioned above as parameters in the tool? I would like to send this tool to other users and so their conditions may vary based on it. What changes to be made in this code to make it work with the conditions. I am a beginner and am relatively new to Python, so please excuse me if I sound a bit dumb 🙂 import arcpy import os import sys from arcpy import env from arcpy.sa import * arcpy.CheckOutExtension( "Spatial" ) env.workspace = r"H:\Test\Test1" arcpy.env.cellSize = 100 Input = arcpy.GetParameterAsText( 0 ) folder = arcpy.GetParameterAsText( 1 ) raster = arcpy.GetParameterAsText( 2 ) arcpy.AddMessage( "Folder: {}" .format(folder)) arcpy.AddMessage( "Raster: {}" .format(raster)) save_raster = os.path.join(folder, raster) arcpy.AddMessage( "Save Location: {}" .format(save_raster)) output = RescaleByFunction( "Elevation" , TfLinear(Minimum, Maximum, "#" , "#" , "#" , "#" ), 0 , 1 ) output.save(save_raster) Thank you:)
... View more
11-24-2020
07:44 AM
|
0
|
4
|
248
|
POST
|
I got a web tile link for a map from a friend. Is it possible to use the link to open the map in ArcMap 10.6. If it is possible how can i do that?
... View more
08-28-2020
01:51 AM
|
0
|
0
|
65
|
POST
|
This worked like a charm Thanks for helping me from the scratch!
... View more
08-13-2020
03:02 PM
|
0
|
0
|
235
|
POST
|
Thanks, i tried like you explained. It runs and tool says it is completed successfully but i cant find the output. This is the code i used . All i see is the Try(output raster from the code saved in the folder called Fresh). I dont find the new name(Final) which i gave in the tool in a different output folder(Old). Also i made the direction as input for the folder and added raster as a string in the tool parameters. import arcpy import os import sys from arcpy import env from arcpy.sa import * arcpy.CheckOutExtension( "Spatial" ) env.workspace = r"H:\Stak1108" arcpy.env.cellSize = "MINOF" arcpy.env.overwriteOutput = True #The parameters for tool ...... = arcpy.GetParameterAsText( 0 ) ..... folder = arcpy.GetParameterAsText( 4 ) raster = arcpy.GetParameterAsText( 5 ) # The Add messages arcpy.AddMessage( "Folder: {}" .format(folder)) arcpy.AddMessage( "Raster: {}" .format(raster)) save_raster = os.path.join(folder, raster) arcpy.AddMessage( "Save Location: {}" .format(save_raster)) Raster1 = Raster( .....) Try = Con(Raster4 == 1 , 5 )...... Try.save( r"H:\Stak1108\Fresh\Try" )
... View more
08-13-2020
08:57 AM
|
0
|
2
|
235
|
POST
|
Yes i changed the Output folder direction as input. But then i am unable to give the name of the output i want in the tool. I have attached the image here.
... View more
08-12-2020
09:07 AM
|
0
|
0
|
235
|
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|