The interpretation of total line intensities from optically thin gases