# N2PDat Script

Converts a data set in Nonmem format to PoPy format. See Nonmem to PoPy Data conversions using P2NDAT and N2PDAT Scripts for a walk through example.

## Full Structure of a N2PDat Script

- METHOD_OPTIONS
  - py_module
- FILE_PATHS
  - input_nonmem_file
  - output_popy_file
- INPUT_NONMEM_FIELDS
  - comment_prefix
  - column_names
  - date_field
  - date_format
  - time_field
  - id_field
  - evid_field
  - dv_field
  - mdv_field
  - amt_field
  - rate_field
  - dur_field
  - cmt_field
  - obs_cmt_numbers
  - dose_cmt_numbers
- OUTPUT_POPY_FIELDS
  - time_field
  - id_field
  - type_field
  - dv_fields
  - amt_fields
  - rate_fields
  - dur_fields
  - dose_labels
- OUTPUT_OPTIONS
  - drop_fields