wrf.get_proj_params¶
- wrf.get_proj_params(wrfin)¶
Return a tuple of latitude, longitude, and projection parameters from a WRF output file object or a sequence of WRF output file objects.
- Parameters:
wrfin (
netCDF4.Dataset
,Nio.NioFile
, or an iterable) – WRF-ARW NetCDF data as anetCDF4.Dataset
,Nio.NioFile
or an iterable sequence of the aforementioned types.timeidx (
int
orwrf.ALL_TIMES
, optional) – The desired time index. This value can be a positive integer, negative integer, orwrf.ALL_TIMES
(an alias for None) to return all times in the file or sequence. Default is 0.varname (
str
, optional) – The variable name to extract the coordinate variable names from. Default is None, which will use the default coordinate variable names (‘XLAT’, ‘XLONG’).
- Returns:
A tuple of the latitude coordinate variable, longitude coordinate, and global projection attributes.
- Return type: