Select to view content in your preferred language

Ability to set start and end time for a Raster layer with python

378
0
08-31-2023 06:12 PM
KyleKrueger
New Contributor

with ArcPro 3.1 there is the ability to enable Time on raster layers. This python modules dont have an option to input the start and end time for a raster file, it only allows you to set the field, which raster files do not have. How can I use python to enable the time property on a raster layer, and set the start and end times without having to go into ArcPro and manually set them?

KyleKrueger_0-1693530653087.png

 

I want to be able to do something like:

map.listLayers(l)[0].enableTime('Date','Date2') in python so I can batch process hundreds of raster files and add them to a project so the Time is set.  This works for a shapefile that has an attribute table, because I can create a field with the start and end date and add them.  But I want to be able to do this for a raster.  

 

0 Kudos
0 Replies