Select to view content in your preferred language

Export Stretch Function values per Raster.

1039
4
05-21-2014 01:10 AM
TonyGegner
Regular Contributor
Hi!
From a Mosaic Dataset i'm looking for a way to export Stretch Function values from a Raster into text, with python would be prefered. Like Band[] Min,Max,Mean values.

Importing a stretch function with values works great, but i can't manage to export them.

Is this information stored in binary? I have checked SDE tables but see nothing in plain text.
Any Analytics function or similar i can use to get this information?

Thanks!
4 Replies
larryzhang1
Occasional Contributor
Hi!
From a Mosaic Dataset i'm looking for a way to export Stretch Function values from a Raster into text, with python would be prefered. Like Band[] Min,Max,Mean values.

Importing a stretch function with values works great, but i can't manage to export them.

Is this information stored in binary? I have checked SDE tables but see nothing in plain text.
Any Analytics function or similar i can use to get this information?

Thanks!


Tony,

Try the GP tool 'Get Raster Properties' under Raster...
0 Kudos
TonyGegner
Regular Contributor
Hi Larry,
That will only give me the values for the whole set, not per image and stretch function values.
0 Kudos
larryzhang1
Occasional Contributor
Hi Larry,
That will only give me the values for the whole set, not per image and stretch function values.


If understanding correctly, the steps for your given case should include:

Select and add from MD, and/ or directly subset via �??Image Analysis�??;

Applies Stretch function onto this 'subset' via Properties;

Finally, try the GP tool 'Get Raster Properties' �?�
0 Kudos
TonyGegner
Regular Contributor
Dont really follow what you mean?

There is a Stretch Function with different values for each rasterimage in the MD. Not one for the whole MD.
I need the diffrent values from each raster image.
Get Raster Properties only gives me values for the whole MD. Not per rasterimage.
0 Kudos