S4C L4C Agricultural Practices Failing

Hello,

When we try to run a custom job for S4C L4C Agricultural Practices it is failing with the following error code:

Error checking S4C_L4C preconditions for site nl. The practice NA does not have a configured practices file for year 2020!

I can’t attach our files as I’m new, but I’ll post the config text and a few rows from the practices csv. I’m not sure if there’s anything else to add here for debugging. (Keep in mind in our .csv file the dates are in the wrong format - but we do save it every time in the right format - it’s just when we open it again it defaults the our normal format).

====Config

[COMMON]

Nothing here yet

[DEFAULT_TIME_SERIES_ANALYSIS_PARAMS]

IMPORTANT: Please do not remove any of these keys from this section. Just set them to a value or to nothing

OPTTHRVEGCYCLE=350
NDVIDW=300
NDVIUP=350
NDVISTEP=5
OPTTHRMIN=100
COHTHRBASE=0.05
COHTHRHIGH=0.15
COHTHRABS=0.75
AMPTHRMIN=0.1
CATCHMAIN="{YEAR}-08-15" CATCHPERIOD=56 CATCHPERIODSTART="{YEAR}-08-15"
CATCHCROPISMAIN=""
CATCHPROPORTION=""
EFANDVITHR=325
EFANDVIUP=400
EFANDVIDW=300
EFACOHCHANGE=0.2
EFACOHVALUE=0.7
EFANDVIMIN="-10000"
EFAAMPTHR="-10000"
STDDEVINAMPTHR=1
OPTTHRBUFDEN=4
AMPTHRBREAKDEN=6
AMPTHRVALDEN=2
FLMARKSTARTDATE="{YEAR}-08-15" FLMARKSTENDDATE="{YEAR}-08-15"

[CC_TIME_SERIES_ANALYSIS_PARAMS]

Overwrite the needed default values here

[FL_TIME_SERIES_ANALYSIS_PARAMS]

Overwrite the needed default values here

[NFC_TIME_SERIES_ANALYSIS_PARAMS]

Overwrite the needed default values here

[NA_TIME_SERIES_ANALYSIS_PARAMS]
NA_NDVIUP=500
NA_AMPTHRMIN=0.2
NA_COHTHRBASE=0.1
NA_COHTHRABS=0.7
NA_AMPTHRBREAKDEN=3
NA_AMPTHRVALDEN=3

NA_EFANDVITHR="-10000"
NA_EFANDVIUP="-10000"
NA_EFANDVIDW="-10000"
NA_EFACOHCHANGE="-10000"
NA_EFACOHVALUE="-10000"

====Practices

FIELD_ID,MAIN_CROP,VEG_START,H_START,H_END,PRACTICE,P_TYPE,P_START,P_END
1526149,NA,5/20/2020,9/10/2020,10/10/2020,NA,NA,NA,NA
1526160,NA,5/20/2020,9/10/2020,10/10/2020,NA,NA,NA,NA
1526170,NA,5/20/2020,9/10/2020,10/10/2020,NA,NA,NA,NA
1526171,NA,5/20/2020,9/10/2020,10/10/2020,NA,NA,NA,NA
1526172,NA,5/20/2020,9/10/2020,10/10/2020,NA,NA,NA,NA
1526182,NA,5/20/2020,9/10/2020,10/10/2020,NA,NA,NA,NA
1526183,NA,5/20/2020,9/10/2020,10/10/2020,NA,NA,NA,NA
1526197,NA,5/20/2020,9/10/2020,10/10/2020,NA,NA,NA,NA
1526200,NA,5/20/2020,9/10/2020,10/10/2020,NA,NA,NA,NA

Hello,
The error may come from the wrong upload of input data (config file+input table).
The only problem I see that may cause the error is that the dates that you provide in your Input table should be YYYY/MM/DD and not DD/MM/YYYY … But I’m not sure.

You can see if the upload is ok either

  • by looking in the monitoring tab
  • by looking in the /mnt/archiveagric_practices_files/{site_name}/{year} folder : there should be a configuration file in the config folder and a table with values created in the ts_input_tables/NA/ folder.
  • by looking in the db (psql -U admin sen4cap) if your table was well imported (select * from l4c_practices;)(attention you may need to filter a bit the results if you have more than one site and one practice)

I hope it help,
Diane