Hi, Rob,
 
thank you for you reply and modification of the script. now Ican calculate the surface area. but when I calculate the surface of part protein, it seem that the surface area including the surface adjacent with other residues, means the sum of two fragments is much larger than whole protein surface, is there any method to calculate the surface only exposure to solvent?
 
Regards
 
Sujuan