Skip to content

Add fraction_urea_n column to fertilizer_composition_data #3963

@AritraDey-Dev

Description

@AritraDey-Dev

fertilizer_composition_data has no dedicated column for urea-N, so urea content gets shoehorned into one of the existing columns inconsistently across rows.

For example, three rows that all describe urea-N encode it three different ways:

Three rows, chemically identical urea-N, three different encodings.

The fix is to add a fraction_urea_n column, re-encode the affected rows (urea / 46_00_00 / uan_32) so each N form lives in its own column, and update convert_swat_fert_table_to_pkg_df() to populate it from the SWAT source.

Downstream consumers that currently sum nh3_n + no3_n + organic_n to get total N will need to also include urea_n after the migration.

Surfaced during #3962; that PR's uan_32 row will get a one-line update once this column lands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions