Taking A large spreadsheet and making it into smaller spreadsheets
Afficher commentaires plus anciens
What I need to do is make a multiband raster image from text files. I have matching software that only works with rasters, I want to apply that software to my hand samples' spectral signatures. So I want to create a raster where each pixel represents a hand sample. To do that each band needs its own text file with the extension .xyz, I will be using QGIS to convert this text file into a raster image. Then I can layer stack all these rasters into a single scene. Then I can run it through my matching software. I'm having difficulty getting started and would greatly appreciate the help.
I have spectral data for 100 hand samples already compiled into an excel spreadsheet like so:
sample names | sample 1 | sample 2 | sample 3 | ...
X | 1 | 1 | 1 | ....
Y | 1 | 2 | 3 | ...
wavelength (nm) | reflectance % | reflectance % | reflectance % | ...
400 | 20 | 35 | 10 | ...
401 | 23 | 33 | 12 | ...
... | ... | ... | ... | ...
I want to creat a new text file for every row with a wavelenth number. Ex 400nm
( X | Y | reflectance %) *I actually do not want this row in the new spreadsheet, its only here to help explain.*
1 | 1 | 20
1 | 2 | 35
1 | 3 | 10
... | ... | ...
This is a basic text file. Only 3 columns and n number of rows. There needs to be no headings for the columns, just the values.
Thank you!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!