Interferometric File "Rainbow" Hue in GIS


I am still a relatively new user to SNAP but thanks to this forum I’m slowly getting the hang of it. One step I haven’t quite figured out is I have my Interferometric file that I ran through the Range Doppler Terrain Correction go give the file geospatial location. I am able to bring this into GIS (both ArcMap and ArcGIS Pro), however I lose the rainbow hue like what we see in SANP:

When I bring it into GIS it defaults to a black and white color ramp. I can change the color ramp to a similar rainbow hue but I can’t find one that matches what I see in SNAP. Is there a way to either export the Inferometric file out or import it into GIS where the color hue in GIS defaults to the same color hue in SNAP?

Thank you all for your time.

1 Like

Colors which were set in SNAP are not part of the exported product. Export of products from SNAP
And the SNAP internal palettes are stored under .snap/auxdata/color_palettes, but in a cpd-format which is not directly readable in ArcGIS.
The InSAR palette is named cubehelix_cycle.cpd (322 Bytes)

It stores RGB values of the the palette. I have recreated it as a

  • Raster Function Template SNAP_InSAR.rft.xml (17.6 KB)
  • Layer File SNAP_InSAR.lyr (15 KB)
    but it doesn’t look 100% identical. Maybe it is a start for you to modify it a bit more.

Colors in SNAP


Colors in ArcGIS


1 Like

Thank you ABrawn. I assumed it was something that was automatic when brought into GIS. We have a municipal client that provides us InSAR files and when it’s brought in it defaults to the rainbow hue, but perhaps they too made it a layer file with the symbology set.

Thank you for your help!

I did this myself a while ago. I created a script that created JPEG previews for my InSAR work. You can use GDAL dem. Maybe it’s relevant for TIFF files too.

Giving credit to the GIS discord I am in:

1 Like

That is far beyond my current knowledge/capability :sweat_smile: Thank you though!

Hi Dear @cjfergus
for this goal, you need to make a color ramp manually in arc gis 10 or pro. then save your color ramp and store it in one of your drives permanently. finally, you can use this color ramp every time you need it. you can find each color code in SNAP and use it in arc gis 10 or pro.

That is so cool! Been doing GIS for 6+ years now and I had no idea you could manipulate a color ramp like this! Thank you Mnaseri91!!

1 Like

actually, this is how I created the one provided above. You just have to download and load it and then you can adjust it to your needs :wink:

Hi ABraun, I did download the layer file you sent but when brought into ArcMap it was showing as disconnected and was looking for a shapefile to reference. If I download the .xml file you sent, how do I add that to my color ramps?

That is strange. These should be loadable via this button:

That’s what I’m trying but it’s only giving me the option to look for a layer file, it won’t give me the option to add an .xml file; and when I try your layer file nothing comes up, it doesn’t even let me click “OK” once clicking the downloaded layer.

It looks like the issue could be that your layer was created in a newer version of arcmap (we’re still at 10.3.1 and trying to upgrade as an office is like pulling teeth). Any way you could save your layer down to a 10.3 version?

Can’t imagine that the version is a problem, because layer files are used since 9.3.
Have you selected a stretched visualisation before importing the layer file?

Correct, my current image is symbolized with stretched visualization.

I tried dragging your layer file into ArcMap and got the below error. It does say “Possible Reason” which leaves it open to other possibilities besides version issues :sweat_smile:


maybe with the corresponding tool?

Got ESRI’s basic error “cannot execute” but with no explanation.

BUT! I did download your raster function template and use the apply function template from the below process and that worked! Looks just like what I see in SNAP!

Thank you again for your help and quick responses!

very good, thank you for sharing your solution.

1 Like

If you look at the top image in your post and compare your new colourmap with SNAP you’ll notice that they differ. Cubehelix was chosen for SNAP since it has constant intensity, which makes it perceptually better than colourmaps where the intensity changes. Also, constant-intensity colourmaps work also when printed in grayscale. :nerd_face: