+ "/home/walch/miniconda3/envs/rpy/lib/python3.7/site-packages/rpy2/rinterface/__init__.py:146: RRuntimeWarning: \"getThreads\" not available for .C() for package \"RevoUtilsMath\"\n",
+ "/home/walch/miniconda3/envs/rpy/lib/python3.7/site-packages/rpy2/robjects/pandas2ri.py:17: FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace.\n",
+ " from pandas.core.index import Index as PandasIndex\n"
+ ]
+ }
+ ],
"source": [
"import xarray as xr\n",
"import pandas as pd\n",
"import numpy as np\n",
"from rpy2.robjects import r, pandas2ri\n",
"\n",
"import os\n",
"import time\n",
"\n",
"# import gdal\n",
"\n",
"import matplotlib\n",
"%matplotlib notebook\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Create yearly files of daily GHI projected to LV03\n",
"1. Aggregate data as yearly files with daily data\n",
"2. Load yearly GHI files in WSG94 (grass)\n",
"3. Project GHI files to CH_LV03 using XXXXX\n",
"4. Convert to 3D raster and export as netcdf\n",
"5. Drop data based on precipitation raster & adjust coordinates (in python)\n",