Affiliation:
1. Research Institute for the Environment and Livelihoods and Faculty of Science and Technology Charles Darwin University Casuarina Australia
2. National Centre for Groundwater Research and Training Bedford Park Australia
3. Centre for Hydrogeology and Geothermics University of Neuchâtel Neuchâtel Switzerland
Abstract
AbstractArtificial intelligence (AI) tools, such as ChatGPT, have already changed the way that many industries operate. Much of the recent discussion surrounding AI tools has focused on their ability to generate text and the associated ethical concerns. Recent developments with the ChatGPT Code Interpreter, now called the Advanced Data Analysis plugin, demonstrate that AI's growing abilities in the generation, translation and adaptation of computer scripts also offer significant potential to change the way that data analyses are conducted. We demonstrate the new capabilities of ChatGPT, providing four worked examples of prompt‐based generation of Python scripts to analyse hydrological datasets. Our examples include (1) converting R functions to Python to perform baseflow separation, (2) converting MATLAB functions to Python to ‘web scrape’ temperature data, (3) creating a correlation matrix of major ion groundwater data, and (4) presenting boxplots of river flow data. We discuss the significant opportunities, current limitations and concerns relating to the use of ChatGPT in hydrological data analyses.
Subject
Water Science and Technology
Reference23 articles.
1. Scripting MODFLOW Model Development Using Python and FloPy
2. Barros J. M.(2021).Get‐historical‐weather‐data.https://github.com/jmbarrojr/get-historical-weather-data. Accessed 7 Sep 2023.
3. Potential Use of Chat GPT in Global Warming
4. Bureau of Meteorology. (2023a).Australian groundwater explorer: Water Information: Bureau of Meteorology.http://www.bom.gov.au/water/groundwater/explorer/map.shtml. Accessed 23 Aug 2023.
5. Bureau of Meteorology. (2023b).Water data online: Water information: Bureau of Meteorology.http://www.bom.gov.au/waterdata/. Accessed 23 Aug 2023.