cf_to_proj

metpy.io.cdm.cf_to_proj(var)[source]

Convert a Variable with projection information to a Proj.4 Projection instance.

The attributes of this Variable must conform to the Climate and Forecasting (CF) netCDF conventions.

Parameters:var (Variable) – The projection variable with appropriate attributes.