diff --git a/tutorials/2.Creation/2.4.Create_Points_Port_Barcelona.ipynb b/tutorials/2.Creation/2.4.Create_Points_Port_Barcelona.ipynb index afa457cf4ae105cc40f61244fb9f655688419776..2e7020e0ed430fca8de3de6a809a289ec3e8286d 100644 --- a/tutorials/2.Creation/2.4.Create_Points_Port_Barcelona.ipynb +++ b/tutorials/2.Creation/2.4.Create_Points_Port_Barcelona.ipynb @@ -17,7 +17,8 @@ "import pandas as pd\n", "import numpy as np\n", "from datetime import datetime, timedelta\n", - "from nes import *" + "from nes import *\n", + "import os" ] }, { @@ -420,7 +421,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "/esarchive/scratch/avilanova/software/NES/nes/nc_projections/points_nes.py:338: UserWarning: WARNING!!! Different data types for variable station_nameInput dtype=, data dtype=object\n", + "/esarchive/scratch/avilanova/software/NES/nes/nc_projections/points_nes.py:336: UserWarning: WARNING!!! Different data types for variable station_nameInput dtype=, data dtype=object\n", " warnings.warn(msg)\n" ] }, @@ -809,10 +810,10 @@ " station_name (station, strlen) object 'N' 'O' '2' '-' 'U' ... '' '' '' ''\n", " sconcno2 (time, station) float64 64.64 49.08 68.16 ... 12.76 28.66\n", "Attributes:\n", - " Conventions: CF-1.7
  • Conventions :
    CF-1.7
  • " ], "text/plain": [ "\n", @@ -855,138 +856,208 @@ ] }, { - "cell_type": "code", - "execution_count": 13, + "cell_type": "markdown", "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/esarchive/scratch/avilanova/software/NES/nes/load_nes.py:69: UserWarning: Parallel method cannot be 'Y' to create points NES. Setting it to 'X'\n", - " warnings.warn(\"Parallel method cannot be 'Y' to create points NES. Setting it to 'X'\")\n" - ] - } - ], "source": [ - "a = open_netcdf('points_grid_no2.nc')" + "## Create one dataset per month (Ready for Providentia)" ] }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 16, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[['N' 'O' '2' '-' 'U' 'M' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' ''\n", - " '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' ''\n", - " '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' ''\n", - " '' '' '' '' '']\n", - " ['N' 'O' '2' '-' 'Z' 'A' 'L' ' ' 'P' 'r' 'a' 't' '' '' '' '' '' '' '' ''\n", - " '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' ''\n", - " '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' ''\n", - " '' '' '' '' '' '' '']] (2, 75) object\n" - ] - } - ], + "outputs": [], "source": [ - "a.load()" + "df_data['month'] = df_data.index.month\n", + "df_data['year'] = df_data.index.year" ] }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 17, "metadata": {}, "outputs": [ { "data": { + "text/html": [ + "
    \n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
    SO2-DarsenaSO2-UMNO2-UMNO2-ZAL Pratmonthyear
    2017-01-01 00:00:000.20NaN64.6449.0812017
    2017-01-01 01:00:000.18NaN68.1653.0012017
    2017-01-01 02:00:000.04NaN68.2946.7512017
    2017-01-01 03:00:000.00NaN62.9139.6512017
    2017-01-01 04:00:000.00NaN47.1328.8612017
    .....................
    2021-12-31 13:00:000.77NaN35.3824.96122021
    2021-12-31 14:00:000.37NaN35.8024.16122021
    2021-12-31 15:00:000.23NaN29.1025.79122021
    2021-12-31 16:00:000.14NaN9.2429.82122021
    2021-12-31 17:00:000.20NaN12.7628.66122021
    \n", + "

    43818 rows × 6 columns

    \n", + "
    " + ], "text/plain": [ - "{'station': {'data': masked_array(data=[0., 1.],\n", - " mask=False,\n", - " fill_value=1e+20),\n", - " 'dimensions': ('station',),\n", - " 'units': '',\n", - " 'axis': 'X',\n", - " 'long_name': '',\n", - " 'standard_name': 'station'},\n", - " 'station_name': {'data': array(['NO2-UM', 'NO2-ZAL Prat'], dtype='\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mstop\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", - "\u001b[0;31mNameError\u001b[0m: name 'stop' is not defined" + "\u001b[0;31mPermissionError\u001b[0m Traceback (most recent call last)", + "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 35\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 36\u001b[0m \u001b[0;31m# Save files\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 37\u001b[0;31m \u001b[0mpoints_grid\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mto_netcdf\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mnetcdf_path\u001b[0m \u001b[0;34m+\u001b[0m \u001b[0;34m'/sconcno2_{0}{1}.nc'\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0myear\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstr\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmonth\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mzfill\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 38\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 39\u001b[0m \u001b[0;32mdel\u001b[0m \u001b[0mpoints_grid\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m/esarchive/scratch/avilanova/software/NES/nes/nc_projections/default_nes.py\u001b[0m in \u001b[0;36mto_netcdf\u001b[0;34m(self, path, compression_level, serial, info, chunking)\u001b[0m\n\u001b[1;32m 1946\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1947\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1948\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__to_netcdf_py\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mchunking\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mchunking\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1949\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1950\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minfo\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mold_info\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m/esarchive/scratch/avilanova/software/NES/nes/nc_projections/default_nes.py\u001b[0m in \u001b[0;36m__to_netcdf_py\u001b[0;34m(self, path, chunking)\u001b[0m\n\u001b[1;32m 1882\u001b[0m \u001b[0mnetcdf\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mDataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mformat\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"NETCDF4\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'w'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mparallel\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcomm\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomm\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0minfo\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mMPI\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mInfo\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1883\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1884\u001b[0;31m \u001b[0mnetcdf\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mDataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mformat\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"NETCDF4\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'w'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mparallel\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1885\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minfo\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1886\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Rank {0:03d}: NetCDF ready to write\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrank\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32mnetCDF4/_netCDF4.pyx\u001b[0m in \u001b[0;36mnetCDF4._netCDF4.Dataset.__init__\u001b[0;34m()\u001b[0m\n", + "\u001b[0;32mnetCDF4/_netCDF4.pyx\u001b[0m in \u001b[0;36mnetCDF4._netCDF4._ensure_nc_success\u001b[0;34m()\u001b[0m\n", + "\u001b[0;31mPermissionError\u001b[0m: [Errno 13] Permission denied: b'/esarchive/obs/port_barcelona/port-barcelona/hourly/sconcno2/sconcno2_201701.nc'" ] } ], - "source": [ - "stop" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Create one dataset per month (Ready for Providentia)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "df_data['month'] = df_data.index.month\n", - "df_data['year'] = df_data.index.year" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "df_data" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], "source": [ "for (year, month), current in df_data.groupby(['year', 'month']):\n", "\n", @@ -1032,7 +1103,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 19, "metadata": {}, "outputs": [ { @@ -1401,16 +1472,16 @@ " lat (station) float64 41.37 41.32\n", " lon (station) float64 2.185 2.135\n", "Attributes:\n", - " Conventions: CF-1.7
  • Conventions :
    CF-1.7
  • " ], "text/plain": [ "\n", @@ -1428,7 +1499,7 @@ " Conventions: CF-1.7" ] }, - "execution_count": 17, + "execution_count": 19, "metadata": {}, "output_type": "execute_result" } @@ -1439,12 +1510,417 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 20, "metadata": {}, - "outputs": [], - "source": [ - "xr.open_dataset('/esarchive/obs/port_barcelona/port-barcelona/hourly/sconcno2/sconcno2_202112.nc')" - ] + "outputs": [ + { + "data": { + "text/html": [ + "
    \n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
    <xarray.Dataset>\n",
    +       "Dimensions:       (time: 738, station: 2)\n",
    +       "Coordinates:\n",
    +       "  * time          (time) datetime64[ns] 2021-12-01 ... 2021-12-31T17:00:00\n",
    +       "  * station       (station) float64 0.0 1.0\n",
    +       "Data variables:\n",
    +       "    station_name  (station) |S75 b'NO2-UM' b'NO2-ZAL Prat'\n",
    +       "    altitude      (station) float64 nan nan\n",
    +       "    sconcno2      (time, station) float64 13.33 nan 13.42 ... 29.82 12.76 28.66\n",
    +       "    lat           (station) float64 41.37 41.32\n",
    +       "    lon           (station) float64 2.185 2.135\n",
    +       "Attributes:\n",
    +       "    Conventions:  CF-1.7
    " + ], + "text/plain": [ + "\n", + "Dimensions: (time: 738, station: 2)\n", + "Coordinates:\n", + " * time (time) datetime64[ns] 2021-12-01 ... 2021-12-31T17:00:00\n", + " * station (station) float64 0.0 1.0\n", + "Data variables:\n", + " station_name (station) |S75 ...\n", + " altitude (station) float64 ...\n", + " sconcno2 (time, station) float64 ...\n", + " lat (station) float64 ...\n", + " lon (station) float64 ...\n", + "Attributes:\n", + " Conventions: CF-1.7" + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "xr.open_dataset('/esarchive/obs/port_barcelona/port-barcelona/hourly/sconcno2/sconcno2_202112.nc')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { diff --git a/tutorials/2.Creation/2.5.Create_Points_CSIC.ipynb b/tutorials/2.Creation/2.5.Create_Points_CSIC.ipynb index fd02dd3118269b5073d2c321880baaca6989e6de..48cd49d6883628b607be18fed904d3f40ceb9282 100644 --- a/tutorials/2.Creation/2.5.Create_Points_CSIC.ipynb +++ b/tutorials/2.Creation/2.5.Create_Points_CSIC.ipynb @@ -766,13 +766,13 @@ " station_name (station, strlen) object 't' 'r' 'a' 'f' 'f' ... '' '' '' ''\n", " sconcnh3 (time, station) float64 4.989 2.553 3.423 ... 2.511 0.0 0.0\n", "Attributes:\n", - " Conventions: CF-1.7
  • Conventions :
    CF-1.7
  • " ], "text/plain": [ "\n", @@ -819,27 +819,6 @@ "xr.open_dataset('points_grid_nh3.nc')" ] }, - { - "cell_type": "code", - "execution_count": 13, - "metadata": {}, - "outputs": [ - { - "ename": "NameError", - "evalue": "name 'stop' is not defined", - "output_type": "error", - "traceback": [ - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", - "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", - "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mstop\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", - "\u001b[0;31mNameError\u001b[0m: name 'stop' is not defined" - ] - } - ], - "source": [ - "stop" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -849,7 +828,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ @@ -859,18 +838,182 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 14, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
    \n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
    traffic_siteurban_sitemonthyear
    Date-hour in
    2019-01-014.9889882.55323512019
    2019-02-013.4225351.55622622019
    2019-03-012.6750651.68635532019
    2019-04-013.4255221.97548642019
    2019-05-015.3148091.11924552019
    2019-06-013.1394951.62656762019
    2019-07-010.0000002.22685672019
    2019-08-010.0000002.46963882019
    2019-09-010.0000003.72735592019
    2019-10-010.0000001.535056102019
    2019-11-010.0000002.511152112019
    2019-12-010.0000000.000000122019
    \n", + "
    " + ], + "text/plain": [ + " traffic_site urban_site month year\n", + "Date-hour in \n", + "2019-01-01 4.988988 2.553235 1 2019\n", + "2019-02-01 3.422535 1.556226 2 2019\n", + "2019-03-01 2.675065 1.686355 3 2019\n", + "2019-04-01 3.425522 1.975486 4 2019\n", + "2019-05-01 5.314809 1.119245 5 2019\n", + "2019-06-01 3.139495 1.626567 6 2019\n", + "2019-07-01 0.000000 2.226856 7 2019\n", + "2019-08-01 0.000000 2.469638 8 2019\n", + "2019-09-01 0.000000 3.727355 9 2019\n", + "2019-10-01 0.000000 1.535056 10 2019\n", + "2019-11-01 0.000000 2.511152 11 2019\n", + "2019-12-01 0.000000 0.000000 12 2019" + ] + }, + "execution_count": 14, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "df_data" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 15, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Done sconcnh3_201901.nc\n", + "Done sconcnh3_201902.nc\n", + "Done sconcnh3_201903.nc\n", + "Done sconcnh3_201904.nc\n", + "Done sconcnh3_201905.nc\n", + "Done sconcnh3_201906.nc\n", + "Done sconcnh3_201907.nc\n", + "Done sconcnh3_201908.nc\n", + "Done sconcnh3_201909.nc\n", + "Done sconcnh3_201910.nc\n", + "Done sconcnh3_201911.nc\n", + "Done sconcnh3_201912.nc\n" + ] + } + ], "source": [ "for (year, month), current in df_data.groupby(['year', 'month']):\n", " \n", @@ -915,28 +1058,799 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 16, "metadata": {}, - "outputs": [], - "source": [ - "xr.open_dataset('/esarchive/obs/csic/csic/monthly/sconcnh3/sconcnh3_201905.nc')" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "xr.open_dataset('/esarchive/obs/csic/csic/monthly/sconcnh3/sconcnh3_201901.nc')" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "data": { + "text/html": [ + "
    \n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
    <xarray.Dataset>\n",
    +       "Dimensions:       (time: 1, station: 2)\n",
    +       "Coordinates:\n",
    +       "  * time          (time) datetime64[ns] 2019-05-01\n",
    +       "  * station       (station) float64 0.0 1.0\n",
    +       "Data variables:\n",
    +       "    lat           (station) float64 41.39 41.4\n",
    +       "    lon           (station) float64 2.115 2.153\n",
    +       "    station_name  (station) object 'traffic_site' 'urban_site'\n",
    +       "    altitude      (station) float64 nan nan\n",
    +       "    sconcnh3      (time, station) float64 5.315 1.119\n",
    +       "Attributes:\n",
    +       "    Conventions:  CF-1.7
    " + ], + "text/plain": [ + "\n", + "Dimensions: (time: 1, station: 2)\n", + "Coordinates:\n", + " * time (time) datetime64[ns] 2019-05-01\n", + " * station (station) float64 0.0 1.0\n", + "Data variables:\n", + " lat (station) float64 ...\n", + " lon (station) float64 ...\n", + " station_name (station) object ...\n", + " altitude (station) float64 ...\n", + " sconcnh3 (time, station) float64 ...\n", + "Attributes:\n", + " Conventions: CF-1.7" + ] + }, + "execution_count": 16, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "xr.open_dataset('/esarchive/obs/csic/csic/monthly/sconcnh3/sconcnh3_201905.nc')" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
    \n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
    <xarray.Dataset>\n",
    +       "Dimensions:       (time: 1, station: 2)\n",
    +       "Coordinates:\n",
    +       "  * time          (time) datetime64[ns] 2019-01-01\n",
    +       "  * station       (station) float64 0.0 1.0\n",
    +       "Data variables:\n",
    +       "    lat           (station) float64 41.39 41.4\n",
    +       "    lon           (station) float64 2.115 2.153\n",
    +       "    station_name  (station) object 'traffic_site' 'urban_site'\n",
    +       "    altitude      (station) float64 nan nan\n",
    +       "    sconcnh3      (time, station) float64 4.989 2.553\n",
    +       "Attributes:\n",
    +       "    Conventions:  CF-1.7
    " + ], + "text/plain": [ + "\n", + "Dimensions: (time: 1, station: 2)\n", + "Coordinates:\n", + " * time (time) datetime64[ns] 2019-01-01\n", + " * station (station) float64 0.0 1.0\n", + "Data variables:\n", + " lat (station) float64 ...\n", + " lon (station) float64 ...\n", + " station_name (station) object ...\n", + " altitude (station) float64 ...\n", + " sconcnh3 (time, station) float64 ...\n", + "Attributes:\n", + " Conventions: CF-1.7" + ] + }, + "execution_count": 17, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "xr.open_dataset('/esarchive/obs/csic/csic/monthly/sconcnh3/sconcnh3_201901.nc')" + ] } ], "metadata": { @@ -955,7 +1869,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.8" + "version": "3.7.4" }, "vscode": { "interpreter": {