Published June 25, 2021 | Version v1
Software Open

Supporting Data and Code for "Managing to Climatology: Improving semi-arid agricultural risk management using crop models and a dense meteorological network"

  • 1. Agricultural Research Service
  • 2. Texas Tech University

Description

Without reliable seasonal climate forecasts, farmers and managers in other weather-sensitive sectors might adopt practices that are optimal for recent climate conditions. To demonstrate this principle, crop simulation models driven by a dense meteorological network were used to identify climate-optimal planting dates for U.S. Southern High Plains (SHP) un-irrigated agriculture. This method converted large samples of SHP growing season weather outcomes into climate-representative cotton and sorghum yield distributions over a range of planting dates. Best planting dates were defined as those that maximized median cotton lint (April 24) and sorghum grain (July 1) yields. Those optimal yield distributions were then converted into corresponding profit distributions reflecting 2005-2019 commodity prices and fixed production costs. Both crop's profitability under variable price conditions and current SHP climate conditions were then compared based on median profits and loss probability, and through stochastic dominance analyses that assumed a slightly risk-averse producer.

Notes

Supporting Material for: "Managing to Climatology: Improving semi-arid agricultural risk management using crop models and a dense meteorological network"

1: Computing and software requirements

    These scripts and associated fortran programs were run in a OSX (10.14.5) C-Shell command line environment. 

    The plotting scripts require Generic Mapping Tools (GMT: https://www.soest.hawaii.edu/gmt/) 

    The executables for the fortran source code is included. If they don't work on your Unix-like platform you
    will need to compile them. Because the simulated yield data is stored in two netcdf files you will also have to
    install and link with the netcdf software library. A makefile is included but would only work if you are running
    Absoft Fortran ver 2018.0 and netcdf 4. Even then (in my experience) its unlikely that everything would compile
    and work as is. Otherwise, the makefile can used as a template for whatever Unix platform you are using.

    If you just want to see the output of the fortran programs, it is contained in the various log files 
    that are included, i.e., 

    Fig3abcd.log
    Fig3efgh.log
    Fig4a.log
    Fig4b.log
    Fig5a.log
    Fig5b.log
    Fig6ab.log
    Fig6cd.log
    Fig7.log
    calc_CvsS_sdrf.11.25.0.000.0.0003.log  (For Fig. 8a)
    calc_CvsS_sdrf.32.25.0.000.0.0003.log  (For Fig. 8b)
    mo_names.out

    The weather data necessary to plot two of the the paper's figures (Fig. 5c) can't be re-distributed per
    an agreement with Texas Tech University.

    Each script plots via the OSX Preview utility.

CONTENTS

2: program_flow.ppt Powerpoint file. 

   Illustrates the association between scripts,input files, fortran programs, output files and GMT utilities.

3: Plotting Scripts

   PLTFIG2MAP.scr
   PLTFIG3abcd.scr
   PLTFIG3efgh.scr
   PLTFIG4a.scr
   PLTFIG4b.scr
   PLTFIG5a.scr
   PLTFIG5b.scr
   PLTFIG6ab.scr
   PLTFIG6cd.scr
   PLTFIG7.scr
   PLTFIG8a.scr
   PLTFIG8b.scr
   CALC_CvsS_SDRF.scr
   CALC_COT_KWALLIS.scr
   CALC_SOR_KWALLIS.scr

4: Simulated Rainfed Cotton and Sorghum yields in netcdf files.
   
   SCYIELD.PDATE.NC (DSSAT CROPGRO-Cotton simulations 21 Stations X 12 Years)
   SRYIELD.PDATE2.NC (DSSAT CERES-Sorghum simulations 21 Stations X 12 Years)

5: Other data files.

   cCosts.dat  -- Dryland cotton production costs
   sCosts.dat  -- Dryland sorghum production costs
   NASS_Prices_2000-2019.log -- NASS Texas monthly cotton and sorghum prices
   nasslint_dists.txt -- NASS Dist 11 & 12 dryland cotton  yield survey percentiles
   nass_sgx_dists.txt -- NASS Dist 11 & 12 dryland sorghum yield survey percentiles

6: Fortran source code.

   calc_CvsS_ploss.f
   calc_CvsS_sdrf.f
   calc_allcotyld.f
   calc_allsoryld.f
   calc_cot_pft.f
   calc_sor_pft.f
   plt_sdrf.f
   dhbarf4.f  Generates GMT input files for drawing horizontal bar plots
   dvbarf4.f  Generates GMT input files for drawing vertical bar plots

Files

QOpen-2021-013-Supplement.zip

Files (13.3 MB)

Name Size Download all
md5:cf34ef9bf2c7905f98d77b6be16f2f47
13.3 MB Preview Download

Additional details

Related works

Is source of
10.5061/dryad.37pvmcvfx (DOI)