changed logic in header write, not the translate script for NCEAS will now be wrong