Hi Zhan,

the -x option in spdtranslate is for spatially indexing a pulse in a 2D 
Cartesian grid, which requires one location along the path of a laser beam to 
index by. This is typically the location of the first or last return (point). 
To spatially index by class would not work if none or >1 of the points within a 
pulse are of that class.

You can create an image of the mode of point class categories using the 
spdmetrics command, or the spdpy2 Python bindings. Examples of using spdpy2 are 
in the SPDLib source under ngpython/tests.

cheers,
John.

p.s. Is this DWEL data you’re trying to import? The current schema method for 
importing ASCII treats each point as belonging to a separate laser shot – i.e. 
pulse information is lost. Is that right Pete? If so best to use the Python 
bindings to write a custom importer – we’ve done one for OzDWEL here: 
https://bitbucket.org/qdermrsc/tlsrepo/src/9b7f0f94662f/tlsiig_brisbane/converters/dwel/?at=default



From: Zhan Li [mailto:[email protected]]
Sent: Friday, 6 February 2015 4:24 PM
To: Daniel Clewley
Cc: spdlib-develop
Subject: Re: [spdlib-develop] where is the function of hemisherical projection

Hi Dan, Pete,

Thanks a lot for all the helps! I now run the spdtranslate correctly. But may I 
suggest one thing about the -x option, index method? As multi-spectral lidar 
emerging, we can classify each point potentially. Even with single-wavelength 
full-waveform data, we can classify with pulse shape. I think there are some 
people like me that need to project a classified points to an image. And 
projection of a classified points (the class) needs to use mode of the point 
class categories as index. I'd like to have option "MODE" as the index.

Thanks,

Zhan.

On Wed, Feb 4, 2015 at 1:47 PM, Daniel Clewley 
<[email protected]<mailto:[email protected]>> wrote:
Hi Zhan,

You need to define a scheme when importing ASCII data using the ‘—schema’ flag.

There are some examples in the schemas folder of the SPDLib source. You can 
modify the xyzi.xml one, changing the delimiter to “ “.

Thanks,

Dan

On 4 Feb 2015, at 15:41, Zhan Li 
<[email protected]<mailto:[email protected]>> wrote:

Sorry for bugging again... I got segmentation fault error. My ascii file is 
formatted as x y z I (they are separated by a space, no header line). Is it 
because there might be some funky points in my data? Our point cloud data has 
some noise so far we haven't figured out a good way to remove. If helpful for 
more info, here is the ASCII file I'm converting to spd. 
ftp://earth.bu.edu/zhanli86/hfhd_20140919_c_ascii.txt

thanks,

Zhan.

On Wed, Feb 4, 2015 at 8:57 AM, Pete Bunting 
<[email protected]<mailto:[email protected]>> wrote:
HI Zhan,

If you open the SPD file in hdfview then you can save out the quicklook image.

Cheers, Pete



On 4 Feb 2015, at 13:05, Zhan Li 
<[email protected]<mailto:[email protected]>> wrote:

Oh oh this is embarrassing that I missed my typo error... Hectic day... But 
good to to know the indexing should export to SPD. I was wondering if ASCII to 
ASCII could work...

Is there a way to export the quick view image in SPD to a tif or other imag 
file? If not I think I'll read the quick view from the SPD and save it?

Thanks

Zhan.

On Wednesday, February 4, 2015, Pete Bunting 
<[email protected]<mailto:[email protected]>> wrote:
Hi Zhan,

Going from ascii to ascii won’t do anything in terms of an index. If you want 
an indexed file it needs to be an SPD file. So you should have --if ACSII --of 
SPD.

Cheers, Pete

On 4 Feb 2015, at 07:30, Daniel Clewley 
<[email protected]<mailto:[email protected]>> wrote:

HI Zhan,

I think the problem is you’re only using single dashes for -if and -of it 
should be:

—if ASCII —of ASCII

To get the latest version of SPDLib you can check out the development version:

hg clone https://bitbucket.org/petebunting/spdlib

Thanks,

Dan

On 4 Feb 2015, at 01:05, Zhan Li 
<[email protected]<mailto:[email protected]>> wrote:

I got error from running spdtranslate in my installed version. Maybe there is a 
updated version I need to reinstall?

Thanks,

Zhan.

$ spdtranslate --output 
"HFHD_20140919_C_1064_cube_bsfix_pxc_update_atp2_sdfac2_sievefac10_ptcl_points_ascii_hsproj.txt"
 --input 
"HFHD_20140919_C_1064_cube_bsfix_pxc_update_atp2_sdfac2_sievefac10_ptcl_points_ascii.txt"
 -if ASCII -of ASCII --polar -x MAX_INTENSITY

It reports errors in the following.

spdtranslate SPDLib 3.0.0, Copyright (C) 2012 Sorted Pulse Library (SPD)
This program comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions; See
website (http://www.spdlib.org<http://www.spdlib.org/>). Bugs are to be 
reported on the trac
or directly to 
[email protected]<mailto:[email protected]>
PARSE ERROR: Argument: -i
             Couldn't find match for argument

Brief USAGE:
   spdtranslate  -o <String> -i <String> [-f] [--pulseversion <unsigned
                 int>] [--pointversion <unsigned int>] [--wavenoise
                 <float>] [--Oz <float>] [--Oy <double>] [--Ox <double>]
                 [--defineOrigin] [--tly <double>] [--tlx <double>]
                 [--defineTL] [--keeptemp] [--convert_proj] [--output_proj
                 <string>] [--input_proj <string>] [-b <float>] [-c
                 <unsigned int>] [-r <unsigned int>] [-s <string>] [-t
                 <string>] [--scan] [--polar] [--spherical] [--wavebitres
                 <8BIT|16BIT|32BIT>] [-x <FIRST_RETURN|LAST_RETURN
                 |START_WAVEFORM|END_WAVEFORM|ORIGIN|MAX_INTENSITY
                 |UNCHANGED>] --of <SPD|UPD|ASCII|LAS> --if <SPD
                 |ASCIIPULSEROW|ASCII|FWF_DAT|DECOMPOSED_DAT|LAS
                 |DECOMPOSED_COO|ASCIIMULTILINE> [--] [--version] [-h]

For complete USAGE and HELP type:
   spdtranslate --help

On Tue, Feb 3, 2015 at 5:00 AM, Pete Bunting 
<[email protected]<mailto:[email protected]>> wrote:
Hi Zhan,

Yes, sorry the website is not very up to date. There is more up to date 
documentation on the sourceforge download site: 
http://sourceforge.net/projects/spdlib/files/Tutorials/

Regarding the projection issue you want to use polar. The definition is within 
the paper attached, see figure 8.

Cheers, Pete




On 2 Feb 2015, at 19:49, Zhan Li 
<[email protected]<mailto:[email protected]>> wrote:

Hi Dan,

Thanks for the help. I was checking out the wiki page and it still lists 
spd2spd. But I just checked spdtranslate, there is no option for hemispherical 
projection. There are "polar", "spherical", and "scan". What is the definition 
of polar system here? Does it mean hemispherical projection? I need to feed an 
ASCII file of x, y, z and intensity to spdtranslate.

Thanks,

Zhan.

On Mon, Feb 2, 2015 at 2:37 PM, Daniel Clewley 
<[email protected]<mailto:[email protected]>> wrote:
Hi Zhan,

In the latest version of SPDLib spd2spd has been replaced with spdtranslate, 
you can use this to project data to a hemispherical system using the same flags.

Thanks,

Dan

> On 2 Feb 2015, at 19:28, Zhan Li 
> <[email protected]<mailto:[email protected]>> wrote:
>
> Hi I installed spdlib with a "version" label 20130504. I didn't see the 
> spd2spd command that can project TLS data to a hemispherical projection. Is 
> this version not complete or the projection function is moved to another 
> command? Has anyone had the same issue and known how to get the spd2spd back?
>
> 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
> [email protected]<mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/spdlib-develop



--
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
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/spdlib-develop





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

2008 - 2011, in Chinese Academy of Sciences, China;
2004 - 2008, in Nanjing University, China;




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

2008 - 2011, in Chinese Academy of Sciences, China;
2004 - 2008, in Nanjing University, China;





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

2008 - 2011, in Chinese Academy of Sciences, China;
2004 - 2008, in Nanjing University, China;




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

2008 - 2011, in Chinese Academy of Sciences, China;
2004 - 2008, in Nanjing University, China;
This E-Mail is intended only for the addressee. Its use is limited to that 
intended by the author at the time and it is not to be distributed without the 
author's consent. Unless otherwise stated, the State of Queensland accepts no 
liability for the contents of this E-Mail except where subsequently confirmed 
in writing. The opinions expressed in this E-Mail are those of the author and 
do not necessarily represent the views of the State of Queensland. This E-Mail 
is confidential and may be subject to a claim of legal privilege. If you have 
received this E-Mail in error, please notify the author and delete this message 
immediately.
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/spdlib-develop

Reply via email to