Code developed for the USGS National Integrated Drought Information System (NIDIS)