#!/bin/ksh
#
#
# VARIAVEIS
Conv=$2
export Run_Date=$1
export Eta_home=/home/modelo/worketa
export Eta_home1=/home/modelo/worketa
export Eta_wrk=/home/modelo/worketa
export Eta_scr=${Eta_home1}/eta/Florianopolis/scripts
export Eta_scr_out=/home/modelo/worketa/eta/Florianopolis/scripts/output/${Run_Date}Eta${Conv}_FLN5km
export Eta_run=${Eta_wrk}/eta/Florianopolis/${Run_Date}Eta${Conv}_FLN5km
export Eta_binctl=${Eta_wrk}/eta/Florianopolis/binctl/${Run_Date}
export Eta_posfig=${Eta_wrk}/eta/Florianopolis/posfig
export Eta_grbctl=${Eta_wrk}/eta/Florianopolis/grbctl/${Conv}
export Eta_indsev=${Eta_wrk}/eta/Florianopolis/indsev/${Conv}
export Eta_ucl=/home/modelo/worketa/eta/Florianopolis/ucl
export Eta_fix=${Eta_home1}/eta/fix
export Eta_wrk_fix=${Eta_home1}/eta/Florianopolis/fix
export Eta_src=/home/modelo/worketa/eta/src
export Eta_exe=${Eta_home1}/eta/Florianopolis/exe
export data_grib=${Eta_wrk}/data/cpteta40
export data_prep=${Eta_run}
export Eta_static=/home/modelo/worketa
export data_topo=${Eta_static}/eta/static/topo
export data_soilp=${Eta_static}/eta/static/newsoil
export data_veg=${Eta_static}/eta/static/veg
export Eta_datain=${Eta_home1}/eta/Florianopolis/datain
#export Eta_static=${Eta_home1}/eta/static
export Eta_conf=${Eta_home1}/eta/Florianopolis/configuracao
export Lon=-49.0 
export Lat=-23.0
export IM=89
export JM=149
export LM=38
export LSM=40
export PT=50
export Res=5
export resol=0.10
export DLMD=.07211538462500000000
export DPHD=.06730769237500000000
export Fctexec=etafcst_${Conv}.x 
export LabRod=Eta${Conv}_FLN 
export Conf=Florianopolis
export Fct=48
export Fcts=000
export IntFct=1
export FInitBC=cpteta40
export Cond_Glob=TQ0126L028
export InitBC=6
export TInitBC=1
export IntPhisAcum=1.0
export TypRun=forecast
export slope=.true.
export vegflag=.true.
export sstflg=.false.
export postout=latlonnopack
export IntFig=3
export npr=8
export qtdtypsolo=9
export soilmoist=.false.
export prop1=1.0
export prop2=1.0
export prop3=1.0
export prop4=1.0
export npio_server=1

cd ${Eta_posfig}/scripts

${Eta_posfig}/scripts/Eta_PosDec ${Run_Date} ${Res}  ${LabRod} ${Conf} 0000 ${Fct} ${IntFig} ${Eta_grbctl} ${Eta_indsev}
${Eta_posfig}/scripts/Eta_Meteogr ${Run_Date} ${Res} ${LabRod} ${Conf} ${Eta_grbctl} ${Eta_indsev}
cd ../SkewT
${Eta_posfig}/SkewT/vttemp2_model.sh ${Run_Date} ${Res} ${LabRod} ${Conf} ${Eta_grbctl} 
