Unexpected end of file

2,078 views
Skip to first unread message

Kevin Shao

unread,
Oct 10, 2010, 5:27:06 AM10/10/10
to Maxent
Hi dear all,

There is a problem when maxent3.3.3a is reading asc file of
environment. The message is

"Error in file F:\test\maxent\lyrback\ndvi08161.asc:
java.io.IOException: Unexpected end of file".

I have three asc files and I am sure their headers about geographic
dimensions are perfectly match.

Following are the content of maxent.log when the exception occurred.

Sun Oct 10 16:30:43 CST 2010
MaxEnt version 3.3.3a
Checking header of F:\test\maxent\lyrback\ndvi08161.asc
Checking header of F:\test\maxent\lyrback\qhldem2010.asc
Checking header of F:\test\maxent\lyrback\temp08169.asc
Reading samples from BarHeadedGoose.csv
Read samples: max memory 1037959168, total allocated 16252928, free
11102824, used 5150104, increment 5150104
Converting file F:\test\maxent\lyrback\ndvi08161.asc size 14475639,
max memory = 1037959168
Reading file ndvi08161.asc
Time since start: 1.703
Error in file F:\test\maxent\lyrback\ndvi08161.asc:
java.io.IOException: Unexpected end of file
java.io.IOException: Unexpected end of file
at density.MyScanner.refresh(MyScanner.java:30)
at density.MyScanner.step(MyScanner.java:24)
at density.MyScanner.next(MyScanner.java:39)
at density.GridIO.readASC(GridIO.java:301)
at density.GridIO.readGrid(GridIO.java:40)
at density.Extractor.CachedGridFilename(Extractor.java:66)
at density.Extractor.extractSamples(Extractor.java:141)
at density.Runner.initializeGrids(Runner.java:191)
at density.Runner.start(Runner.java:275)
at density.GUI$7.construct(GUI.java:319)
at density.SwingWorker$2.run(SwingWorker.java:108)
at java.lang.Thread.run(Thread.java:619)

Someone knows something about the error? Thanks a lot!

Kevin Shao

Andre Luis Acosta

unread,
Oct 10, 2010, 5:07:28 PM10/10/10
to max...@googlegroups.com
Try reinstalling java plataform
Maybe is damage

Good look
 
Regards
 
Andre
2010/10/10 Kevin Shao <dysj...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Maxent" group.
To post to this group, send email to max...@googlegroups.com.
To unsubscribe from this group, send email to maxent+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/maxent?hl=en.





Kevin Shao

unread,
Oct 13, 2010, 2:32:09 AM10/13/10
to Maxent
Thanks for your reply! I have solved the problem.

I translate the tiff data to asc by GDAL but lost the line like
"NODATA_value......", then I add the line by myself. Everything is ok!

By the way thank you very much!

On 10月11日, 上午5时07分, Andre Luis Acosta <andreluisaco...@gmail.com>
wrote:
> Try reinstalling java plataformhttp://www.java.com/en/download/index.jsp
> Maybe is damage
>
> Good look
>
> Regards
>
> Andre
> 2010/10/10 Kevin Shao <dysj4...@gmail.com>
> > maxent+un...@googlegroups.com<maxent%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages