About import the polsarpro result to the snap

how do you do this? as my method to export from polsarpro? do you replace the metadata?

Ehhhm…

See, once you have done the processes you want on PolSARpro, I simply open bmp file on S1 Toolbox. I watch on bmp. Then I open the original product subsetted on SNAP (which one with I exported the folder to PolSARpro) and I make a replace of metadata.

Try!

Aridane

hi,Aridane:
I solved the problem, Thank you !
But there is other problem about why I use this method to generate the shannon entropy or other parameter it is always giving a black image. Is that right for after extracting the image we could go directly to do the polarization decomposition. I could get the c2 matrix, it is right ,but after that no. do you know what is the problem?
But why I can not generate anything,But when I use my method to generate the shannon entropy,it is right ,but with black gaps inside.

li

Hi!

Mmmmmmm…I dont know…but you have to check on PolSARpro where are you working, if you are on SPP (partial scattering matrix) that is the original matrix or C2 (covariance matrix). You can see on a toolbar that is always upside, that says every moment where are you working if C2 or what. Thing here is that for doing decompositions you must be on C2 and also, you must have set all the things right when you do the extract (full resolution), cause, PolSARpro open it although is wrong, showing black images, or strange ones. So check the steps and check where are you working. Of course, some decompositions will be impossible to open because of the dual-partial product. But the shannon entropy is available.

Tell me,

Aridane

Hi Aridane

I am trying to import a bmp file generated in PolSARPro (for example a alpha.bmp) but I am only able to open it by doing File\Import\Generic Formats\RGB Image. However, the opened file doesn’t have a metadata file only Vector Data and Bands

.

Then I open the subset image that I have exported to the PolSARPro format to calculate the decomposition parameters. When I try to replace the metadata file of the bmp file nothing happens!!! As I can see in your example you are able to open the bmp file with just the open product, which I am not able to do because no image appears on the screen! Can you explain me please how can I overcome this issue?

Thank you. Best regards, Ana.

Hi Ana!

Yes of course I can, and sorry, i know that when you press the button replace metadata and nothing happens…it can be a little annoying ;). So, it seems there is a problem with the lasts versions of the snap on this issue. Its a problem of the version. You can do the next:

  1. Open on snap, the same product you exported to polsarpro.
  2. import the bmp file (it must be the two products on the screen at left now.
  3. Do a band math at the product you open first and CREATE a new band with the bmp image of the second product. It seems difficult on the band math operator, but you have to choose the another product. There is a way on the box options to select the another product ok!
  4. With the new band on the original product (that is the bmp file), you can do whatever you want, also the terrain correction.

Try, i hope this helps!

Aridane

1 Like

Hello Aridane

Thank you very much! I have my problem solved!

Best regards,

Ana Navarro

Ana Cristina Navarro Ferreira
Professora Auxiliar
Departamento de Engenharia Geográfica, Geofísica e Energia

[http://www.fc.ul.pt/sites/default/files/fcul/institucional/normas_graficas/Ciencias_UL_Azul_H.png]

Faculdade de Ciências da Universidade de Lisboa
Campo Grande 1749-016 Lisboa · Portugal
T (+351) 217 500 000 * Ext. 28117 F (+351) 217 500 830
info@ciencias.ulisboa.pt
www.ciencias.ulisboa.pt

Hello! Do you know if its possible to do it using a graph?
I would like to do it in graph and then use the command line to run it.
I tried with a BandMerge but it didn work.
Thank you,
Mariela.

Hello Aridane,

I’ve found your answer about “how to import PolSARpro output in S1 toolbox” very interesting. I’ve some questions:

I’m using Sentinel 1 data (SLC dual polarization) and I’ve just worked out the C2 matrix with PolSARpro; than I’ve obtained the S.R.T.M. DEM. Now I need to do terrain correction using S1 toolbox.

  1. Which file of the “C2 folder” shall I use in S1 toolbox?
  2. Have you worked out the anisotropy after or before the terrain correction?

Thank you so much!
Piero

1 Like

If you are importing a matrix from PolSARPro, just open one of the .hdr files. It will look at all files in the folder and treat it as one product.
However, if all you are doing is generating a C2 matrix, SNAP can do that automatically whenever you use a polarimetric operator on a dual pol SLC product or you could also use the polarimetric matrix generation operator.
SNAP also automatically downloads the SRTM tiles you need when terrain correcting.

Hello lveci,

Thank you for your answer! I’ll try it!

Piero

Hello sissizhangli,

I got your problem because I’ve the same one! :confounded:
Could you tell me if you’ve solved it?

Thank you, Piero

I want to geocoding polsarpro products, but I get the errors as this figure. Could you tell me how to solve this problem?

Thanks

PolsarPro drops all of the metadata. If you haven’t multilooked or changed the dimensions of the product, you can add the metadata from the original product back into your C2 product using Tools->Metadata -> Replace Metadata

Dear Iveci,

Thank you so much for your help. I appreciate helpful solution from you. It works.

Actually the data which I applied the geocoding is obatined from “polarimetric data clustering > Data Sets averaging” using polsapro. Polsarpro automatically generated the RGB.bmp file. After geocoding in SNAP, I would like to create the same RGB file as polsarpro processing. Unfortunately, I don’t know the combination of R G B to create the bmp file using SNAP. Would you let me know for creating it?

Dear all,

I cannot import the polsarpro result of H/A/Alpha Wishart Classification to SNAP. I got a messages as below.

Would you please let me know how to solve it?

can you convert your data to integer in PolSAR pro?

In PolSARpro the option of output data format is only “[C2]>>[C2}”. Sorry, I don’t understand the meaning of [C2]>>[C2]. Do you mean this output format integer?

the error message indicates that the data consists of float values (with decimals) instead of full numbers (integers). So I was wondering if this can be selected somehow in PolSARpro

Thanks aridane, it really worked for Sentinel 1 data.
But, what should be the PolType: for the C2 matrix that we have created from other data set, lets say a compact pol RH and RV