Raster name in the Geodatabase

620
3
01-20-2014 10:09 AM
New Contributor
Hi,

In Arc Gis (Arc catalog), I created a geodatabase. I then imported raster, but their original names have been changed.

Name example as input:
NSS.HRPT.NK.D13172.S1035.E1048.B7854545.WI

Result: Name example output(in geodatabase):
NSS_1
NSS_2

How to keep the full name? (NSS.HRPT.NK.D13172.S1035.E1048.B7854545.WI)

I accept the explanations using model builder or Python.

Thanks in advance,

Catherine
Reply
0 Kudos
3 Replies
Regular Contributor II
The original name of the raster contains invalid character (.)
While importing the raster, you can name it as NSS_HRPT_NK_D13172_S1035_E1048_B7854545_WI
Reply
0 Kudos
MVP Frequent Contributor
If you're looping through your rasters to be imported, you could change the name using python's "replace" like :

InRas = "NSS.HRPT.NK.D13172.S1035.E1048.B7854545.WI"
OutRas = InRas.replace(".","_")
print OutRas
NSS_HRPT_NK_D13172_S1035_E1048_B7854545_WI

Cheers,
N
Reply
0 Kudos
New Contributor
Thanks you for the quick reply
Reply
0 Kudos