new file: readslice.R
[wrf-fire-matlab.git] / detect_ignition / new_likelihood / get_fire_pixels.m
bloba21a3a022c63e16f363af9e5fbeb5422004491a9
1 function [ fire_pixels ] = get_fire_pixels( data )\r
2 %UNTITLED Summary of this function goes here\r
3 %   Detailed explanation goes here\r
4 \r
5 [m n] = size(data);\r
6 fire_pixels = zeros(m,n);\r
7 \r
8 for ii = 1:m\r
9     for jj = 1:n\r
10         if data(ii,jj) >= 7\r
11             fire_pixels(ii,jj) = data(ii,jj);\r
12         end\r
13     end\r
14 end\r
16 %contour(fire_pixels)\r
18 end\r