<commit_before>import utilities
import subprocess

def create_mangrove_tiles(tile_id):

    print "Getting bounding coordinates for tile", tile_id
    xmin, xmax, ymin, ymax = utilities.coords(tile_id)
    print "ymax:", ymax, "; ymin:", ymin, "; xmax", xmax, "; xmin:", xmin

    print ""
    cmd = ['gdalwarp', '-t_srs', 'EPSG:4326', '-co', 'COMPRESS=LZW', '-tr', '0.00025', '0.00025', '-tap', '-te', xmin,
            ymin, xmax, ymax, '-dstnodata', '-9999', '-overwrite', utilities.mangrove_vrt, '{0}_{1}.tif'.format(utilities.mangrove_tile_out, tile_id)]
    subprocess.check_call(cmd)

    utilities.upload_final(utilities.mangrove_tile_out, utilities.out_dir, tile_id)
<commit_msg>Prepping Loly Fatoyibo's mangrove biomass tifs into Hansen tiles<commit_after>import utilities
import subprocess

def create_mangrove_tiles(tile_id):

    print "Getting bounding coordinates for tile", tile_id
    xmin, xmax, ymin, ymax = utilities.coords(tile_id)
    print "ymax:", ymax, "; ymin:", ymin, "; xmax", xmax, "; xmin:", xmin

    print ""
    out_tile = '{0}_{1}.tif'.format(utilities.mangrove_tile_out, tile_id)
    cmd = ['gdalwarp', '-t_srs', 'EPSG:4326', '-co', 'COMPRESS=LZW', '-tr', '0.00025', '0.00025', '-tap', '-te',
           xmin, ymin, xmax, ymax, '-dstnodata', '-9999', '-overwrite', utilities.mangrove_vrt, out_tile]
    subprocess.check_call(cmd)

    utilities.upload_final(utilities.mangrove_tile_out, utilities.out_dir, tile_id)


{'fraction_non_alphanumeric': 0.16815988973121984, 'fraction_numerical': 0.030323914541695383, 'mean_word_length': 4.584615384615384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '797131', 'n_tokens_mistral': 600, 'n_tokens_neox': 539, 'n_words': 116}