Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readSLI collapses " " from "spectra names" in hdr files to "" #52

Closed
aloboa opened this issue Jul 12, 2019 · 1 comment
Closed

readSLI collapses " " from "spectra names" in hdr files to "" #52

aloboa opened this issue Jul 12, 2019 · 1 comment

Comments

@aloboa
Copy link

aloboa commented Jul 12, 2019

Currently, *.sli files from EnMapBox come with "spectra names" field in the corresponding *.hdr file that have " " separators, such as:
spectra names = {
FX10FX17_Quartz1_small.raw 738.785219770416 358.03143995717653 USER:100025,
FX10FX17_Quartz2_small.raw 615.0409742461194 446.71481591625576 USER:100025,
FX10FX17_Quartz3_small.raw 346.9284422768101 586.9582941771253 USER:100025}
readSLI() collapses the " " and names become:
[2] "FX10FX17_Quartz1_small.raw738.785219770416358.03143995717653USER:100025"
[3] "FX10FX17_Quartz2_small.raw615.0409742461194446.71481591625576USER:100025"
[4] "FX10FX17_Quartz3_small.raw346.9284422768101586.9582941771253USER:100025"

which is very inconvenient for ulterior processing. Could you use "_" as separator?
"FX10FX17_Quartz1_small.raw_738.785219770416_358.03143995717653_USER:100025"
"FX10FX17_Quartz2_small.raw_615.0409742461194_446.71481591625576_USER:100025"
"FX10FX17_Quartz3_small.raw_346.9284422768101_586.9582941771253_USER:100025"

@bleutner
Copy link
Owner

good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants