2.9.14. Assign country codes, years, and time zones

For all source categories, Smkinven assigns country codes, years, and time zones to inventory files that do not contain this information in the inventory records.

Since most inventory formats do not include a column for country or year, the country code and year must be provided in header fields in the inventory. because most inventory formats do not include a column for country or year. Users can provide data for up to 10 countries using as many separate files, or separate headers within a single file, as needed. The inventory file formats listed in Section 8.2, “Inventory Files” provide a further description of these country-setting headers and the valid country codes.

Users can also provide multiple inventory years in a single Smkinven run. This is necessary in some cases when an inventory for one region (e.g., Canada or Mexico) is unavailable for the same year as the majority of the inventory region (e.g., the U.S.). Smkinven stores the inventory year as part of the source attributes.

In addition to country codes and years, Smkinven assigns a time zone to each source based on the county associated with the source. Smkinven uses the COSTCY file to get this information. It matches the county code from the inventory to the county code in this file. If a county code included in the inventory is missing from this file, or if the time zone is not provided in the COSTCY file, Smkinven uses the SMK_DEFAULT_TZONE setting to obtain a default time zone for sources in such a county. In some cases, the time zone set in the COSTCY file is an approximation, since counties that are bisected by two time zones have only the predominant zone represented in this file.