# make flux correction files
make all


downscale_athf ../../data/grids/atmosphere/hist0000101.tst.nc 



# from Steven


./downscale_athf hist0000101.tst.nc fcor_spc38_climats_00011-00100.nc athf athf_spc38_clim_00011-00100.nc > athf.log

./downscale_athf hist0000101.tst.nc fcor_spc38_climats_00011-00100.nc atsf atsf_spc38_clim_00011-00100.nc > atsf.log

./downscale_tau_1p2 fcor_spc38_climats_00011-00100.nc tau_spc38_clim_00011-00100.nc

./generate_hfcor athf_spc38_clim_00011-00100.nc athf stfht.k28.clim.06901-07000.nc stfht longitude latitude hfcor.nc

./generate_hfcor atsf_spc38_clim_00011-00100.nc atsf stfsal.k28.clim.06901-07000.nc stfsal longitude latitude sfcor.nc

./generate_txcor tau_spc38_clim_00011-00100.nc taux ncep2_stress_ann_mid_mk3l_128_112_1p1.nc uflx lonuv latuv txcor.nc

./generate_txcor tau_spc38_clim_00011-00100.nc tauy ncep2_stress_ann_mid_mk3l_128_112_1p1.nc vflx lonuv latuv tycor.nc

./generate_sstcor noaa_oi_sst_v2_start_mk3l_agcm_1p0.nc sst longitude latitude sdtm_spc38_climats_00011-00100.nc dtm sst.k28.start.06901-07000.nc sst

./currents_start_128_112 ocuv.k28.clim.06901-07000.nc ocuv.k28.start.06901-07000.nc

./sss_start_128_112 sss.k28.clim.06901-07000.nc sss.k28.start.06901-07000.nc

./sst_start_128_112 sst.k28.clim.06901-07000.nc sst.k28.start.06901-07000.nc

./generate_ocuv ocuv.k28.start.06901-07000.nc ocu ocv longitude latitude

./generate_sssa sss.k28.start.06901-07000.nc sss longitude latitude
