<DIV><FONT color="#008000" size="2" face="Verdana">I want to handle some hdf data through a web service,and in the web service I handle the data by grass, so the problem comes out.The following is my setps:</FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">1)translate the hdf4 to a&nbsp; tif by a FWTools2.2.8 which call the gdal command actually)</FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">&nbsp;&nbsp;&nbsp; for example I use the command "gdal_translate [the subset] d:\aa.tif" ,</FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">2)import the tif </FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">&nbsp;&nbsp; "r.in.gdal input=D:/aaa6.tif output=ggg"</FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">3)process the ggg data of grass format </FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">&nbsp;&nbsp; for example "r.buffer map=ggg distance=30 output=temp"</FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">4)convert the temp to tif </FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">&nbsp;&nbsp; "r.out.gdal </FONT><A href="mailto:input=fields@PERMANENT"><FONT color="#008000" size="2" face="Verdana">input=temp</FONT></A><FONT color="#008000" size="2" face="Verdana"> format=GTiff output=d:/dd.tif"</FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">Then in the web service I return the url of the dd.tif to client.</FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">&nbsp;&nbsp; I want to know the above setps right or not?</FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">and in the step of 2 and 4 problems always come out..,a common problem is the data is blank even I reset the region use&nbsp; "g.region rast=..."</FONT></DIV>
<DIV><FONT color="#008000" size="2" face="Verdana"></FONT>&nbsp;</DIV>
<DIV><FONT color="#008000" size="2" face="Verdana">My god,I am crazying@@!</FONT></DIV>