1D differential encoding model scripts