Changeset 155 for trunk/src/tropflux.sh


Ignore:
Timestamp:
03/06/12 14:29:04 (12 years ago)
Author:
pinsard
Message:

interp_erai_t2m is now a function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tropflux.sh

    r153 r155  
    6565#   $ tropflux.sh -b 20060801 -e 20060802 
    6666# 
     67# A more global example:: 
     68# 
     69#   $ tropflux.sh -b 19890101 -e 20091231 
     70# 
    6771# And look at log file with :: 
    6872# 
     
    106110# 
    107111# $URL$ 
     112# 
     113# - pinsard 20120306 
     114# 
     115#   * create a pro IDL program to introduce LOGICAL_PREDICATE 
     116#     thanks to http://www.idlcoyote.com/code_tips/bitwiselogical.html 
    108117# 
    109118# - pinsard 20120305 
     
    267276# 
    268277cat >> ${PROJECT}/src/tropflux_${$}.pro << EOF 
    269 .compile file_interp 
     278pro tropflux_${$} 
     279compile_opt idl2, strictarrsubs, logical_predicate 
    270280result = oaflux_mask_30n30s() 
    271 if (result NE 0) THEN BEGIN 
    272    msg = 'eee : pb after oaflux_mask_30n30s' 
     281IF result < 0 THEN BEGIN 
     282   msg = 'eee : pb after oaflux_mask_30n30s' + string(result) 
    273283   err = report(msg) 
    274284   exit 
     
    278288;interp_erai_msl_1989_2009 
    279289;interp_erai_sst_1989_2009 
    280 ;interp_erai_t2m_1989_2009 
     290result = interp_erai_t2m(${yyyymmddb}, ${yyyymmdde}) 
     291IF result < 0 THEN BEGIN 
     292   msg = 'eee : pb after interp_erai_t2m' + string(result) 
     293   err = report(msg) 
     294   exit 
     295ENDIF 
    281296;interp_erai_ws_1989_2009 
    282297;interp_olr_30n30s_1989_2009 
     
    284299;++Program caused arithmetic error: Floating overflow 
    285300;++ Program caused arithmetic error: Floating illegal operand 
    286 .compile TropFlux_swr_DT_19890101_20071231 
    287 tropflux_swr_dt_19890101_20071231 
    288 .compile TropFlux_swr_NRT_19890101_20091231 
    289 tropflux_swr_nrt_19890101_20091231 
    290 .compile TropFlux_swr_BLND_19890101_20091231 
    291 tropflux_swr_blnd_19890101_20091231 
    292 lwr_correction_ncdf 
    293 q2m_correction_ncdf 
    294 sst_correction_ncdf 
    295 t2m_correction_ncdf 
    296 ws_correction_ncdf 
    297 cronin_gustiness_ncdf 
    298 .compile TropFlux_19890101_20091231 
    299 tropflux_19890101_20091231 
    300 .compile TropFlux_NRT_ncdf 
    301 tropflux_nrt_ncdf 
    302 exit 
     301;.compile TropFlux_swr_DT_19890101_20071231 
     302;tropflux_swr_dt_19890101_20071231 
     303;.compile TropFlux_swr_NRT_19890101_20091231 
     304;tropflux_swr_nrt_19890101_20091231 
     305;.compile TropFlux_swr_BLND_19890101_20091231 
     306;tropflux_swr_blnd_19890101_20091231 
     307;lwr_correction_ncdf 
     308;q2m_correction_ncdf 
     309;sst_correction_ncdf 
     310;t2m_correction_ncdf 
     311;ws_correction_ncdf 
     312;cronin_gustiness_ncdf 
     313;.compile TropFlux_19890101_20091231 
     314;tropflux_19890101_20091231 
     315;.compile TropFlux_NRT_ncdf 
     316;tropflux_nrt_ncdf 
     317end 
    303318EOF 
    304319# 
    305320# run IDL or equivalent 
    306321${IDL_CMD} << EOF >> ${log} 2>&1 
    307 @tropflux_${$} 
     322.compile file_interp 
     323tropflux_${$} 
    308324EOF 
    309325status=${?} 
Note: See TracChangeset for help on using the changeset viewer.