Ignore:
Timestamp:
03/26/14 11:58:56 (10 years ago)
Author:
pinsard
Message:

fix thanks to coding rules; typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/d2m_to_q2m_erai.pro

    r203 r204  
    121121;    % Program caused arithmetic error: Floating illegal operand 
    122122; 
    123 ; related to occurence of NaNf in ncdump output ? do no yet 
     123; related to occurrence of NaNf in ncdump output ? do no yet 
    124124; 
    125125; pk also see these error messages ... 
    126126; 
    127 ; check for NaN value in P return by reading Netcdf msl file 
    128 ; solution is may be to apply *mskout to q2m like  in interp* tools 
     127; check for NaN value in P return by reading netCDF msl file 
     128; solution is may be to apply *mskout to q2m like in interp* tools 
    129129; not yet done to keep close as possible to pk processing 
    130130; 
     
    198198nparam = N_PARAMS() 
    199199IF (nparam NE 2) THEN BEGIN 
    200 ras = report(['Incorrect number of arguments.' $ 
    201       + '!C' $ 
    202       + 'Usage : ' + usage]) 
    203       return, result 
     200    ras = report(['Incorrect number of arguments.' $ 
     201    + '!C' $ 
     202    + 'Usage : ' + usage]) 
     203    return, result 
    204204ENDIF 
    205205; 
    206206; test if ${PROJECT_OD} defined 
    207207CASE project_od_env OF 
    208   '' : BEGIN 
    209          msg = 'eee : ${PROJECT_OD} is not defined' 
    210          ras = report(msg) 
    211        return, result 
    212        END 
    213   ELSE: BEGIN 
    214           msg = 'iii : ${PROJECT_OD} is ' + project_od_env 
    215           ras = report(msg) 
    216         END 
    217  ENDCASE 
     208    '' : BEGIN 
     209        msg = 'eee : ${PROJECT_OD} is not defined' 
     210        ras = report(msg) 
     211        return, result 
     212    END 
     213    ELSE : BEGIN 
     214        msg = 'iii : ${PROJECT_OD} is ' + project_od_env 
     215        ras = report(msg) 
     216    END 
     217ENDCASE 
    218218; 
    219219; check if output data will be possible 
     
    222222; existence and protection for reading 
    223223IF (FILE_TEST(iodirout, /DIRECTORY, /EXECUTABLE, /READ) EQ 0) THEN BEGIN 
    224    msg = 'eee : the directory' + iodirout  + ' is not accessible.' 
    225    ras = report(msg) 
    226    return, result 
     224    msg = 'eee : the directory' + iodirout  + ' is not accessible.' 
     225    ras = report(msg) 
     226    return, result 
    227227ENDIF 
    228228; 
     
    242242fullfilename_d2m = isafile(iodirout + filename_d2m, NEW=0, /MUST_EXIST) 
    243243IF fullfilename_d2m[0] EQ '' THEN BEGIN 
    244    msg = 'eee : the file ' + fullfilename_d2m + ' was not found.' 
    245    ras = report(msg) 
    246    return, result 
     244    msg = 'eee : the file ' + fullfilename_d2m + ' was not found.' 
     245    ras = report(msg) 
     246    return, result 
    247247ENDIF 
    248248; 
     
    255255fullfilename_t2m = isafile(iodirout + filename_t2m, NEW=0, /MUST_EXIST) 
    256256IF fullfilename_t2m[0] EQ '' THEN BEGIN 
    257    msg = 'eee : the file ' + fullfilename_t2m + ' was not found.' 
    258    ras = report(msg) 
    259    return, result 
     257    msg = 'eee : the file ' + fullfilename_t2m + ' was not found.' 
     258    ras = report(msg) 
     259    return, result 
    260260ENDIF 
    261261; 
     
    268268fullfilename_msl = isafile(iodirout + filename_msl, NEW=0, /MUST_EXIST) 
    269269IF fullfilename_msl[0] EQ '' THEN BEGIN 
    270    msg = 'eee : the file ' + fullfilename_msl + ' was not found.' 
    271    ras = report(msg) 
    272    return, result 
     270    msg = 'eee : the file ' + fullfilename_msl + ' was not found.' 
     271    ras = report(msg) 
     272    return, result 
    273273ENDIF 
    274274; 
     
    278278; in order to avoid unexpected overwritten 
    279279IF (FILE_TEST(fullfilename_out) EQ 1) THEN BEGIN 
    280    msg = 'eee : the file ' + fullfilename_out  + ' already exists.' 
    281    ras = report(msg) 
    282    return, result 
     280    msg = 'eee : the file ' + fullfilename_out  + ' already exists.' 
     281    ras = report(msg) 
     282    return, result 
    283283ENDIF 
    284284; 
     
    351351; 
    352352ncfields = 'q2m[longitude,latitude,*time]=q2m:q2m_attr; ' $ 
    353                       + 'longitude[]=xlon:lon_attr; ' $ 
    354                       + 'latitude[]=ylat:lat_attr; ' $ 
    355                       + 'time[]=timein:time_attr ' $ 
    356                       + ' @ globattr' 
     353+ 'longitude[]=xlon:lon_attr; ' $ 
     354+ 'latitude[]=ylat:lat_attr; ' $ 
     355+ 'time[]=timein:time_attr ' $ 
     356+ ' @ globattr' 
    357357; 
    358358@ncdf_quickwrite 
Note: See TracChangeset for help on using the changeset viewer.