{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Install BestiaPop" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "#!pip install bestiapop" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Import required packages" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import os\n", "import pandas as pd\n", "from csv import reader\n", "from bestiapop import bestiapop" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## BestiaPop argument explanation\n", "\n", "#### _`action`_\n", "* **OPTION 1:** `download-nc4-file`: it will only download a particular NetCDF4 file from the cloud to your local disk, the source can be specified with the `data_source` parameter.\n", "* **OPTION 2:** `convert-nc4`: it will only convert a local or cloud file from NC4 format to the output format specified with `output_type`.\n", "* **OPTION 3:** `generate-climate-file`: the default action, it will generate a particular climate file like MET (for APSIM) or WTH (for DSSAT) using the parameters passed in as years, climate variable, etc.\n", "\n", "#### _`coordinate_list`_\n", "It will look for the closest grid cell of 0.5° for nasapower and 0.05° for silo data.\n", "* **OPTION 1:** [ [ lat ] , [ lon ]...]\n", "* **OPTION 2:** lists of lat/lon pairs where the first value is `latitude` and the second value is `longitude` (you need to host your lat/lon list in some web server and then provide the url)\n", "\n", "#### _`data_source`_\n", "`silo` (Australia only) or `nasapower` (world wide).\n", "\n", "#### _`input_path`_\n", "If the NetCDF files to be processed are stored locally, this path will be used to look for all the files required to extract data from the different year, latitude and longitude ranges.\n", "\n", "#### _`climate_variables`_\n", "`'radiation'`, `'max_temp'`, `'min_temp'`, `'daily_rain’`\n", "\n", "#### _`year_range`_\n", "A starting and ending year separated by a dash, example: \"2012-2016“ .\n", "\n", "#### _`output_type`_\n", "`met`, `wth` or `csv`\n", "\n", "#### _`output_path`_\n", "The path where generated output files will be stored." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Example 1: Download MET file for two lat/lon combinations from NASAPOWER" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-06 13:55:31\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n", "\u001b[32m2021-06-06 13:55:31\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mGenerating DataFrames\u001b[0m\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Fetching data for -31.847869/-60.537849\n", "Total Progress: 0%| | 0/1 [00:00, ?it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-06 13:55:31\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for climate variable radiation\u001b[0m\n", "\u001b[32m2021-06-06 13:55:31\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:31\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing Variable radiation - Lat -31.847869 - Lon -60.537849 for Year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:31\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - Extracting data from NASA POWER Climate DataBase\n", "\u001b[32m2021-06-06 13:55:31\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mNeed to get data from the NASA Power Cloud\u001b[0m\n", "\u001b[32m2021-06-06 13:55:34\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for climate variable max_temp\u001b[0m\n", "\u001b[32m2021-06-06 13:55:34\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:34\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing Variable max_temp - Lat -31.847869 - Lon -60.537849 for Year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:34\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - Extracting data from NASA POWER Climate DataBase\n", "\u001b[32m2021-06-06 13:55:34\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mNeed to get data from the NASA Power Cloud\u001b[0m\n", "\u001b[32m2021-06-06 13:55:37\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for climate variable min_temp\u001b[0m\n", "\u001b[32m2021-06-06 13:55:37\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:37\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing Variable min_temp - Lat -31.847869 - Lon -60.537849 for Year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:37\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - Extracting data from NASA POWER Climate DataBase\n", "\u001b[32m2021-06-06 13:55:37\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mNeed to get data from the NASA Power Cloud\u001b[0m\n", "\u001b[32m2021-06-06 13:55:40\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for climate variable daily_rain\u001b[0m\n", "\u001b[32m2021-06-06 13:55:40\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:40\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing Variable daily_rain - Lat -31.847869 - Lon -60.537849 for Year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:40\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - Extracting data from NASA POWER Climate DataBase\n", "\u001b[32m2021-06-06 13:55:40\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mNeed to get data from the NASA Power Cloud\u001b[0m\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Total Progress: 100%|####################################################################| 1/1 [00:11<00:00, 11.86s/it]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-06 13:55:43\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n", "\u001b[32m2021-06-06 13:55:43\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mGenerating DataFrames\u001b[0m\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -32.487802/-58.345142\n", "Total Progress: 0%| | 0/1 [00:00, ?it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-06 13:55:43\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for climate variable radiation\u001b[0m\n", "\u001b[32m2021-06-06 13:55:43\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:43\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing Variable radiation - Lat -32.487802 - Lon -58.345142 for Year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:43\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - Extracting data from NASA POWER Climate DataBase\n", "\u001b[32m2021-06-06 13:55:43\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mNeed to get data from the NASA Power Cloud\u001b[0m\n", "\u001b[32m2021-06-06 13:55:46\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for climate variable max_temp\u001b[0m\n", "\u001b[32m2021-06-06 13:55:46\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:46\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing Variable max_temp - Lat -32.487802 - Lon -58.345142 for Year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:46\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - Extracting data from NASA POWER Climate DataBase\n", "\u001b[32m2021-06-06 13:55:46\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mNeed to get data from the NASA Power Cloud\u001b[0m\n", "\u001b[32m2021-06-06 13:55:49\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for climate variable min_temp\u001b[0m\n", "\u001b[32m2021-06-06 13:55:49\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:49\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing Variable min_temp - Lat -32.487802 - Lon -58.345142 for Year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:49\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - Extracting data from NASA POWER Climate DataBase\n", "\u001b[32m2021-06-06 13:55:49\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mNeed to get data from the NASA Power Cloud\u001b[0m\n", "\u001b[32m2021-06-06 13:55:52\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for climate variable daily_rain\u001b[0m\n", "\u001b[32m2021-06-06 13:55:52\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing data for year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:52\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mProcessing Variable daily_rain - Lat -32.487802 - Lon -58.345142 for Year 2020\u001b[0m\n", "\u001b[32m2021-06-06 13:55:52\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - Extracting data from NASA POWER Climate DataBase\n", "\u001b[32m2021-06-06 13:55:52\u001b[0m - \u001b[34mPOPBEAST.NASAPOWER_CONNECTOR\u001b[0m - \u001b[32mNeed to get data from the NASA Power Cloud\u001b[0m\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Total Progress: 100%|####################################################################| 1/1 [00:11<00:00, 11.59s/it]\n" ] } ], "source": [ "# Step 1: Define variables to pass in to Bestiapop\n", "coordinate_list = [[-31.847869, -60.537849],[-32.487802, -58.345142]] \n", "action='generate-climate-file'\n", "data_source='nasapower'\n", "year_range='2020-2020'\n", "climate_variables=['radiation', 'max_temp', 'min_temp', 'daily_rain']\n", "output_type='met'\n", "output_path=r'C:\\Users\\uqjojeda\\Dropbox\\testbestiapop\\test'\n", "\n", "# Step 2: Run BestiaPop and download data\n", "final_df = pd.DataFrame()\n", "\n", "for coord in coordinate_list:\n", " print('Fetching data for {}/{}'.format(coord[0], coord[1]))\n", " climate_data = bestiapop.CLIMATEBEAST(\n", " action='generate_met',\n", " data_source=data_source,\n", " output_path=output_path,\n", " output_type=output_type,\n", " input_path=None,\n", " climate_variables=climate_variables,\n", " year_range=year_range,\n", " lat_range=[coord[0]],\n", " lon_range=[coord[1]],\n", " multiprocessing=None\n", " )\n", " data = climate_data.process_records(action)\n", " final_df = final_df.append(data, ignore_index=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Example 2: Download MET file for a list of lat/lon combinations from NASAPOWER" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Step 1: Define variables to pass in to Bestiapop" ] }, { "cell_type": "code", "execution_count": 49, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:21:49\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Fetching data for -39.6/144.0\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 6.20it/s]\n", "Fetching data for -39.65/144.0\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:21:49\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 6.22it/s]\n", "Fetching data for -39.65/144.05\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:21:50\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 6.55it/s]\n", "Fetching data for -39.7/143.95\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:21:50\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 6.19it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:21:50\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -39.7/144.0\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 6.10it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:21:50\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -39.7/144.05\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 6.39it/s]\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:21:50\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Fetching data for -39.7/144.1\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 6.47it/s]\n", "Fetching data for -39.75/144.0\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:21:51\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 6.35it/s]\n", "Fetching data for -39.75/144.05\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:21:51\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 6.31it/s]\n", "Fetching data for -39.75/144.1\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:21:51\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to met format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 6.39it/s]\n" ] } ], "source": [ "# Step 1: Define variables to pass in to Bestiapop\n", "url = \"https://raw.githubusercontent.com/JJguri/bestiapop/master/sample-data/bpop_short_example.csv\"\n", "df = pd.read_csv(url)\n", "coordinate_list = df.values.tolist()\n", "action='generate-climate-file' \n", "data_source='silo'\n", "year_range='2020-2020'\n", "climate_variables=['radiation', 'max_temp', 'min_temp', 'daily_rain']\n", "output_type='met'\n", "output_path=r'C:\\Users\\uqjojeda\\Dropbox\\testbestiapop\\test'\n", "\n", "# Step 2: Run BestiaPop and download data\n", "final_df = pd.DataFrame()\n", "\n", "for coord in coordinate_list:\n", " print('Fetching data for {}/{}'.format(coord[0], coord[1]))\n", " climate_data = bestiapop.CLIMATEBEAST(\n", " action='generate_met',\n", " data_source=data_source,\n", " output_path=output_path,\n", " output_type=output_type,\n", " input_path=None,\n", " climate_variables=climate_variables,\n", " year_range=year_range,\n", " lat_range=[coord[0]],\n", " lon_range=[coord[1]],\n", " multiprocessing=None\n", " )\n", " data = climate_data.process_records(action)\n", " final_df = final_df.append(data, ignore_index=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Example 3: Download climate data for two lat/lon combinations from SILO and create dataframe " ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:03:22\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to dataframe format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Fetching data for -39.6/144\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 4.57it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:03:22\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to dataframe format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -39.65/144\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 4.38it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:03:22\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to dataframe format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -39.65/144.05\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 4.74it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:03:23\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to dataframe format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -39.7/143.95\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 4.45it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:03:23\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to dataframe format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -39.7/144\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 4.45it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:03:23\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to dataframe format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -39.7/144.05\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 4.35it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:03:23\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to dataframe format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -39.7/144.1\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 4.57it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:03:24\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to dataframe format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -39.75/144\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 4.50it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:03:24\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to dataframe format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -39.75/144.05\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 4.32it/s]" ] }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[32m2021-06-07 09:03:24\u001b[0m - \u001b[34mPOPBEAST\u001b[0m - Extracting data and converting to dataframe format\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n", "Fetching data for -39.75/144.1\n", "Fetching and Parsing Data: 100%|#########################################################| 1/1 [00:00<00:00, 4.40it/s]\n" ] }, { "data": { "text/html": [ "
\n", " | lon | \n", "lat | \n", "year | \n", "day | \n", "radn | \n", "maxt | \n", "mint | \n", "rain | \n", "
---|---|---|---|---|---|---|---|---|
0 | \n", "144.0 | \n", "-39.60 | \n", "2019 | \n", "1 | \n", "20.5 | \n", "21.0 | \n", "12.5 | \n", "0.0 | \n", "
1 | \n", "144.0 | \n", "-39.60 | \n", "2019 | \n", "2 | \n", "13.5 | \n", "20.6 | \n", "14.3 | \n", "0.0 | \n", "
2 | \n", "144.0 | \n", "-39.60 | \n", "2019 | \n", "3 | \n", "27.9 | \n", "26.2 | \n", "9.6 | \n", "0.0 | \n", "
3 | \n", "144.0 | \n", "-39.60 | \n", "2019 | \n", "4 | \n", "17.1 | \n", "29.3 | \n", "17.1 | \n", "0.0 | \n", "
4 | \n", "144.0 | \n", "-39.60 | \n", "2019 | \n", "5 | \n", "21.5 | \n", "20.4 | \n", "14.6 | \n", "0.0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
7305 | \n", "144.1 | \n", "-39.75 | \n", "2020 | \n", "362 | \n", "9.0 | \n", "22.1 | \n", "14.4 | \n", "0.2 | \n", "
7306 | \n", "144.1 | \n", "-39.75 | \n", "2020 | \n", "363 | \n", "27.1 | \n", "16.4 | \n", "9.8 | \n", "3.2 | \n", "
7307 | \n", "144.1 | \n", "-39.75 | \n", "2020 | \n", "364 | \n", "13.3 | \n", "18.8 | \n", "11.1 | \n", "0.0 | \n", "
7308 | \n", "144.1 | \n", "-39.75 | \n", "2020 | \n", "365 | \n", "16.2 | \n", "18.8 | \n", "13.0 | \n", "0.1 | \n", "
7309 | \n", "144.1 | \n", "-39.75 | \n", "2020 | \n", "366 | \n", "20.2 | \n", "20.8 | \n", "11.2 | \n", "0.3 | \n", "
7310 rows × 8 columns
\n", "\n", " | \n", " | \n", " | radn | \n", "maxt | \n", "mint | \n", "rain | \n", "
---|---|---|---|---|---|---|
lon | \n", "lat | \n", "year | \n", "\n", " | \n", " | \n", " | \n", " |
143.95 | \n", "-39.70 | \n", "2019 | \n", "4462.1 | \n", "17.4 | \n", "10.4 | \n", "720.9 | \n", "
2020 | \n", "4096.8 | \n", "17.0 | \n", "10.2 | \n", "923.0 | \n", "||
144.00 | \n", "-39.75 | \n", "2019 | \n", "4452.3 | \n", "17.4 | \n", "10.3 | \n", "797.4 | \n", "
2020 | \n", "4088.3 | \n", "17.0 | \n", "10.2 | \n", "957.7 | \n", "||
-39.70 | \n", "2019 | \n", "4465.3 | \n", "17.4 | \n", "10.4 | \n", "745.9 | \n", "|
2020 | \n", "4103.5 | \n", "17.1 | \n", "10.2 | \n", "948.0 | \n", "||
-39.65 | \n", "2019 | \n", "4482.1 | \n", "17.5 | \n", "10.4 | \n", "707.8 | \n", "|
2020 | \n", "4115.4 | \n", "17.1 | \n", "10.3 | \n", "946.1 | \n", "||
-39.60 | \n", "2019 | \n", "4498.2 | \n", "17.5 | \n", "10.5 | \n", "676.9 | \n", "|
2020 | \n", "4128.4 | \n", "17.1 | \n", "10.4 | \n", "938.1 | \n", "||
144.05 | \n", "-39.75 | \n", "2019 | \n", "4459.6 | \n", "17.3 | \n", "10.3 | \n", "833.8 | \n", "
2020 | \n", "4093.6 | \n", "16.9 | \n", "10.2 | \n", "977.7 | \n", "||
-39.70 | \n", "2019 | \n", "4470.8 | \n", "17.5 | \n", "10.4 | \n", "782.1 | \n", "|
2020 | \n", "4106.3 | \n", "17.1 | \n", "10.3 | \n", "962.6 | \n", "||
-39.65 | \n", "2019 | \n", "4488.6 | \n", "17.5 | \n", "10.5 | \n", "747.9 | \n", "|
2020 | \n", "4120.6 | \n", "17.1 | \n", "10.3 | \n", "963.2 | \n", "||
144.10 | \n", "-39.75 | \n", "2019 | \n", "4458.8 | \n", "17.5 | \n", "10.5 | \n", "851.5 | \n", "
2020 | \n", "4098.4 | \n", "17.1 | \n", "10.3 | \n", "984.2 | \n", "||
-39.70 | \n", "2019 | \n", "4471.3 | \n", "17.5 | \n", "10.5 | \n", "800.7 | \n", "|
2020 | \n", "4113.1 | \n", "17.1 | \n", "10.3 | \n", "980.6 | \n", "