예제 #1
0
Year = 2004
lMD = [[3,6]]
#lMD = [[6,7]]
#lMD = [[9,8]]
#lMD = [[12,6]]
Hour = 0

lM1  = [0.26, 0.3, 0.34]
lM2  = [1.0, 1.4, 1.8]

#lM1  = [0.34]
#lM2  = [1.4]

BBox    = [[20,120],[60,170]]
front = Front.front(model="JRA55",res="bn")
a1lat = front.Lat
a1lon = front.Lon
miss  = front.miss

for Mon, Day in lMD:
  Dtime = datetime(Year,Mon,Day,Hour)
  for M1,M2 in [[M1,M2] for M1 in lM1 for M2 in lM2]:
    a2front = front.load_tfront(Dtime, M1=M1, M2=M2)
    a2front = ma.masked_equal(a2front, miss)
    oPath   = "/home/utsumi/temp/tune/%02d.%02d.M1.%04.2f.M2.%03.1f.png"%(Mon,Day,M1,M2)
    Fig.DrawMap(a2front, a1lat, a1lon, BBox, figname = oPath, stitle="%02d-%02d M1=%f M2=%f"%(Mon,Day, M1,M2))

  #- join --
  i  = -1
  da2dat = {}
예제 #2
0
파일: temp2.py 프로젝트: hyungjun/detect
from JRA55 import jra55
import Front
from datetime import datetime, timedelta

front = Front.front("JRA55","bn.anl_p125")

DTime = datetime(2004,3,5)
a2f   = front.load_tfront(DTime)
print a2f

예제 #3
0
from numpy import *
from detect_fsub import *
import Front
from datetime import datetime

Year   = 2004
Mon   = 6
Day   = 8
Hour  = 0
DTime = datetime(Year,Mon,Day)

new   = Front.front(model="JRA25",res="sa.one")
path_new = new.path_potloc(DTime)
srcnew1 = path_new.srcPath1
srcnew2 = path_new.srcPath2
print srcnew1
print srcnew2

srcold1 = "/media/disk2/out/JRA25/sa.one.anl_p/6hr/front.t/%04d%02d/front.t.M1.%04d.%02d.%02d.%02d.sa.one"%(Year,Mon,Year,Mon,Day,Hour)
srcold2 = "/media/disk2/out/JRA25/sa.one.anl_p/6hr/front.t/%04d%02d/front.t.M2.%04d.%02d.%02d.%02d.sa.one"%(Year,Mon,Year,Mon,Day,Hour)

srcrpr1 = "/media/disk2/out/JRA25/sa.one.temp2/6hr/front.t/%04d%02d/front.t.M1.%04d.%02d.%02d.%02d.sa.one"%(Year,Mon,Year,Mon,Day,Hour)
srcrpr2 = "/media/disk2/out/JRA25/sa.one.temp2/6hr/front.t/%04d%02d/front.t.M2.%04d.%02d.%02d.%02d.sa.one"%(Year,Mon,Year,Mon,Day,Hour)


a2new1 =fromfile(srcnew1,float32).reshape(180,360)
a2new2 =fromfile(srcnew2,float32).reshape(180,360)

a2old1 =fromfile(srcold1,float32).reshape(180,360)
a2old2 =fromfile(srcold2,float32).reshape(180,360)
예제 #4
0
import tkinter as tk
from tkinter import filedialog
import numpy as np
import tensorflow as tf
import pandas as pd
from keras.utils import np_utils
import CSVUtils as csvUtils
import time
import Front as front
# import datumio as dtd
# import datagen as dtd
# # import datumio.datagen as dtd
# import datumio.datumio.datagen as dtd

path_Train = front.chooseFolder("TRAIN") # choose train folder
X_Train = imageUtils.loadImages(path_Train, "TRAIN") # load train images
X_Train = preprocessing.removeBackgrounds(X_Train)

path_Test = front.chooseFolder("TEST") # choose test folder
X_Test = imageUtils.loadImages(path_Test, "TEST") # load test images
X_Test = preprocessing.removeBackgrounds(X_Test)

path_Train_Ground_Truth = "/home/gustavo/Documentos/DATA_BASE/ISIC-2017_Training_Part3_GroundTruth.csv"

path_Test_Ground_Truth = "/home/gustavo/Documentos/DATA_BASE/ISIC-2017_Test_v2_Part3_GroundTruth.csv"

y_Train = csvUtils.getGroundTruthCSV(path_Train_Ground_Truth, n = 2000)

y_Test = csvUtils.getGroundTruthCSV(path_Test_Ground_Truth, n = 600)
예제 #5
0
import logging
from Front import *

if __name__ == '__main__':
    logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', datefmt='%Y.%m.%d %I:%M:%S %p',
                        level=logging.DEBUG)

    front = Front()
    front.start()
예제 #6
0
from numpy import *
from datetime import datetime, timedelta
import Front
import Fig
import Image
import ctrack_func

model = "JRA25"
res   = "sa.one"

#model = "JRA55"
#res   = "bn"

front = Front.front(model=model, res=res)
a1lat = front.Lat
a1lon = front.Lon
miss  = front.miss

Year = 2004
Mon  = 6
Day  = 1
Hour = 0
BBox =[[20,120],[60,170]]


figdir  = "/home/utsumi/temp/tenkizu/%04d%02d"%(Year,Mon)
Dtime = datetime(Year,Mon,Day,Hour)
a2tfront  = ma.masked_not_equal( front.load_tfront(Dtime), miss).filled(2.0)
a2qfront  = ma.masked_not_equal( front.load_qfront(Dtime), miss).filled(1.0)
print a2qfront.mean(),a2tfront.mean()
a2front   = ma.masked_where(a2tfront==2.0, a2qfront).filled(2.0)
예제 #7
0
#Guessing game,Player gets a card and needs to guess if his cards value is higher or lower than the next one

from tkinter import *
import Front

if True:

    root = Tk()
    gui = Front.GUI(root).pack()
    root.mainloop()