Menu

#61 using $papco_dlnk in papco_data_cache confusion

open
nobody
None
5
2013-01-04
2007-08-20
No

If a developer uses $PAPCO_DLNK in a local file system reference to papco_data_cache, a confusing situation results. The local file system will do listings, which are then trimmed so that the beginning of each filename is clipped: CRRES_H0_MEA_%Y%m%d_V%2v.cdf -> H0_MEA_19900728_V01.cdf .

Here are Reiner's comments:
"""
Selecting the CRRES MEA data, the file template gets set correctly, to
CRRES_H0_MEA_%Y%m%d_V%2v.cdf

and the data cache tool widget reports that correctly.

The local file list returned however has filenames like H0_MEA_19910928_V01.cdf
with the 'CRRES_" missing....

and then the data cashe routine fails with the message
% PAPCO_DATA_CACHE::RANGE: file doesn't appear to belong to cache:
H0_MEA_19900728_V01.cdf
"""

The clipped filenames are not part of the local file system, so it crashes.

Discussion