Esempio n. 1
0
                fig_title='')
                #~ fig_title='', plotmem=sig_membs_ce)
    #~ pm.plotnorm(f_signal_ce, f_std_ce, o_pad_ce, title_xlabel=u"Standardized Precipitation",
    #~ title_ylabel="Probability", fig_name=figname_curvace, fig_title='')

    background = Image.open(figname_curvace)
    foreground = Image.open("/home/marcelo/FSCT-ECHAM46/FUNCEME_LOGO.png")
    foreground = foreground.resize((90, 70), Image.ANTIALIAS)
    background.paste(foreground, (630, 469), foreground)
    background.save(figname_curvace, optimize=True, quality=95)

    figout = "{5}/bra_precip_persistida_{1}_{2}-{3}_{4}_{0}_echam46_1dg_cmap_tercilmaisprovavel_median.png".format(n_fcst_month, hind_period_name, target_year, target_months, fcst_year, outdir)
    figtitle = "ECHAM4.6 - {0}/{1} - {2}/{3}\nPROB PREC (%) ({4})".format(fcst_month.upper(), fcst_year, target_months, target_year, hind_period_name)
    #~ figtitle = "ECHAM4.6 - OCT/{1} - {2}/{3}\nPROB PREC (%) ({4})".format(fcst_month.upper(), fcst_year, target_months, target_year, hind_period_name)
    #~ shapefile="/home/marcelo/Anaconda/lib/python2.7/site-packages/PyFuncemeClimateTools-0.1.1-py2.7.egg/PyFuncemeClimateTools/shp/brazil"
    pm.maptercis(file_out, figtitle, figout)
    #~ plttercis(file_out, figtitle, figout)

    background = Image.open(figout)
    foreground = Image.open("/home/marcelo/FSCT-ECHAM46/FUNCEME_LOGO.png")
    foreground = foreground.resize((90, 70), Image.ANTIALIAS)
    background.paste(foreground, (334, 461), foreground)
    background.save(figout, optimize=True, quality=95)

    for filename in glob.glob('*.jnl'):
        shutil.copy(filename, outdir)

    for filename in glob.glob('*.spk'):
        shutil.copy(filename, outdir)

    os.chdir(outdir)