Changeset 205 for trunk/procs/nc_put.pro
- Timestamp:
- 01/26/10 10:46:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/procs/nc_put.pro
r203 r205 203 203 204 204 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 206 208 ncdf_control, cdfid, /fill 207 209 … … 240 242 tid = ncdf_dimdef(cdfid, 'time', /UNLIMITED) 241 243 242 IF debug_w THEN print, ' dim check ', dim_check 244 IF debug_w THEN BEGIN 245 print, ' dim check ', dim_check 246 ENDIF 243 247 244 248 IF dim_check NE dim[0] THEN BEGIN … … 251 255 252 256 ; 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 254 260 ; IF strpos(type, 'x') NE -1 AND keyword_set(X) THEN BEGIN 255 261 IF strpos (type, 'xy') NE -1 THEN BEGIN … … 264 270 265 271 ; 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 267 275 IF strpos (type, 'xy') NE -1 THEN BEGIN 268 276 latid = ncdf_vardef(cdfid,'lat', [xid, yid], /FLOAT) … … 275 283 276 284 ; 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 278 288 IF zpos NE -1 AND keyword_set(Z) THEN BEGIN 279 289 vertid = ncdf_vardef(cdfid,z.name, [zid], /FLOAT) … … 286 296 287 297 ; 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 289 301 IF tpos NE -1 AND keyword_set(T) THEN BEGIN 290 302 mid = NCDF_VARDEF(cdfid, 'time', [tid], /long) … … 315 327 ENDELSE 316 328 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 319 333 320 334 ; field attributes 321 335 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 323 339 324 340 varn = strcompress(fld.short_name, /remove_all)
Note: See TracChangeset
for help on using the changeset viewer.