;*********************** ; read.profiler.ncl ;*********************** load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" ;*********************** begin ; code gets number of time steps and ranges and then loops through times. ; to see all variables, use ncdump -h from the command line ; ; this is sample code. filein= addfile ("dar2835.precip.minute.2006.0209.v2.cdf","r") radialvelocity=filein->radialvelocity dims=dimsizes( radialvelocity) ntimes=dims(0) nx=dims(1) print("n times: "+ntimes+" n x: "+nx) do itime=0,ntimes-1 radialvelocity_in=radialvelocity(itime,:) if (itime.lt.10)then print("printing 1st 10 time steps: radialvelocity value for time "+itime+" for x=0= "+radialvelocity_in(0)) end if end do end