diff --git a/portal/_extensions/yaml_gallery_generator.py b/portal/_extensions/yaml_gallery_generator.py index a4b7b4e8..d9b28644 100644 --- a/portal/_extensions/yaml_gallery_generator.py +++ b/portal/_extensions/yaml_gallery_generator.py @@ -89,7 +89,7 @@ def build_from_items(items, filename, title='Gallery', subtitle=None, menu_html= tags = '\n'.join(tags) author_strs = set() - affiliation_strs = set() + institution_strs = set() for a in item['authors']: author_name = a.get('name', 'Anonymous') author_email = a.get('email', None) @@ -99,20 +99,20 @@ def build_from_items(items, filename, title='Gallery', subtitle=None, menu_html= _str = author_name author_strs.add(_str) - affiliation_name = a.get('affiliation', None) - if affiliation_name: - affiliation_url = a.get('affiliation_url', None) - if affiliation_url: - _str = f'{affiliation_name}' + institution_name = a.get('institution', None) + if institution_name: + institution_url = a.get('institution_url', None) + if institution_url: + _str = f'{institution_name}' else: - _str = affiliation_name - affiliation_strs.add(_str) + _str = institution_name + institution_strs.add(_str) authors_str = f"Author: {', '.join(author_strs)}" - if affiliation_strs: - affiliations_str = f"Affiliation: {' '.join(affiliation_strs)}" + if institution_strs: + institutions_str = f"Institution: {' '.join(institution_strs)}" else: - affiliations_str = '' + institutions_str = '' if len(item['description']) < max_descr_len: short_description = item['description'] @@ -128,7 +128,7 @@ def build_from_items(items, filename, title='Gallery', subtitle=None, menu_html=

{item["title"]}

{authors_str}
-{affiliations_str} +{institutions_str}

{item['description']}

{tags}

Visit Website

@@ -144,7 +144,7 @@ def build_from_items(items, filename, title='Gallery', subtitle=None, menu_html=

{item["title"]}

-

{authors_str}
{affiliations_str}

+

{authors_str}
{institutions_str}

{short_description}

diff --git a/portal/gallery.yaml b/portal/gallery.yaml index 7703e0f3..d4089718 100644 --- a/portal/gallery.yaml +++ b/portal/gallery.yaml @@ -6,38 +6,45 @@ - name: Xdev Team email: xdev@ucar.edu url: https://ncar.github.io/xdev/ - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/Xdev.png tags: packages: - pure python formats: - video + affiliation: + - pythia + - xdev - title: Unidata Python Training url: https://unidata.github.io/python-training/python/intro-to-python/ description: | Introduction to Python for Atmospheric Science & Meteorology. Unidata is working to create a collection of online training materials focused on the use of Python in the atmospheric sciences. While our examples and scenarios may feature Unidata tools and data technologies, our aim is to present a generic set of freely available tools that are generally useful to scientists, educators, and students in the geosciences, broadly defined. authors: - - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + - institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/unidata_150x150.png tags: formats: - course + affiliation: + - unidata - title: Unidata Python Workshop - Jupyter Notebooks Introduction url: https://unidata.github.io/python-training/workshop/Jupyter_Notebooks/jupyter-notebooks-introduction/ description: | Jupyter notebooks are a great way to have code, output, images, video, and other information in one place. Notebooks are an ideal tool for the student, research scientist, and even software developer. In this lesson we will go over the basic features of Jupyter notebooks and how to use them. authors: - - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + - institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/unidata_150x150.png tags: packages: - jupyter + affiliation: + - unidata - title: An Introduction to Earth and Environmental Data Science url: https://earth-env-data-science.github.io/intro @@ -45,13 +52,15 @@ This book grew out of a course developed at Columbia University called Research Computing in Earth Science. It was written mostly by Ryan Abernathey, with significant contributions from Kerry Key. By separating the book from the class, we hope to create an open-source community resource for python education in the Earth and Environmental Sciences. authors: - name: Ryan Abernathey - affiliation: Lamont-Doherty Earth Observatory + institution: Lamont-Doherty Earth Observatory - name: Kerry Key - affiliation: Lamont-Doherty Earth Observatory + institution: Lamont-Doherty Earth Observatory thumbnail: /_static/thumbnails/earth_env_data_science.png tags: formats: - course + affiliation: + - pangeo - title: The Climate Laboratory url: https://brian-rose.github.io/ClimateLaboratoryBook/home @@ -60,7 +69,7 @@ authors: - name: Brian Rose url: http://www.atmos.albany.edu/facstaff/brose/ - affiliation: University of Albany + institution: University of Albany thumbnail: /_static/thumbnails/climlablogo.png tags: formats: @@ -79,7 +88,7 @@ authors: - name: Earth Lab url: https://www.earthdatascience.org/ - affiliation: University of Colorado Boulder + institution: University of Colorado Boulder thumbnail: /_static/thumbnails/earth-lab-logo.png tags: formats: @@ -91,7 +100,7 @@ This site contains open, tutorials and course materials covering topics including data integration, GIS and data intensive science. authors: - name: Earth Lab - affiliation: University of Colorado Boulder + institution: University of Colorado Boulder thumbnail: /_static/thumbnails/earth-lab-logo.png tags: formats: @@ -104,7 +113,7 @@ authors: - name: eScience Institute url: https://escience.washington.edu/ - affiliation: University of Washington + institution: University of Washington thumbnail: /_static/thumbnails/eScience_Logo_HR.png tags: formats: @@ -140,7 +149,7 @@ authors: - name: Jay Gopalakrishnan url: http://web.pdx.edu/~gjay/ - affiliation: Portland State University + institution: Portland State University thumbnail: /_static/thumbnails/portland-state.png tags: formats: @@ -153,7 +162,7 @@ authors: - name: Philip Austin email: paustin@eos.ubc.ca - affiliation: University of British Columbia + institution: University of British Columbia thumbnail: /_static/thumbnails/british-columbia.jpg tags: formats: @@ -179,8 +188,8 @@ A collection of courework repositories for various data science classes taught by Dani Arribas-Bel. authors: - name: Dani Arribas-Bel - affiliation: University of Liverpool Department of Geography and Planning - affiliation_url: https://www.liverpool.ac.uk/geography-and-planning/ + institution: University of Liverpool Department of Geography and Planning + institution_url: https://www.liverpool.ac.uk/geography-and-planning/ thumbnail: tags: formats: @@ -276,8 +285,8 @@ authors: - name: GeoCat url: https://geocat.ucar.edu/ - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/geocat.png tags: packages: @@ -292,8 +301,8 @@ authors: - name: GeoCAT url: https://geocat.ucar.edu/ - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/geocat.png tags: packages: @@ -440,8 +449,8 @@ MetPy is a collection of tools in Python for reading, visualizing, and performing calculations with weather data. authors: - name: MetPy developers - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/metpy.jpg tags: packages: @@ -455,8 +464,8 @@ This collection of tutorials (under development) demonstrates the use of MetPy to perform common meteorological tasks. authors: - name: MetPy developers - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/metpy.jpg tags: packages: @@ -469,8 +478,8 @@ description: | MetPy is a modern meteorological open-source toolkit for Python. It is a maintained project of Unidata to serve the academic meteorological community. MetPy consists of three major areas of functionality: plots, calculations, and file i/o. authors: - - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + - institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/unidata_150x150.png tags: packages: @@ -484,8 +493,8 @@ Examples of using a variety of MetPy’s functionality together. authors: - name: MetPy Developers - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/metpy.jpg tags: packages: @@ -498,8 +507,8 @@ description: | Check out detailed examples for atmospheric science and meteorology, from data analysis to publication-quality figures. authors: - - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + - institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/unidata_150x150.png tags: domains: @@ -512,8 +521,8 @@ description: | A weekly video series showing how to use MetPy or other Python libraries to solve problems relevant to geoscience applications. authors: - - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + - institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/metpy-mondays.jpeg tags: packages: @@ -550,8 +559,8 @@ description: | Unidata Numpy tutorial that covers how to create an array of ‘data’, perform basic calculations on this data using python math functions, and slice and index the array. authors: - - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + - institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/unidata_150x150.png tags: packages: @@ -565,8 +574,8 @@ NumPy provides Python with a powerful array processing library and an elegant syntax that is well suited to expressing computational algorithms clearly and efficiently. We'll introduce basic array syntax and array indexing, review some of the available mathematical functions in NumPy, and discuss how to write your own routines. Along the way, we'll learn just enough about matplotlib to display results from our examples. authors: - name: A. Chabot-LeClerc - affiliation: Enthought - affiliation_url: https://www.enthought.com/ + institution: Enthought + institution_url: https://www.enthought.com/ thumbnail: /_static/thumbnails/Enthought.png tags: packages: @@ -645,8 +654,8 @@ Siphon is a collection of Python utilities for downloading data from remote data services. Much of Siphon’s current functionality focuses on access to data hosted on a THREDDS Data Server. It also provides clients to a variety of simple web services. authors: - name: Siphon Contributors - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/siphon.png tags: packages: @@ -659,8 +668,8 @@ description: | An overview on Siphon from the Unidata Python Workshop that: uses Siphon to access a THREDDS catalog, filters data, and uses Siphon to perform remote data access. authors: - - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + - institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/siphon.png tags: packages: @@ -674,8 +683,8 @@ Examples of using Siphon’s functionality. authors: - name: Siphon Contributors - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/siphon.png tags: packages: @@ -688,8 +697,8 @@ description: | A collection of diagnostic and interpolation routines for use with output from the Weather Research and Forecasting (WRF-ARW) Model. authors: - - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + - institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: tags: packages: @@ -702,8 +711,8 @@ description: | Examples of how wrf-python can be used to make plots with matplotlib (with basemap and cartopy) and PyNGL. None of these examples make use of xarray’s builtin plotting functions, since additional work is most likely needed to extend xarray in order to work correctly. authors: - - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + - institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: tags: packages: @@ -733,8 +742,8 @@ description: | An introduction to Xarray through the Unidata Python Workshop that asks, "What is XArray and how does XArray fit in with Numpy and Pandas?"" by creating a DataArray, openning netCDF data using XArray, and subsetting the data. authors: - - affiliation: Unidata - affiliation_url: https://www.unidata.ucar.edu/ + - institution: Unidata + institution_url: https://www.unidata.ucar.edu/ thumbnail: /_static/thumbnails/xarray.png tags: packages: @@ -760,16 +769,16 @@ thumbnail: '' authors: - name: Lisa Tauxe - affiliation: Scripps Institution of Oceanography - affiliation_url: https://scripps.ucsd.edu/ + institution: Scripps Institution of Oceanography + institution_url: https://scripps.ucsd.edu/ email: ltauxe@ucsd.edu - name: Hanna Asefaw - affiliation: '' - affiliation_url: '' + institution: '' + institution_url: '' email: hasefaw@ucsd.edu - name: Brendan Cych - affiliation: '' - affiliation_url: '' + institution: '' + institution_url: '' email: bcych@ucsd.edu tags: formats: @@ -786,8 +795,8 @@ thumbnail: https://github.com/pangeo-data/pangeo/raw/master/docs/_static/pangeo_simple_logo.png authors: - name: Pangeo Community - affiliation: Pangeo - affiliation_url: http://pangeo.io/ + institution: Pangeo + institution_url: http://pangeo.io/ email: '' tags: packages: @@ -808,6 +817,8 @@ - remote sensing - physical oceanography - hydrology + affiliation: + - pangeo - title: Python for Atmosphere and Ocean Science description: Lesson materials for a one-day workshop on using Python in the atmosphere and ocean sciences. Useful for any geoscientist working with raster (a.k.a. “gridded”) @@ -818,12 +829,12 @@ thumbnail: /_static/thumbnails/DC_logo_vision.png authors: - name: '' - affiliation: Data Carpentry - affiliation_url: https://datacarpentry.org/ + institution: Data Carpentry + institution_url: https://datacarpentry.org/ email: '' - name: '' - affiliation: '' - affiliation_url: '' + institution: '' + institution_url: '' email: '' tags: packages: @@ -871,14 +882,17 @@ authors: - name: Project Pythia - name: Julia Kent - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-txtfile.jpeg tags: packages: - pure python formats: - video + affiliation: + - pythia + - xdev - title: Your First Python Tutorial - Creating a Data Dictionary url: https://youtu.be/5z6-t62x7Xs @@ -887,14 +901,17 @@ authors: - name: Project Pythia - name: Julia Kent - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-datadict.jpeg tags: packages: - pure python formats: - video + affiliation: + - pythia + - xdev - title: Your First Python Tutorial - Writing Functions url: https://youtu.be/BerEf_3CsL8 @@ -903,14 +920,17 @@ authors: - name: Project Pythia - name: Julia Kent - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-writingfx.jpeg tags: packages: - pure python formats: - video + affiliation: + - pythia + - xdev - title: Your First Python Tutorial - Creating Your Own Package url: https://youtu.be/6lbbTwGFcTc @@ -919,14 +939,17 @@ authors: - name: Project Pythia - name: Julia Kent - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-firstpackage.jpeg tags: packages: - pure python formats: - video + affiliation: + - pythia + - xdev - title: Your First Python Tutorial - Using a Built-In Package and Publishing Your Package url: https://youtu.be/44QUMCh2ZHU @@ -935,14 +958,17 @@ authors: - name: Project Pythia - name: Julia Kent - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-builtinpackage.jpeg tags: packages: - pure python formats: - video + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Jupyter Notebooks url: https://youtu.be/xSzXvwzFsDU @@ -951,14 +977,17 @@ authors: - name: Project Pythia - name: Kevin Paul - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-jupyter.jpeg tags: packages: - jupyter formats: - video + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Numpy url: https://youtu.be/kstc-6uz7AQ @@ -967,14 +996,17 @@ authors: - name: Project Pythia - name: A Kootz - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-numpy.jpeg tags: packages: - numpy formats: - video + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Matplotlib url: https://youtu.be/EiPRIdHQEmE @@ -983,8 +1015,8 @@ authors: - name: Project Pythia - name: Anissa Zacharias - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-matplotlib.jpeg tags: packages: @@ -993,6 +1025,9 @@ - video domains: - data visualization + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Object Oriented Programming url: https://youtu.be/GEFnL8C62u8 @@ -1001,12 +1036,15 @@ authors: - name: Project Pythia - name: A Kootz - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-oop.jpeg tags: formats: - video + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Cartopy url: https://youtu.be/ivmd3RluMiw @@ -1015,8 +1053,8 @@ authors: - name: Project Pythia - name: Michaela Sizemore - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-cartopy.jpeg tags: packages: @@ -1026,6 +1064,9 @@ - video domains: - data visualization + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Git and GitHub url: https://youtu.be/fYkPn0Nttlg @@ -1034,14 +1075,17 @@ authors: - name: Project Pythia - name: Kevin Paul - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-git.png tags: packages: - git formats: - video + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Pandas url: https://youtu.be/BsV3ek7qsiM @@ -1053,14 +1097,17 @@ affiliation: NCAR affiliation_url: https://ncar.ucar.edu/ - name: Drew Camron - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-pandas.jpeg tags: packages: - pandas formats: - video + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Xarray Part 1 url: https://youtu.be/Ss4ryKukhi4 @@ -1069,14 +1116,17 @@ authors: - name: Project Pythia - name: Anderson Banihirwe - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-xarray1.jpeg tags: packages: - xarray formats: - video + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Xarray Part 2 url: https://youtu.be/2H_4drBwORY @@ -1085,14 +1135,17 @@ authors: - name: Project Pythia - name: Anderson Banihirwe - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-xarray2.jpeg tags: packages: - xarray formats: - video + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Dask Part 1 url: https://youtu.be/wn-QM6QUB_U @@ -1101,14 +1154,17 @@ authors: - name: Project Pythia - name: Anderson Banihirwe - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-dask1.jpeg tags: packages: - dask formats: - video + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Dask Part 2 url: https://youtu.be/yn4_-1pHC5k @@ -1117,14 +1173,17 @@ authors: - name: Project Pythia - name: Anderson Banihirwe - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-dask2.jpeg tags: packages: - dask formats: - video + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - Plotting with GeoCAT url: https://youtu.be/It231le1fAU @@ -1133,8 +1192,8 @@ authors: - name: Project Pythia - name: Anissa Zacharias - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-geocatplot.jpeg tags: packages: @@ -1143,6 +1202,9 @@ - video domains: - data visualization + affiliation: + - pythia + - xdev - title: Python Tutorial Seminar Series - GeoCAT-Comp url: https://www.youtube.com/watch?v=uiWDQKI8YTQ&t=6s @@ -1151,11 +1213,14 @@ authors: - name: Project Pythia - name: A Kootz - affiliation: NCAR - affiliation_url: https://ncar.ucar.edu/ + institution: NCAR + institution_url: https://ncar.ucar.edu/ thumbnail: /_static/thumbnails/ptss-geocatcomp.jpeg tags: packages: - geocat-comp formats: - video + affiliation: + - pythia + - xdev