Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to put together a geoprocessing workflow in Python, and I've hit a stumbling block with sa.fill. When run as a standalone script, the tool produces a raster composed entirely of NoData values. If I run the same code in the Python window in ArcMap, a correctly filled raster is produced. My code snippet is:

outfill = sa.Fill(raster,"")
outfill.save(fill)
print "Sink fill complete."

I've tried copying my entire script into the Python window and adding it to a toolbox, but I get the following error in both cases:

Runtime error <type 'exceptions.EOFError'>: EOF when reading a line

The standalone script does not produce this error. It actually runs through all the steps without incident, but the output is useless as everything after the Fill step is based on NoData values.

Does anyone have any thoughts on this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It appears to have been a service pack issue. Updating to the next service pack fixed the problem.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.