Changeset 205 for trunk/procs/nc_put.pro


Ignore:
Timestamp:
01/26/10 10:46:13 (14 years ago)
Author:
pinsard
Message:

homegenize THEN BEGIN ... ENDIF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/procs/nc_put.pro

    r203 r205  
    203203 
    204204   cdfid = ncdf_create(ncdf_db+file_name, /clobber) 
    205    IF debug_w THEN print, '    type,cdfid = ', type, cdfid 
     205   IF debug_w THEN BEGIN 
     206    print, '    type,cdfid = ', type, cdfid 
     207   ENDIF 
    206208   ncdf_control, cdfid, /fill 
    207209 
     
    240242   tid = ncdf_dimdef(cdfid, 'time', /UNLIMITED) 
    241243 
    242    IF debug_w THEN print, '    dim check ', dim_check 
     244   IF debug_w THEN BEGIN 
     245    print, '    dim check ', dim_check 
     246   ENDIF 
    243247 
    244248   IF dim_check NE dim[0] THEN BEGIN 
     
    251255 
    252256   ; horizontal zonal axis 
    253    IF debug_w THEN print, '    building zonal axis, xid: ', xid 
     257   IF debug_w THEN BEGIN 
     258    print, '    building zonal axis, xid: ', xid 
     259   ENDIF 
    254260;   IF strpos(type, 'x') NE -1 AND keyword_set(X) THEN BEGIN 
    255261      IF strpos (type, 'xy') NE -1 THEN BEGIN 
     
    264270 
    265271   ; horizontal meridional axis 
    266    IF debug_w THEN print, '    building Y axis, yid: ', yid 
     272   IF debug_w THEN BEGIN 
     273    print, '    building Y axis, yid: ', yid 
     274   ENDIF 
    267275   IF strpos (type, 'xy') NE -1 THEN BEGIN 
    268276      latid = ncdf_vardef(cdfid,'lat', [xid, yid], /FLOAT) 
     
    275283 
    276284   ; vertical axis 
    277    IF debug_w THEN print, '    building Z axis, zid: ', zid 
     285   IF debug_w THEN BEGIN 
     286    print, '    building Z axis, zid: ', zid 
     287   ENDIF 
    278288   IF zpos NE -1 AND keyword_set(Z) THEN BEGIN 
    279289      vertid = ncdf_vardef(cdfid,z.name, [zid], /FLOAT) 
     
    286296 
    287297   ; time axis 
    288    IF debug_w THEN print, '    building T axis, tid: ', tid 
     298   IF debug_w THEN BEGIN 
     299    print, '    building T axis, tid: ', tid 
     300   ENDIF 
    289301   IF tpos NE -1 AND keyword_set(T) THEN BEGIN 
    290302      mid = NCDF_VARDEF(cdfid, 'time', [tid], /long) 
     
    315327   ENDELSE 
    316328 
    317    IF debug_w THEN print, '    test 1 fld.short_name = ', fld.short_name 
    318    IF debug_w THEN print, '    swx,y,z,t = ', swx, swy, swz, swt 
     329   IF debug_w THEN BEGIN 
     330    print, '    test 1 fld.short_name = ', fld.short_name 
     331    print, '    swx,y,z,t = ', swx, swy, swz, swt 
     332   ENDIF 
    319333 
    320334; field attributes 
    321335 
    322    IF debug_w THEN print, '    type, size fld.data ', type, size(fld.data) 
     336   IF debug_w THEN BEGIN 
     337    print, '    type, size fld.data ', type, size(fld.data) 
     338   ENDIF 
    323339 
    324340   varn = strcompress(fld.short_name, /remove_all) 
Note: See TracChangeset for help on using the changeset viewer.