The codes are written by Dr. Ehsan Najafi during his PhD candidacy at the National Oceanic and Atmospheric Administration Cooperative Science Center for Earth System Sciences and Remote Sensing Technologies (NOAA CESSRST) of the City University of New York (CUNY). Using these codes you can plot the figures of the article entitled “Larger-scale ocean-atmospheric patterns drive synergistic variability and volatility of global wheat yields“ written by Dr. Ehsan Najafi, Dr. Indrani Pal and Dr. Reza Khanbilvardi. This paper has been published in the Nature-Scientific Reports. For any inquiry regarding the codes contact Dr. Ehsan Najafi: ehs.najafi@gmail.com For any inquiry regarding the paper contact Dr. Indrani Pal: ipal@ccny.cuny.edu If you have any problem to download the codes contact the center: noaa-crest@ccny.cuny.edu Acknowledgment The authors acknowledge the funding for this work provided by NOAA-CESSRST under the Cooperative Agreement Grant #: NA16SEC4810008. The authors would like to thank The City College of New York, NOAA-CESSRST program and NOAA Office of Education, Educational Partnership Program for full fellowship support for Ehsan Najafi of CESSRST student. The statements contained within the manuscript/research article are not the opinions of the funding agency or the U.S. government, but reflect the author’s opinions.