Hello You can look the 2 pictures from the web: www.ut.ee/~erkok/temperature There temp1.gif is original and temp2.gif is the file after saving with the fwrite ... The solution not to use -180 180 didn't help Erko