Takes each layer's name and written to a table file

741
5
Jump to solution
02-22-2022 04:19 PM
PROBERT68
Frequent Contributor

I have over 200 co-registered 1938's aerial photos that I can keep track from duplicate overlaps each other.

Is there a script or a tool within ArcGIS Pro or ArcGIS Desktop 10.71  that allow me to ?

I can use either way ArcGIS Pro 2.8 or ArcGIS ArcMap 10.7

Anyone ?

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

a couple of the many ways

crack open you python IDE or the python editor in ArcGIS Pro... or even a notebook in Pro

filenames01.png

I just sliced off the first ten, as an example so omit the [:10] part to get a full listing

filenames02.png

a little code tweak and you can skip the folder part

filenames03.png

and many many more depending on whether you want to create a file rather than using the shortcut or navigate down subfolders. 

The possibilities are endless with a little python

Google search :  python list of filenames in directory

for others, for example

python - How do I list all files of a directory? - Stack Overflow

 


... sort of retired...

View solution in original post

5 Replies
DanPatterson
MVP Esteemed Contributor

are you looking for a tool to keep track of the names or actually work with and keep track of the imagery?

Mosaic datasets—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
PROBERT68
Frequent Contributor

No, what I want is to have a script or tool to create a table that takes the name from each imagery. It saves a lot of time to type it in an Excel.  Get it ?

0 Kudos
DanPatterson
MVP Esteemed Contributor

a couple of the many ways

crack open you python IDE or the python editor in ArcGIS Pro... or even a notebook in Pro

filenames01.png

I just sliced off the first ten, as an example so omit the [:10] part to get a full listing

filenames02.png

a little code tweak and you can skip the folder part

filenames03.png

and many many more depending on whether you want to create a file rather than using the shortcut or navigate down subfolders. 

The possibilities are endless with a little python

Google search :  python list of filenames in directory

for others, for example

python - How do I list all files of a directory? - Stack Overflow

 


... sort of retired...
PROBERT68
Frequent Contributor

Thank You.  Gotta give this a try !

0 Kudos
PROBERT68
Frequent Contributor

Thanks. I work on this for a few hours because I couldn't get it right...but I found this one and it is much easier to read and follow.

https://pythonguides.com/python-get-all-files-in-directory/

 

0 Kudos