Hi,

I'm trying to write and read multispectral, well actually only
dual-wavelength pulses and points in SPD files with python. But I have a
question about the indexing of the pulses and points as well as getting
pulses and points at specific locations of one wavelength.

I checked out Pete's paper on SPD format. The SPD treats each wavelength as
a separate pulse. Then all pulses at the two wavelengths will stack
together in the "DATA"->"PULSES". But I don't find clear explanation about
how the spd will index multiple wavelengths. I think SPD does it
automatically by checking out the SCANLINE and SCANLINE_IDX of each pulse
and the simultaneous pulses of different wavelengths have the same SCANLINE
and SCANLINE_IDX. Then one indexing dataset can give you all pulses of all
wavelengths. Then when I read spd file of dual wavelengths, say I read a
row in the spatial index, does it give me all the pulses at both
wavelengths? Then I can pick out the wavelength of interest by myself. But
what about getting the points associated with those pulses? I guess I could
get the point indices from those select pulses of one wavelength but then
the indices of the points won't be a continuous chunk in the
"DATA"->"POINTS". Then I would loop through the select pulses of one
wavelength and generate a list of point indices from PTS_START_IDX and
NUMBER_OF_RETURNS. But this sounds so troublesome and inefficient. Is there
any better way to do it in SPDlib? Or other suggestion for python?

Thanks,

Zhan.


-- 
Zhan Li, 李展;
Earth & Environment, Boston University, USA;

2008 - 2011, in Chinese Academy of Sciences, China;
2004 - 2008, in Nanjing University, China;
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
spdlib-develop mailing list
spdlib-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spdlib-develop

Reply via email to