;Get the row and column of the L1A pixel closest to the given latitude and longitude ; ;input ; img_lat,img_lon - latitude and longitude of each pixel in the 1A image. Should be 2D arrays 170x340 ; pt_lat,pt_lon - latitude and longitude which is being searched for ; /deg - set if units of latitude and longitude above are in degrees ;return ; 2 element array with column and row of nearest pixel to given latitude function find_pix,img_lat,img_lon,pt_lat,pt_lon,deg=deg d=gcdist(img_lat,img_lon,pt_lat,pt_lon,deg=deg) junk=min(d,index) return,array_indices(img_lat,index) end