No, the data file itself consists of 120,000 data points the are numbers, most of which are in between 0 and 1000. The program is designed to find those points which are not in between 0 and 1000. The number of hotspots and coldspots the code outputs is in the range of ~-10,000,000 or something...
OK, I will give the elseif approach a try,
When I say I am getting stupid numbers, I get numbers that are in the millions and negative for the hot/coldspots along with the percentage. Not really sure why. I will try your approach though.
I keep getting stupid numbers for my hot and cold spots, along with the percentage
Here's what I have
PROGRAM FILE_CHECKER
IMPLICIT NONE
REAL :: PERCENT_OF_TOT_COLD, PERCENT_OF_TOT_HOT
CHARACTER(LEN=30) :: INPUT_FILE, ANSWER
REAL, DIMENSION(300,400):: DATA_ARRAY, DATA_ARRAY_AVERAGED...
Homework Statement
Write a program that that prompts the user for a filename of data, reads the data from the input file, smooths the data using the average value of the cell value and all of the nearest neighbors
-9 cell average for interior cells
-6 cell average for edge cells
-4 cell...