Changeset 13 for trunk/procs/nc_put.pro


Ignore:
Timestamp:
11/27/07 18:01:34 (16 years ago)
Author:
kolasinski
Message:

Add some debug_w in nc_build and nc_put

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/procs/nc_put.pro

    r2 r13  
    1111;     x.name, x.units, x.long_name, x.data (+t.calendar and t.origin for time) 
    1212; Global = global attributes: conventions, title, origin 
     13   IF debug_w THEN print, ' ' 
     14   IF debug_w THEN print, '  ENTER nc_put...' 
    1315 
    1416   dim = size(fld.data) 
     
    2022 
    2123   cdfid = ncdf_create(ncdf_db+file_name, /clobber) 
    22 ;   print, type, cdfid 
     24   IF debug_w THEN print, '    type,cdfid = ', type, cdfid 
    2325   ncdf_control, cdfid, /fill 
    2426 
     
    129131   ENDELSE  
    130132 
    131    IF debug_w THEN print, ' test 1 fld.short_name in nc_put ', fld.short_name 
     133   IF debug_w THEN print, '    test 1 fld.short_name  = ', fld.short_name 
     134   IF debug_w THEN print, '    swx,y,z,t  = ', swx, swy, swz, swt 
    132135 
    133136; field attributes 
     
    193196   END  
    194197   IF swt EQ 1 THEN BEGIN 
    195       print, '       writing time, size', size (time_data) 
     198      print, '       writing time, size=', size (time_data) 
    196199      NCDF_VARPUT, cdfid, mid, time_data 
    197200   END  
     
    213216 
    214217    NCDF_CLOSE, cdfid 
     218    IF debug_w THEN print, '  ...EXIT nc_put' 
    215219 
    216220END  
Note: See TracChangeset for help on using the changeset viewer.