diff --git a/Jupyter_notebooks/2.1-create_nes_port.ipynb b/Jupyter_notebooks/2.1-create_nes_port.ipynb index 081015ab4ab93101c2156f07cc88d844a5ee5149..f5765cab0e9c57ba13717d5a6fafb2184e8e85b7 100644 --- a/Jupyter_notebooks/2.1-create_nes_port.ipynb +++ b/Jupyter_notebooks/2.1-create_nes_port.ipynb @@ -368,8 +368,8 @@ "metadata = {'station_name': {'data': df_data.columns[2:4].to_numpy(),\n", " 'dimensions': ('station',),\n", " 'dtype': str},\n", - " 'NO2': {'data': df_data.iloc[:, 2:4].to_numpy().T,\n", - " 'dimensions': ('station', 'time',),\n", + " 'NO2': {'data': df_data.iloc[:, 2:4].to_numpy(),\n", + " 'dimensions': ('time', 'station',),\n", " 'dtype': float}}" ] }, @@ -416,7 +416,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "/esarchive/scratch/avilanova/software/NES/nes/nc_projections/points_nes.py:400: 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:401: UserWarning: WARNING!!! Different data types for variable station_nameInput dtype=, data dtype=object\n", " warnings.warn(msg)\n" ] }, @@ -800,15 +800,20 @@ " * station (station) float64 0.0 1.0\n", "Data variables:\n", " station_name (station) object 'NO2-UM' 'NO2-ZAL Prat'\n", - " NO2 (station, time) float64 63.38 64.64 68.16 ... 29.82 28.66\n", + " NO2 (time, station) float64 63.38 46.01 64.64 ... 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
    • station_name
      (station)
      object
      ...
      array(['NO2-UM', 'NO2-ZAL Prat'], dtype=object)
    • NO2
      (time, station)
      float64
      ...
      array([[63.38, 46.01],\n",
      +       "       [64.64, 49.08],\n",
      +       "       [68.16, 53.  ],\n",
      +       "       ...,\n",
      +       "       [29.1 , 25.79],\n",
      +       "       [ 9.24, 29.82],\n",
      +       "       [12.76, 28.66]])
    • lat
      (station)
      float64
      ...
      units :
      degrees_north
      axis :
      Y
      long_name :
      latitude coordinate
      standard_name :
      latitude
      array([41.373777, 41.317277])
    • lon
      (station)
      float64
      ...
      units :
      degrees_east
      axis :
      X
      long_name :
      longitude coordinate
      standard_name :
      longitude
      array([2.184514, 2.134501])
  • Conventions :
    CF-1.7
  • " ], "text/plain": [ "\n", @@ -818,7 +823,7 @@ " * station (station) float64 0.0 1.0\n", "Data variables:\n", " station_name (station) object ...\n", - " NO2 (station, time) float64 ...\n", + " NO2 (time, station) float64 ...\n", " lat (station) float64 ...\n", " lon (station) float64 ...\n", "Attributes:\n", @@ -1103,12 +1108,12 @@ " \n", " # Read metadata\n", " metadata = {'station_name': {'data': station_name,\n", - " 'dimensions': ('station','strlen'),\n", + " 'dimensions': ('station', 'strlen'),\n", " 'standard_name': '',\n", " 'dtype': 'S1'},\n", - " 'sconcno2': {'data': current.iloc[:, 2:4].to_numpy().T,\n", + " 'sconcno2': {'data': current.iloc[:, 2:4].to_numpy(),\n", " 'units': 'µg m-3',\n", - " 'dimensions': ('station', 'time',),\n", + " 'dimensions': ('time', 'station',),\n", " 'long_name': '',\n", " 'dtype': float}}\n", " \n", @@ -1492,15 +1497,20 @@ " * station (station) float64 0.0 1.0\n", "Data variables:\n", " station_name (station) |S75 b'NO2-UM' b'NO2-ZAL Prat'\n", - " sconcno2 (station, time) float64 6.88 8.77 1.76 ... 41.2 26.42 27.11\n", + " sconcno2 (time, station) float64 6.88 23.03 8.77 ... 26.42 0.07 27.11\n", " lat (station) float64 41.37 41.32\n", " lon (station) float64 2.185 2.135\n", "Attributes:\n", - " Conventions: CF-1.7
    • station_name
      (station)
      |S75
      ...
      standard_name :
      array([b'NO2-UM', b'NO2-ZAL Prat'], dtype='|S75')
    • sconcno2
      (time, station)
      float64
      ...
      units :
      µg m-3
      long_name :
      array([[ 6.88, 23.03],\n",
      +       "       [ 8.77, 23.49],\n",
      +       "       [ 1.76, 21.73],\n",
      +       "       ...,\n",
      +       "       [21.96, 41.2 ],\n",
      +       "       [ 0.  , 26.42],\n",
      +       "       [ 0.07, 27.11]])
    • lat
      (station)
      float64
      ...
      units :
      degrees_north
      axis :
      Y
      long_name :
      latitude coordinate
      standard_name :
      latitude
      array([41.373777, 41.317277])
    • lon
      (station)
      float64
      ...
      units :
      degrees_east
      axis :
      X
      long_name :
      longitude coordinate
      standard_name :
      longitude
      array([2.184514, 2.134501])
  • Conventions :
    CF-1.7
  • " ], "text/plain": [ "\n", @@ -1510,7 +1520,7 @@ " * station (station) float64 0.0 1.0\n", "Data variables:\n", " station_name (station) |S75 ...\n", - " sconcno2 (station, time) float64 ...\n", + " sconcno2 (time, station) float64 ...\n", " lat (station) float64 ...\n", " lon (station) float64 ...\n", "Attributes:\n", @@ -1892,15 +1902,20 @@ " * station (station) float64 0.0 1.0\n", "Data variables:\n", " station_name (station) |S75 b'NO2-UM' b'NO2-ZAL Prat'\n", - " sconcno2 (station, time) float64 65.22 63.97 57.43 ... 25.97 20.7 16.95\n", + " sconcno2 (time, station) float64 65.22 80.1 63.97 ... 20.7 nan 16.95\n", " lat (station) float64 41.37 41.32\n", " lon (station) float64 2.185 2.135\n", "Attributes:\n", - " Conventions: CF-1.7
    • station_name
      (station)
      |S75
      ...
      standard_name :
      array([b'NO2-UM', b'NO2-ZAL Prat'], dtype='|S75')
    • sconcno2
      (time, station)
      float64
      ...
      units :
      µg m-3
      long_name :
      array([[65.22, 80.1 ],\n",
      +       "       [63.97, 81.52],\n",
      +       "       [57.43, 65.34],\n",
      +       "       ...,\n",
      +       "       [  nan, 25.97],\n",
      +       "       [  nan, 20.7 ],\n",
      +       "       [  nan, 16.95]])
    • lat
      (station)
      float64
      ...
      units :
      degrees_north
      axis :
      Y
      long_name :
      latitude coordinate
      standard_name :
      latitude
      array([41.373777, 41.317277])
    • lon
      (station)
      float64
      ...
      units :
      degrees_east
      axis :
      X
      long_name :
      longitude coordinate
      standard_name :
      longitude
      array([2.184514, 2.134501])
  • Conventions :
    CF-1.7
  • " ], "text/plain": [ "\n", @@ -1910,7 +1925,7 @@ " * station (station) float64 0.0 1.0\n", "Data variables:\n", " station_name (station) |S75 ...\n", - " sconcno2 (station, time) float64 ...\n", + " sconcno2 (time, station) float64 ...\n", " lat (station) float64 ...\n", " lon (station) float64 ...\n", "Attributes:\n",