def stns_near_zip(zip, year, N=20, id_filter=None): try: (lat, lon) = coords_from_zip(zip) stns_near_lat_lon(lat, lon, year, N, id_filter) except ImportError: print "pyzipcode is not available -> try using stns_near_lat_lon()"
def stns_with_fld_zip(fld, zip, year, N=20): try: (lat, lon) = coords_from_zip(zip) stns_with_fld(fld, lat, lon, year, N) except ImportError: print "pyzipcode is not available -> try using stns_near_lat_lon()"