This error message indicates that a non-constant expression is being used where a constant expression is expected.

The specific error occurs in the file 'module_netcdf_nf_data.F90' on line 167. Without seeing the code, the exact cause is difficult to determine.

However, common causes include using a variable instead of a constant in an array size declaration or initialization, or using a variable instead of a constant in a case statement.

To fix the error, identify the non-constant expression and replace it with a constant expression.