Skip to content

Commit

Permalink
Merge pull request #52 from mgrover1/add-csu-to-map
Browse files Browse the repository at this point in the history
FIX: Update wxt plugin names
  • Loading branch information
mgrover1 authored Oct 22, 2024
2 parents 9243a51 + 2c88c04 commit f9cc21a
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion notebooks/quicklooks/surface-map.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,21 @@
" 'site_ID' : \"UIC\",\n",
" 'CAMS_tag' : \"CMS-WXT-011\",\n",
" 'datastream' : \"CMS_wxt536_UIC_a1\",\n",
" 'plugin' : \"10.31.81.1:5000/local/waggle-wxt536.*\",\n",
" 'plugin' : \"registry.sagecontinuum.org/jrobrien/waggle-wxt536:0.*\",\n",
" 'datalevel' : \"a1\",\n",
" 'latitude' : 41.869407936,\n",
" 'longitude' : -87.645806251}\n",
"\n",
"wxt_global_CCIS = {'conventions': \"CF 1.10\",\n",
" 'WSN':'W08B',\n",
" 'site_ID' : \"NEIU_CCIS\",\n",
" 'CAMS_tag' : \"CMS-WXT-001\",\n",
" 'datastream' : \"CMS_wxt536_NEIU_CCIS_a1\",\n",
" 'plugin' : \"registry.sagecontinuum.org/jrobrien/waggle-wxt536:0.*\",\n",
" 'datalevel' : \"a1\",\n",
" 'latitude' : 41.822966818,\n",
" 'longitude' : -87.609655739}\n",
"\n",
"\n",
"var_attrs_wxt = {'temperature': {'standard_name' : 'air_temperature',\n",
" 'units' : 'celsius'},\n",
Expand Down Expand Up @@ -325,6 +335,17 @@
"except:\n",
" pass\n",
"\n",
"try:\n",
" xCCIS = ingest_wxt_latest(wxt_global_CCIS, var_attrs_wxt).isel(time=-1)\n",
" xCCIS['latitude'] = xCCIS.attrs['latitude']\n",
" xCCIS['longitude'] = xCCIS.attrs['longitude']\n",
" xCCIS['site'] = 'NEIU_CCIS'\n",
" elevations.append(176)\n",
" ds_list.append(xCCIS)\n",
"\n",
"except:\n",
" pass\n",
"\n",
"ds = xr.concat(ds_list, dim='site')\n",
"data = ds.to_dataframe()\n",
"data['station_id'] = list(ds.site.values)\n",
Expand Down

0 comments on commit f9cc21a

Please sign in to comment.