m.dem.extract

Michael Camann camann at athena.cs.uga.edu
Sat Aug 15 14:06:35 EDT 1992


Perhaps someone can help me with a problem I'm having with the m.dem.extract
program.  I get a record format error after the third header has appeared on
the screen.  I've read the README file that accompanied the m.dem.extract
currently in the upgrades directory on the moon, and I assume that the
error is the one described there, that is, that the USGS header record
incorrectly states that there is no type C record at the end of the third
DEM.  I tried the fix offered in the README file, changing

if(C_record) 

to

if((C_record) || (count==3))

in both the getgrid.c and the usgs_buf.c files, but that didn't help.  I 
still get the error:

--the file with incorrect data format encountered

and the tape read bombs.  I can't get past the third DEM and there are 21 of
them on the tape!  Is there any other way to get those DEMs off the tape?
Unfortunately, I don't know enough about the record structure of the DEM
files to edit them directly, but if I could get them off the tape, say
with dd, COULD I somehow fix the incorrect record field, then use 
m.dem.extract on the disk file?  I hope there's an easier way!

BTW, both m.examine.tape and m.dem.examine worked on the whole tape.

		Mike Camann
		camann at athena.cs.uga.edu




More information about the grass-user mailing list