Hi Pete,

I am still having issues with spdlib on some of my lidar files. The command I’m 
running is:


spdtranslate --if LAS --of SPD -x LAST_RETURN -t output/tmp/ -I 
200912_185142_Channel_1_NAD83_CSRS_19N_CGVD2013_3005_KCN256A_Zone1-FallingTide-001.las
 -o 
output/intermediate_files/200912_185142_Channel_1_NAD83_CSRS_19N_CGVD2013_3005_KCN256A_Zone1-FallingTide-001.spd


And the error I receive is:

. Complete

Converting into cartisian coordinate system index

Number of Tiles = 2620

Create Individual tiles

Error: Could not create SPD file: 
/Users/alchrist/documents/currentprojects/stlawrence/lidar_forJeanGabriel//output/tmp/2556.spd

spdtranslate - end

I mentioned previously that if I remove the temporary file output step it 
works. However, I found this doesn’t actually solve the issue. This particular 
step works, but the results spd file has a header issue that causes problems 
for future steps:

Steps to create *binned.spd, *rmnoise.spd, and *pmfgrd.spd all run without 
problem, but the spddefheight step gives an error:


spddefheight --interp -c 250 -r 250 -b 1 --overlap 5 --in NATURAL_NEIGHBOR_CGAL 
--thin --thinres 0.5 --ptsperbin 1 -i 
output/intermediate_files/200912_185142_Channel_1_NAD83_CSRS_19N_CGVD2013_3005_KCN256A_Zone1-FallingTide-001_pmfmccgrd.spd
 -o 
output/hfile/200912_185142_Channel_1_NAD83_CSRS_19N_CGVD2013_3005_KCN256A_Zone1-FallingTide-001_hgt.spd



Error: The SPD major version header value was not provided.

spddefheight - end




Please let me know if you have any suggestions for solving this issue. I can 
send another file, but I think the one I sent before has the same problem.
Thanks,
Alex

From: Pete Bunting <petebunt...@mac.com>
Date: Wednesday, April 6, 2022 at 2:18 PM
To: "Christensen, Alexandra (US 334F-NASA)" 
<alexandra.l.christen...@jpl.nasa.gov>
Cc: "spdlib-develop@lists.sourceforge.net" 
<spdlib-develop@lists.sourceforge.net>
Subject: Re: [EXTERNAL] [spdlib-develop] Spdtranslate error with tmp files

HI Alex,

I am not sure why that would make a difference and why the issue would only 
occur with some files. But, if you are happy to share a file that would be 
great, I will not share and delete it after I’ve debugged the issue.

No, you don’t need to worry about those warning unless you want to do something 
specific with the pulse structure. These errors occur as SPDLib tries to 
recreate the original pulse structure of the data but pre-processing of the 
data (e.g., noise filtering, cutting into tiles etc.) often breaking things 
about this structure in LAS files as it is not a requirement of the file 
structure.

Best wishes,

Pete


On 6 Apr 2022, at 22:11, Christensen, Alexandra (US 334F-NASA) 
<alexandra.l.christen...@jpl.nasa.gov<mailto:alexandra.l.christen...@jpl.nasa.gov>>
 wrote:

Hi Pete,

I will send you an example file separately. However, I am able to get around 
the issue if I remove the temporary folder option, but it’s not clear why that 
works.

Also, should I be worried about the many warnings such as:
WARNING: Pulse was written as incompleted pulse.
Warning: Point ignored. It is the first in pulse but has a return number 
greater than 1.

Thanks,
Alex

From: Pete Bunting <petebunt...@mac.com<mailto:petebunt...@mac.com>>
Date: Wednesday, April 6, 2022 at 2:01 PM
To: "Christensen, Alexandra (US 334F-NASA)" 
<alexandra.l.christen...@jpl.nasa.gov<mailto:alexandra.l.christen...@jpl.nasa.gov>>
Cc: 
"spdlib-develop@lists.sourceforge.net<mailto:spdlib-develop@lists.sourceforge.net>"
 
<spdlib-develop@lists.sourceforge.net<mailto:spdlib-develop@lists.sourceforge.net>>
Subject: [EXTERNAL] Re: [spdlib-develop] Spdtranslate error with tmp files

Hi Alex,

I am not sure. Is it possible for you to share one of the las files which 
produce the error to see if I can reproduce?

Many thanks,

Pete



On 6 Apr 2022, at 18:45, Christensen, Alexandra (US 334F-NASA) via 
spdlib-develop 
<spdlib-develop@lists.sourceforge.net<mailto:spdlib-develop@lists.sourceforge.net>>
 wrote:

Hello,

I’ve been running into a new error when processing lidar files with spdlib. Out 
of several hundred .las files, 2-3 have errors with spdtranslate:

spdtranslate --if LAS --of SPD -x LAST_RETURN -t directory/tmp/ -i 
directory/20210130_210127.las -o directory/output/20210130_210127.spd

While running, I get several warnings about incompleted pulse (but this is not 
unusual).

However, after 251 temp files, I get an error:
Error: Could not create SPD file: directory/output/tmp/252.spd

It doesn’t seem to be a disk space or memory issue as it is not any larger than 
any other files that run successfully.

Thanks,
Alex


_______________________________________________
spdlib-develop mailing list
spdlib-develop@lists.sourceforge.net<mailto:spdlib-develop@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/spdlib-develop<https://urldefense.us/v3/__https:/lists.sourceforge.net/lists/listinfo/spdlib-develop__;!!PvBDto6Hs4WbVuu7!YmAbRFM32PuQndwvAmsfppaYKT68sm9b2aVZMmLerDp-gsdgm1Rx6aJqHm-nxBpooEJ5ItwoSxQaCys$>

_______________________________________________
spdlib-develop mailing list
spdlib-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spdlib-develop
  • [spdlib-develop] ... Christensen, Alexandra (US 334F-NASA) via spdlib-develop
    • Re: [spdlib-... Pete Bunting via spdlib-develop
      • Re: [spd... Christensen, Alexandra (US 334F-NASA) via spdlib-develop
        • Re: ... Pete Bunting via spdlib-develop
          • ... Christensen, Alexandra (US 334F) via spdlib-develop

Reply via email to