def METHOD_NAME(f, date):
    compact_query = Query(date=date, res=SAMPLING_RES,
        min_lat=SAMPLING_COMPACT_MIN_LAT, max_lat=SAMPLING_COMPACT_MAX_LAT,
        min_lon=SAMPLING_MIN_LON, max_lon=SAMPLING_MAX_LON)
    precise_query = Query(date=date, res=SAMPLING_RES,
        min_lat=SAMPLING_MIN_LAT, max_lat=SAMPLING_MAX_LAT,
        min_lon=SAMPLING_MIN_LON, max_lon=SAMPLING_MAX_LON)
    f.write('/* this file is automatically generated by src/utils/declination.py - DO NOT EDIT! */\n\n\n')
    f.write('/* Updated on %s */\n\n\n' % date)
    f.write('#include <stdint.h>\n\n')
    f.write('\n\n#if defined(%s)\n' % PREPROCESSOR_SYMBOL)
    generate_constants(f, precise_query)
    generate_tables(f, precise_query, False)
    # We're not using these tables for now
    # write_table(f, 'inclination_table', inclination_table)
    # write_table(f, 'intensity_table', intensity_table)
    f.write('#else /* !%s */\n' % PREPROCESSOR_SYMBOL)
    generate_constants(f, compact_query)
    generate_tables(f, compact_query, True)
    f.write('#endif\n')