NCL Home >
Documentation >
Functions >
WRF,
File IO
wrf_user_list_times
Extracts the list of available times in the ARW WRF model output.
Available in version 4.3.1 or later.
Prototype
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl" function wrf_user_list_times ( nc_file : file ) return_val [*] : string
Arguments
nc_fileReference to an input netCDF file opened with addfile.
Return value
A list of available times in the input file.
Description
Extract the times in the input file.
wrf_user_list_times is part of a library of functions and procedures in WRFUserARW.ncl written to help users plot ARW WRF model data.
WRF-related questions should be sent to wrfhelp@ucar.edu.
See Also
See the full list of WRF functions.
Examples
Example 1
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl" a = addfile("wrfout_d01_2000-01-24_12:00:00.nc","r") times = wrf_user_list_times(a) ; get times in the file ntimes = dimsizes(times) ; number of times in the file print("There are " +ntimes+ " times in this file") print( times )You can see some other example scripts and their resultant images at:
http://www.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/