pywgrib2_xr.utils.remotepath

pywgrib2_xr.utils.remotepath(file, cachedir='/home/george/.cache/pywgrib2')[source]

Returns path to file.

Tries data directory first, then cache, downloads file from ftpprd as the last resort.

Parameters
  • file (str) – File name.

  • cachedir (str) – Cache directory. Default is ~/.cache/pywgrib2. The directory is created if it does not exist.

Returns

Absolute path to file.

Return type

str