<commit_before># -*- coding: utf-8 -*-
"""
Created on Thu Sep 29 10:41:02 2016

@author: dongyu
"""

import numpy as np
import utm
import string
import os
import glob
from datetime import datetime
from matplotlib.collections import PolyCollection
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
from netCDF4 import Dataset
from interpXYZ import interpXYZ
from romsio import roms_subset
from SUNTANSio import SUNTANS_download
import pdb

class blend(object):
    """
    download the data from the server and blend model result
    superposition
    """

    def __init__(self, starttime, endtime, **kwargs):
        self.__dict__.update(kwargs)
        
        timelims = (starttime.replace("-", "")+'0000', endtime.replace("-", "")+'0000')

        #### SUNTANS file ####
        basedir = os.getcwd()
        sun_dir = basedir + '/SUNTANS/rundata'
        os.chdir(sun_dir)
        ncfiles = []
        for ff in glob.glob("GalvCoarse_0*"):
            ncfiles.append(ff)
	
        os.chdir(basedir)

        nc_suntans = []<commit_msg>add one hour to starttime in Blended_model.py<commit_after># -*- coding: utf-8 -*-
"""
Created on Thu Sep 29 10:41:02 2016

@author: dongyu
"""

import numpy as np
import utm
import string
import os
import glob
from datetime import datetime, timedelta
from matplotlib.collections import PolyCollection
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
from netCDF4 import Dataset
from interpXYZ import interpXYZ
from romsio import roms_subset
from SUNTANSio import SUNTANS_download
import pdb

class blend(object):
    """
    download the data from the server and blend model result
    superposition
    """

    def __init__(self, starttime, endtime, **kwargs):
        self.__dict__.update(kwargs)

	#### SUNTANS simulation starts at one o'clock ####
	#### increase the starttime by one hour to make two model has the same starttime ####
	starttime = datetime.strftime( datetime.strptime(starttime,'%Y-%m-%d-%H')+timedelta(hours=1), '%Y-%m-%d-%H')
        
        timelims = (starttime.replace("-", "")+'0000', endtime.replace("-", "")+'0000')

        #### SUNTANS file ####
        basedir = os.getcwd()
        sun_dir = basedir + '/SUNTANS/rundata'
        os.chdir(sun_dir)
        ncfiles = []
        for ff in glob.glob("GalvCoarse_0*"):
            ncfiles.append(ff)
	
        os.chdir(basedir)

        nc_suntans = []
{'fraction_non_alphanumeric': 0.11482858323007022, 'fraction_numerical': 0.019413465510119784, 'mean_word_length': 3.204861111111111, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1670044', 'n_tokens_mistral': 825, 'n_tokens_neox': 777, 'n_words': 227}