SLAMM Forum

General Category => Using SLAMM => Topic started by: JackieRaw on February 28, 2019, 04:54:12 AM

Title: Error Reading Headers
Post by: JackieRaw on February 28, 2019, 04:54:12 AM
Hi everyone,

I am new to SLAMM, and hoping to get some help with an error code. I loaded SLAMM 6.7 and I have tried to run the Santa Ynez simulation from the example data that is provided in the download. However, after selecting parameters and clicking Execute, I get the message - Error Reading Headers for "Santa_Ynez_NWI_5m_531.asc"

When I look at the files, this one for the SLAMM categories does appear to have a different format for the headers compared to the DEM and Slope files that are provided. I have tried to find a way to edit the header in the NWI file but I haven't been successful. I can't load any of the other example datasets posted here on the forum because they aren't compatible with version 6.7

Some help resolving this would really be appreciated as I wanted to try working with the example data before loading my own. I tried to look for a post related to this error but I couldn't find one.

Thanks,

Jackie

Title: Re: Error Reading Headers
Post by: Jonathan S. Clough on March 01, 2019, 06:56:37 AM
Sorry you are having difficulty with the sample files.  I'm out of my office until Monday and I will look at your question then.
Title: Re: Error Reading Headers
Post by: JackieRaw on March 06, 2019, 10:47:29 PM
Hi Jonathan,

Thank-you. Your follow up will be much appreciated.

Jackie
Title: Re: Error Reading Headers
Post by: Jonathan S. Clough on March 07, 2019, 10:32:01 AM
I downloaded the executable and sample files and was unable to reproduce your problem.   

Are you unzipping all of the files rather than trying to run out of the compressed folder?   
What happens when you press the "Set Map Attributes?"  Do the map and editing tools appear?
What happens under the file-setup window?  Are files showing as red -- invalid or are the list of NRows and NCols shown under each one.
In some cases you must point the file system to the correct file, but this may not be required if the files are in the same directory as the SLAMM6 file.

Good luck!  -- Jonathan
Title: Re: Error Reading Headers
Post by: JackieRaw on March 08, 2019, 01:36:51 AM
Hi Jonathan,

Thanks for your reply. I uninstalled and re-downloaded the executable and the sample files to ensure there were no problems in the file path. However, I am still getting the same error. I have changed the installation folder to avoid using C/Program Files.

I have unzipped the folder to a new location and I have loaded the Santa Ynez SLAMM6 file from this new location.
If I press the "Set Map Attributes" I first get a blank window with the heading SLAMM 6.7 beta but there is no text, just an "OK" button. Then the error is returned 'Error Reading Headers for "Santa_Ynez_NWI_5m_531.asc" and I can click "OK" again. Then it opens a window Reading Site Characteristics but there is no progress from 0% and I can click on "Halt Execution".

When I go to the File Setup window then the files are shown with a red background. This remains the same when I let the files be picked up from the folder where the SLAMM6 file is or when I browse and select them through a file path. Pressing "Execute" generates the same error as above after the SLR parameters have been selected.

I might try download it on a different machine and see if I still encounter the same problem.

Jackie
Title: Re: Error Reading Headers
Post by: JackieRaw on March 12, 2019, 06:48:17 AM
Hi Jonathan,

Just wanted to give a follow up on this query. I have tried loading the SLAMM 6.7 executable on another computer and I am still encountering the same errors. I am not sure if I have completely missed something. I am accessing the executable from the github: https://github.com/WarrenPinnacle/SLAMM6.7/blob/master/INSTALL/Release/Single/SLAMM6.7_64-bit.exe

I can view the sample Santa Ynez files as rasters in GIS with no problems.
I have also tried using my own .asc files for a new simulation but the files are still not valid (showing in red and the Ncols, Nrows are not being shown) in the File Setup Window.

Any help would be much appreciated.

Thanks,

Jackie
Title: Re: Error Reading Headers
Post by: JackieRaw on April 14, 2019, 01:41:46 AM
Hi Jonathan,

I have found the solution to this problem. It was a simple default setting that needed to be changed on my computer. My Windows 10 machine was set up with US English as the default language, with a comma to be used as a decimal point instead of a full stop. This prevented the ASCII files from being loaded because the decimals were being read as commas, even if the original files were correctly formatted.

All is working smoothly now.

Thanks,

Jackie
Title: Re: Error Reading Headers
Post by: Jonathan S. Clough on May 14, 2019, 01:02:04 PM
So glad you solved the problem!  I will make a note for the next version to override the Windows settings so that a decimal point is used in either case, so this does not pose a problem in future versions.  Thanks -- Jonathan