Skip to contents

Given latitude and longitude coordinates, find NARR x and y indices

Usage

closest_xy(slat, slon, infolder, infile)

Arguments

slat, slon

site location, in decimal degrees

infolder

path to folder containing infile

infile

pattern to match for filename inside infile. Only the first file matching this pattern AND ending with '.nc' will be used

Author

Betsy Cowdery, Ankur Desai