PyNGL Home > Functions > System tools


Returns full path names for selected abbreviated names.


pname = Ngl.pynglpath(name)



The abbreviated name for which you want a directory path returned.

Return value


The full path name for the input abbreviated name.


This function returns full path names for directories used by PyNGL. Certain default path names can be overridden by setting specified environment variables. See the table below for the abbreviated names, and the overriding environment variable.

Argument (string) Overriding environment variable Default Description
colormaps PYNGL_COLORMAPS $(PYNGL_NCARG)/colormaps Location of PyNGL colormaps.
data Not user-settable $(PYNGL_NCARG)/data Location of data files for the examples.
examples Not user-settable $(PYNGL_NCARG)/pynglex Location of where the "pynglex" examples are stored.
grib2_codetables NIO_GRIB2_CODETABLES $(PYNGL_NCARG)/grib2_codetables Location of where the GRIB2 code tables are stored.
ncarg PYNGL_NCARG sys.prefix + "/lib/python" + sys.version[:3] + "/site-packages/PyNGL/ncarg" Location of supplemental directories, like databases, examples, etc.
rangs PYNGL_RANGS $(PYNGL_NCARG)/rangs Location of the RANGS/GSHHS database (not included by default).
sysresfile PYNGL_SYSRESFILE $(PYNGL_NCARG)/sysresfile Location of the system resource file.
tmp TMPDIR /tmp The directory used for temporary files.
usrresfile PYNGL_USRRESFILE ~/.hluresfile Location of user's global resource settings file.


See or any one of the pynglex examples that open a data file, like