Select to view content in your preferred language

Raster name in the Geodatabase

1034
3
01-20-2014 10:09 AM
CatherineMichaud
Emerging 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
0 Kudos
3 Replies
NidhinKarthikeyan
Honored Contributor
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
0 Kudos
NeilAyres
MVP Alum
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
0 Kudos
CatherineMichaud
Emerging Contributor
Thanks you for the quick reply
0 Kudos