- edited description
Spectral Library not compatible with unmixing application
According to your unmixing tutorial (link) one need the following files for spec lib:
*.sli, *.hdr, *.csv, *.json
I get, however, the following files, when I save a spec lib with enmap box:
*.sli, *.hdr, *.csv, *.sli.aux.xml
So, I guess I have to create the json-file by myself?
Comments (10)
-
reporter -
reporter I added a json according to your json file in your tutorial files:
In my case like this:
{"class": {"categories": [[0, "bb", [0, 0, 0]], [1, "ag", [230, 0, 0]], [2, "fo", [56, 168, 0]], [3, "wa", [168, 112, 0]], [4, "mm", [0, 50, 156]] ], "no data value": 0, "description": "Classification" } }
I don’t know why I actually have to add this line [0, "bb", [0, 0, 0]],
but otherwise one class is missing in the in the synthMix window.
This has to be fixed!
-
reporter Afterwards I’ve got new errors.
I tried to adapt my library according to all the properties of the tutorial library.
I did a lot of changes. Now, the library is not readable anymore in the enmapbox
It’s so frustrating!
-
reporter Today, with a fresh start, it worked.
- 4 classes with around 270 spectra each
-
separately loaded from point shapes using Import profiles from raster + vector source
in one big spectral library
following adaptions are necessary after saving the spectral library:
- delete the *.xml
- generate a *.json file (with the structure I already posted)
-
I had spectra with the same names in the speclib and, therefore, I had to change the names in the *.csv and the *.hdr (in text editor)
- I just renumbered the column spectra name in the csv.
- AND replaced the band names with the same numbers in the *.hdr
-
reporter I wonder if this plattform is actually used…
-
reporter - edited description
-
- changed status to open
-
The `*.sli.aux.xml` is created by GDAL / QGIS automatically and contains additional metadata.
Actually I am not sure if the proposed*.json
approach was a good choice.
-
- changed status to closed
pulled qps updates, which: - closes issue
#330(Spectral Library did not load JSON class information)Signed-off-by: Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de benjamin.jakimow@geo.hu-berlin.de
→ <<cset d0bfb025333b>>
-
pulled qps updates, which: - closes issue
#330(Spectral Library did not load JSON class information)Signed-off-by: Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de benjamin.jakimow@geo.hu-berlin.de
→ <<cset d0bfb025333b>>
- Log in to comment