コード例 #1
0
#set heights
heights = range(3000,9200,200)

#set dates and times
year = '10'
month = '03'
day = [24]#range(10,13)
hour = range(0,24,6)

totalruns = len(stations)*len(day)*len(hour)*len(heights)
runs = 0

#select meteorology files

meteo_list = tools.get_files('Select Meteorology Files')
meteo_files = meteo_list.split()

#set output directory

output_dir = tools.set_dir('Select Output Directory')

for s in stations:
    for d in day:
        for h in hour:
            for z in heights:
                start_time = [year,month,d,h]
                    
                tools.control_single(s,start_time,run_hours,z,meteo_files,output_dir)
                startupinfo = subprocess.STARTUPINFO()
                startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
コード例 #2
0
import hysplit_tools_v2 as tools
import hysplit_traceback_single as traceback
import file_process_tools as proc
import numpy as np
import scipy.io
import os,sys


#STEP #1: Filter original Hysplit files to include only days that have aeronet data

aerofilt_topdir = 'F:\Hysplit\AEROFILT'
os.chdir(aerofilt_topdir)

startdir = os.getcwd()

aeronet_path = tools.get_files('Choose Aeronet File',('Aeronet Files','*.dubovik'))

hysplit_path = tools.set_dir('Select Hysplit Directory')

aerofilt_dir = tools.aeronet_dayfilter(aeronet_path[1:-1],aerofilt_topdir,hysplit_path)

#STEP #2: Convert aeronet file and filtered hysplit files to .mat format

tools.hysplit_matfile_generator(aerofilt_dir)

tools.aeronet_matfile_generator(aeronet_path[1:-1],aerofilt_dir)

#STEP #3: Generate Hysplit traceback file
 
traceback.traceback(aerofilt_dir)
コード例 #3
0
import hysplit_tools_v2 as tools
import hysplit_traceback_single as traceback
import file_process_tools as proc
import numpy as np
import scipy.io
import os, sys

#STEP #1: Filter original Hysplit files to include only days that have aeronet data

aerofilt_topdir = 'F:\Hysplit\AEROFILT'
os.chdir(aerofilt_topdir)

startdir = os.getcwd()

aeronet_path = tools.get_files('Choose Aeronet File',
                               ('Aeronet Files', '*.dubovik'))

hysplit_path = tools.set_dir('Select Hysplit Directory')

aerofilt_dir = tools.aeronet_dayfilter(aeronet_path[1:-1], aerofilt_topdir,
                                       hysplit_path)

#STEP #2: Convert aeronet file and filtered hysplit files to .mat format

tools.hysplit_matfile_generator(aerofilt_dir)

tools.aeronet_matfile_generator(aeronet_path[1:-1], aerofilt_dir)

#STEP #3: Generate Hysplit traceback file

traceback.traceback(aerofilt_dir)
コード例 #4
0
heights = range(1600,4050,50)

#set dates and times
year = '12'
month = '07'
day = [7]#range(5,10)
hour = range(0,24,6)

totalruns = len(stations)*len(day)*len(hour)*len(heights)
runs = 0

#select meteorology files

olddir = os.getcwd()
os.chdir('C:\hysplit4\meteo')
meteo_list = tools.get_files('Select Meteorology Files')
meteo_files = meteo_list.split()

#set output directory

os.chdir('C:\Hysplit')
output_dir = tools.set_dir('Select Output Directory')

for s in stations:
    for d in day:
        for h in hour:
            for z in heights:
                start_time = [year,month,d,h]
                    
                tools.control_single(s,start_time,run_hours,z,meteo_files,output_dir)
                startupinfo = subprocess.STARTUPINFO()