Forums » GAMMA Processing » Data Import/Export »
Export of displacement map (.displ)
Added by Anke Fluhrer almost 7 years ago
Dear GAMMA users,
I need help generating a 24-bit raster image with a displacement map (.displ) as input.
I have created the displacement map (.displ) with the command dispmap and if I display the map with the command dishgt or disdt_pwr from the command line, the map with the vertical offset in meter is correct.
dispmap Test_mcf.unw - Test.slc.par Test.off Test.displ 1
dishgt Test.displ Test.mli $width_mli 1 1 0 0.3333
But as soon as I try to generate a Sun raster format or bitmap format (with rashgt, rasdt_pwr or similar), only the color values of the individual channels are displayed, instead of the offset values in meter. I have tried many approaches but as soon as I try to convert a file of type float into Sun raster Format or Bitmap Format, the values from meters change back to color values.
rashgt Test.displ Test.mli $width_mli 1 1 0 1 1 0.3333 1 - - Test.bmp
rasdt_pwr Test.displ Test.mli $width_mli 1 1 0 1 1 0.3333 1 - 1 Test.ras
Even if I try to geocode the displacement map (with geocode_back) the values from meters change back to color values.
geocode_back Test.displ $width_mli Test_gc.lt Test_displ.gc $width_dem $nlines_dem 0 0
What do I miss? What do I do wrong?
I really appreciate your help!!
Replies (5)
Export of displacement map (.displ) - Added by René Mania almost 7 years ago
Hi Anke,
For displaying the offset map you may use rasdt_pwr24. You can also separate displacement information into offsets in azimuth and range direction with the command cpx_to_real (imaginary part = azimuth offsets, real part = range offsets). You may display the separate results with dishgt and export them in raster format with rasdt_pwr24.
Best regards,
René
RE: Export of displacement map (.displ) - Added by Anke Fluhrer almost 7 years ago
Dear René Mania,
thank you very much for your quick response!!
Unfortunately, I have tried rasdt_pwr24 as well but received the same results as with rasdt_pwr. And I did also seperated the displacement information at first, which worked really well with cpx_to_real, but when I wanted to export them it came up with the same problem, that the conversion from float files to sun raster or bitmap format does not work.
To export the phase values, for example from an interferogram, works very well, due to the fact, that the interferograms are in the fcomplex format. But as soon as I try to export files with float numbers regardless which type of file (.hgt, .displ, .real) it only exports the color values.
So, I think, maybe I am missing an intermediate step?
Export of displacement map (.displ) - Added by Charles Werner almost 7 years ago
Hello,
You can also use the newer python display tool visdt_pwr.py
Fro displaying the offset information in an offs file, there is the program
viscpx.py where you can display either the real or imaginary part. One of the
advantages of these programs is that you can select color tables and display
data between a min and max specified value rather than always having only a
cyclical color display.
Se the documentation on the python display tools in the DISP package
Best regards,
Charles
RE: Export of displacement map (.displ) - Added by René Mania almost 7 years ago
Dear Anke,
I'm sorry. Now I see your point. I'm not sure and maybe someone else can contribute. It is likely that the displacement values get lost when you generate an image (e.g., .bmp) with the offset map with a mli-image in the background, as you are creating a 2D image. Have you tried it with matlab? Here you can overlay your mli-image (.bmp) with the displacement map.
Best regards,
René
RE: Export of displacement map (.displ) - Added by Anke Fluhrer almost 7 years ago
Dear Charles and René Mania,
thank you all very much for your help. I will consider your suggestions and try it again.
Best regards,
Anke