"
]
@@ -747,7 +747,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "### Geospatial Cell Temperature Calculation"
+ "## Geospatial Cell Temperature Calculation\n",
+ "As shown below, we have two options, we can choose to provide a template that is generated by a function which supports autotemplating. Or we can provide the function to `geospatial.analysis` and let it generate a template internally.\n",
+ "\n",
+ "### Providing a Template with `Geospatial.auto_template`"
]
},
{
@@ -1156,11 +1159,11 @@
" * longitude (longitude) float64 80B -106.4 -106.3 -106.3 ... -105.9 -105.9\n",
" * time (time) datetime64[ns] 140kB 2022-01-01 ... 2022-12-31T23:30:00\n",
"Data variables:\n",
- " cell (time, latitude, longitude) float64 11MB nan nan nan ... nan nan
"
],
"text/plain": [
" Size: 11MB\n",
@@ -1251,7 +1254,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "### Geospatial Module Temperature Calculation"
+ "### Analysis Without Providing a Template\n",
+ "\n",
+ "If a function is supported by `geospatial.auto_template` we do not need to create a template outside of the function as shown in the cell above. We can simply pass the function to `geospatial.analysis` and it will create a template for us."
]
},
{
@@ -1660,11 +1665,11 @@
" * longitude (longitude) float64 80B -106.4 -106.3 -106.3 ... -105.9 -105.9\n",
" * time (time) datetime64[ns] 140kB 2022-01-01 ... 2022-12-31T23:30:00\n",
"Data variables:\n",
- " module (time, latitude, longitude) float64 11MB nan nan nan ... nan nan
"
- ],
- "text/plain": [
- " Size: 67MB\n",
- "Dimensions: (latitude: 8, longitude: 10, time: 17520)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 64B 39.41 39.45 39.53 ... 39.81 39.89\n",
- " * longitude (longitude) float64 80B -106.4 -106.3 ... -105.9 -105.9\n",
- " * time (time) datetime64[ns] 140kB 2022-01-01 ... 2022-12-31...\n",
- "Data variables:\n",
- " apparent_zenith (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " zenith (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " apparent_elevation (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " elevation (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " azimuth (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " equation_of_time (time, latitude, longitude) float64 11MB nan nan ... nan"
- ]
- },
- "execution_count": 10,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "solar_position_template = pvdeg.geospatial.auto_template(\n",
- " func=pvdeg.spectral.solar_position,\n",
- " ds_gids=geo_weather\n",
- ")\n",
- "\n",
- "pvdeg.geospatial.analysis(\n",
- " weather_ds=geo_weather,\n",
- " meta_df=geo_meta,\n",
- " func=pvdeg.spectral.solar_position,\n",
- " template=solar_position_template\n",
- ")"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Geospatial POA Irradiance Calculation"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 11,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "The array tilt angle was not provided, therefore the latitude tilt of 39.9 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.9 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.7 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.8 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.8 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.4 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.5 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.4 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.6 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.5 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.6 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n"
- ]
- },
- {
- "data": {
- "text/html": [
- "
\n",
- "
<xarray.Dataset> Size: 56MB\n",
- "Dimensions: (latitude: 8, longitude: 10, time: 17520)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 64B 39.41 39.45 39.53 ... 39.81 39.89\n",
- " * longitude (longitude) float64 80B -106.4 -106.3 ... -105.9 -105.9\n",
- " * time (time) datetime64[ns] 140kB 2022-01-01 ... 2022-12-31...\n",
- "Data variables:\n",
- " poa_global (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " poa_direct (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " poa_diffuse (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " poa_sky_diffuse (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " poa_ground_diffuse (time, latitude, longitude) float64 11MB nan nan ... nan
"
- ],
- "text/plain": [
- " Size: 56MB\n",
- "Dimensions: (latitude: 8, longitude: 10, time: 17520)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 64B 39.41 39.45 39.53 ... 39.81 39.89\n",
- " * longitude (longitude) float64 80B -106.4 -106.3 ... -105.9 -105.9\n",
- " * time (time) datetime64[ns] 140kB 2022-01-01 ... 2022-12-31...\n",
- "Data variables:\n",
- " poa_global (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " poa_direct (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " poa_diffuse (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " poa_sky_diffuse (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " poa_ground_diffuse (time, latitude, longitude) float64 11MB nan nan ... nan"
- ]
- },
- "execution_count": 11,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "poa_irradiance_template = pvdeg.geospatial.auto_template(\n",
- " func=pvdeg.spectral.poa_irradiance,\n",
- " ds_gids=geo_weather\n",
- ")\n",
- "\n",
- "pvdeg.geospatial.analysis(\n",
- " weather_ds=geo_weather,\n",
- " meta_df=geo_meta,\n",
- " func=pvdeg.spectral.poa_irradiance,\n",
- " template=poa_irradiance_template\n",
- ")"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Geospatial 98th Percentile Operating Temperature Calculation"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 12,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "The array tilt angle was not provided, therefore the latitude tilt of 39.9 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.9 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.7 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.8 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.8 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.4 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.5 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.4 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.6 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.5 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.6 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n"
- ]
- },
- {
- "data": {
- "text/html": [
- "
\n",
- "
<xarray.Dataset> Size: 784B\n",
- "Dimensions: (latitude: 8, longitude: 10)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 64B 39.41 39.45 39.53 ... 39.69 39.81 39.89\n",
- " * longitude (longitude) float64 80B -106.4 -106.3 -106.3 ... -105.9 -105.9\n",
- "Data variables:\n",
- " T98_estimate (latitude, longitude) float64 640B nan nan nan ... nan nan nan
"
- ],
- "text/plain": [
- " Size: 784B\n",
- "Dimensions: (latitude: 8, longitude: 10)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 64B 39.41 39.45 39.53 ... 39.69 39.81 39.89\n",
- " * longitude (longitude) float64 80B -106.4 -106.3 -106.3 ... -105.9 -105.9\n",
- "Data variables:\n",
- " T98_estimate (latitude, longitude) float64 640B nan nan nan ... nan nan nan"
- ]
- },
- "execution_count": 12,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "standoff_template = pvdeg.geospatial.auto_template(\n",
- " func=pvdeg.standards.T98_estimate, \n",
- " ds_gids=geo_weather\n",
- " )\n",
- "\n",
- "pvdeg.geospatial.analysis(\n",
- " weather_ds=geo_weather,\n",
- " meta_df=geo_meta,\n",
- " func=pvdeg.standards.T98_estimate,\n",
- " template=standoff_template\n",
- ")"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Geospatial Module Humidity Calculation"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 13,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "The array tilt angle was not provided, therefore the latitude tilt of 39.9 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.9 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.7 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.8 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.8 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.4 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.5 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.4 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.6 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.5 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.6 was used.\n"
- ]
- },
- {
- "data": {
- "text/html": [
- "
\n",
- "
<xarray.Dataset> Size: 45MB\n",
- "Dimensions: (latitude: 8, longitude: 10, time: 17520)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 64B 39.41 39.45 39.53 ... 39.81 39.89\n",
- " * longitude (longitude) float64 80B -106.4 -106.3 ... -105.9 -105.9\n",
- " * time (time) datetime64[ns] 140kB 2022-01-01 ... 2022-12-31...\n",
- "Data variables:\n",
- " RH_surface_outside (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " RH_front_encap (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " RH_back_encap (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " RH_backsheet (time, latitude, longitude) float64 11MB nan nan ... nan
"
- ],
- "text/plain": [
- " Size: 45MB\n",
- "Dimensions: (latitude: 8, longitude: 10, time: 17520)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 64B 39.41 39.45 39.53 ... 39.81 39.89\n",
- " * longitude (longitude) float64 80B -106.4 -106.3 ... -105.9 -105.9\n",
- " * time (time) datetime64[ns] 140kB 2022-01-01 ... 2022-12-31...\n",
- "Data variables:\n",
- " RH_surface_outside (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " RH_front_encap (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " RH_back_encap (time, latitude, longitude) float64 11MB nan nan ... nan\n",
- " RH_backsheet (time, latitude, longitude) float64 11MB nan nan ... nan"
- ]
- },
- "execution_count": 13,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "humidity_template = pvdeg.geospatial.auto_template(\n",
- " func=pvdeg.humidity.module,\n",
- " ds_gids=geo_weather\n",
- ")\n",
- "\n",
- "pvdeg.geospatial.analysis(\n",
- " weather_ds=geo_weather,\n",
- " meta_df=geo_meta,\n",
- " func=pvdeg.humidity.module,\n",
- " template=humidity_template\n",
- ")"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Geospatial IwaVantHoff Environment Characterization Calculation"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 14,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "The array tilt angle was not provided, therefore the latitude tilt of 39.9 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.9 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.7 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.8 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.8 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.4 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.5 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.4 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.6 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.5 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
- "The array tilt angle was not provided, therefore the latitude tilt of 39.6 was used.\n",
- "The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n"
- ]
- },
- {
- "data": {
- "text/html": [
- "
\n",
- "
<xarray.Dataset> Size: 784B\n",
- "Dimensions: (latitude: 8, longitude: 10)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 64B 39.41 39.45 39.53 ... 39.69 39.81 39.89\n",
- " * longitude (longitude) float64 80B -106.4 -106.3 -106.3 ... -105.9 -105.9\n",
- "Data variables:\n",
- " IwaVantHoff (latitude, longitude) float64 640B nan nan nan ... nan nan nan