|
POST
|
Is this just in ModelBuilder or can this happen when you launch the tool directly?
... View more
11-16-2021
06:01 AM
|
0
|
0
|
2003
|
|
POST
|
That's strange, I tried this and the dimmed out buttons you show are enabled. I click the + and I get a browser window to search for raster datasets.
... View more
11-15-2021
09:39 PM
|
0
|
0
|
2011
|
|
POST
|
It sounds like you don't need nested models. Iterate over the first folder, this will yield the path to the first raster as users\folder1\raster1.tif for example. Then then use the Name variable (which on that iteration will contain the text string "raster1.tif") to generate the path for the second by specifying it as users\folder2\%Name%. Hope that helps you out!
... View more
11-15-2021
08:19 PM
|
0
|
3
|
3492
|
|
POST
|
Dan's suggestion of copying the table from .xlsx into the geodatabase before doing the join is good advice, joins to excel sometimes just don't work as well.
... View more
11-09-2021
02:24 PM
|
1
|
0
|
3520
|
|
POST
|
If you do a join and your tables go empty this is often because the table or field names are not friendly to SQL queries (Field1, Field2 are friendly, "My field1" "fielda/b" "123" are unfriendly). The formatting is to force data type on the fields if they do read in OK so they will come in as numeric instead of text. This is all discussed in the help documents referenced up thread. Dan and I both mentioned formatting because of your second question of your original post.
... View more
11-09-2021
02:21 PM
|
0
|
2
|
3523
|
|
IDEA
|
Control-click expands and collapses all groups in a hierarchy. ArcGIS Pro Keyboard Shortcuts
... View more
11-08-2021
09:55 PM
|
0
|
0
|
4630
|
|
POST
|
Dan has lots of good advice there. Some of things that go wrong that are easily fixed are: 1) Excel file, worksheet, and field names must start with a letter, no spaces, no special chars except "_". ArcGIS can overlook this until you try a join and then the SQL engines break on the bad names. 2) Do format table data as numeric. The "missing" fields are probably coming as text because there are lots of blanks or strings in the excel file.
... View more
11-08-2021
09:48 PM
|
0
|
0
|
3541
|
|
POST
|
In this case the Name variable must have the .tif extension. To remove it, connect Name as the input to Parse Path, pull out the root name "foo". Then connect that variable Value to Zonal Statistics As Table as a precondition and name the Zonal Statistics output Zone_%Value%_tbl (becomes "Zone_foo_tbl" at runtime). Hope this helps.
... View more
11-08-2021
09:24 PM
|
0
|
0
|
2253
|
|
POST
|
@DominicRobergeIADOT is absolutely right, the Python variables are used locally (unlike labeling expressions). I'd add that a more Pythonic approach is to beg for forgiveness instead of asking for permission. If the calculation throws an error for any reason, you'll get zero return to your Calculate Field results: # expression
calcu(!Eu!, !Gd!, !Sm!)
# bloc du code
def calcu(Eu, Gd, Sm):
try:
return Eu / 0.058 / math.sqrt((Sm / 0.053) * Gd / 0.2055)
except:
return 0
... View more
11-08-2021
09:18 PM
|
2
|
0
|
1716
|
|
POST
|
Thanks for sharing all the details Jonathon, this is useful info! I think it is the case in ArcMap that these tools will not work at all correctly unless you have the inputs in the same coordinate system, and have always taught my students to have the inputs in the same CS before doing a Select Layer By Location. If you are up to trying something else, I wonder if setting the arcpy.env.outputCoordinateSystem would help with your standalone script if your inputs are different coordinate systems. I think I'd rather take your approach though to avoid surprises. (Sometimes we should not tempt fate.)
... View more
11-04-2021
08:02 AM
|
1
|
0
|
561
|
|
POST
|
I also think that the setup is incorrect for arcpy.da cursors -- the syntax setup is different, usually using a "with" statement. See the help.
... View more
11-03-2021
02:37 PM
|
0
|
1
|
4783
|
|
DOC
|
The Department of Geology and Geological Engineering at the South Dakota School of Mines & Technology invites applications for a full-time, benefited, 9-month, non-tenure track Instructor, Lecturer, or Senior Lecturer to teach courses in geospatial technology, geographic information systems (GIS), remote sensing, land surveying, and/or other courses as needed. The successful candidate also will coordinate the geospatial minor and certificate programs offered by the department; administer the statewide Esri GIS software agreement; manage campus GIS licensing; and provide technical support to staff and students. The anticipated start date for this position is August 2022. Must be authorized to work in the United States. Sponsorship is not available for this position. A Master’s degree in geology, geography, or related science/engineering field is required; a PhD is preferred. Teaching and/or professional experience is desired. Opportunities for summer instruction through the Black Hills Natural Sciences Field Station and conducting professional GIS workshops also may be available. More information: https://yourfuture.sdbor.edu/postings/25609
... View more
11-03-2021
12:40 PM
|
0
|
0
|
1319
|
|
POST
|
I'm assuming there is a feature class Test_Points in the gdb. This is a feature class, not a layer. If you want to do selections on it, you need to create a new layer in memory from it using the Make Feature Layer tool. When running the script in Pro I am assuming there is a layer in the currently active map named Test_Points and also a feature class in your gdb; the layer takes precedence which is why it works in a pro window. By the way I also recommend using the arcpy.da cursors instead, they are dramatically more efficient than the (older) arcpy cursors. NOTE: original post is below in the thread
... View more
11-03-2021
12:35 PM
|
0
|
11
|
5419
|
|
POST
|
Python: # expression
f(!DTFIELD!)
# code block - assuming "yyyy.mm.dd"
def f(dt):
try:
d = dt.split(".")
return datetime.datetime(int(d[2]), int(d[0], int(d[1])
except:
return None ArcGIS Pro Help: Calculate Field Python Examples - Dates
... View more
10-15-2021
08:14 AM
|
0
|
0
|
5590
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-11-2021 01:26 PM | |
| 5 | 12-10-2021 04:58 PM | |
| 1 | 02-27-2017 09:30 AM | |
| 2 | 12-04-2023 01:05 PM | |
| 1 | 04-12-2016 10:17 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-19-2024
12:10 AM
|