Skip to content

Commit 650da89

Browse files
JessicaS11facusapienza21aaarendtkelseybissonRomiP
authored
release 0.3.2 (icesat2py#155)
* note authentication settings * Validate input numpy (icesat2py#105): numpy scalars now available for the case where the spatial extent consists of a polygon and it is given by a single list * update travis trigger to deal with fork PRs * add current path to pip install -e option (icesat2py#129) * Adding Phyto team contributors (icesat2py#139) * add icepyx usage tracking (tools and docs) (icesat2py#150) * Added a publication to icepyx_pubs.bib (icesat2py#152) * removed normal proj references due to DAAC change in capabilities.xml (icesat2py#153) * add changelog for bug fix release (icesat2py#154) Co-authored-by: Facundo Sapienza <[email protected]> Co-authored-by: Anthony Arendt <[email protected]> Co-authored-by: Kelsey Bisson <[email protected]> Co-authored-by: Romina <[email protected]> Co-authored-by: mollymwieringa <[email protected]> Co-authored-by: ted maksym <[email protected]> Co-authored-by: Molly <[email protected]> Co-authored-by: nabib <[email protected]> Co-authored-by: alexdibella <[email protected]> Co-authored-by: Tian Li <[email protected]> Co-authored-by: Amy Steiker <[email protected]>
1 parent 77ee7c6 commit 650da89

29 files changed

+882
-38
lines changed

.github/workflows/traffic_action.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# temporarily store GitHub traffic data
2+
# from: https://github.com/marketplace/actions/repository-traffic
3+
on:
4+
schedule:
5+
# runs once a week on sunday
6+
- cron: "55 23 * * 0"
7+
8+
jobs:
9+
# This workflow contains a single job called "traffic"
10+
traffic:
11+
# The type of runner that the job will run on
12+
runs-on: ubuntu-latest
13+
14+
# Steps represent a sequence of tasks that will be executed as part of the job
15+
steps:
16+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
17+
# DevGoal: figure out how to put the traffic data directly into doc/source/tracking
18+
- uses: actions/checkout@v2
19+
with:
20+
ref: "traffic"
21+
22+
# Calculates traffic and clones and stores in CSV file
23+
- name: GitHub traffic
24+
uses: sangonzal/[email protected]
25+
env:
26+
TRAFFIC_ACTION_TOKEN: ${{ secrets.TRAFFIC_ACTION_TOKEN }}
27+
28+
# Commits files to repository
29+
- name: Commit changes
30+
uses: EndBug/add-and-commit@v4
31+
with:
32+
author_name: Jessica Scheick
33+
message: "GitHub traffic"
34+
add: "./traffic/*"
35+
ref: "traffic" # commits to branch "traffic"

.gitignore

+7-1
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,10 @@ venv.bak/
116116
*.hdf5
117117
*.csv
118118
*.zarr
119-
*.tif
119+
*.tif
120+
121+
# data file exception for tracking info
122+
!clones.csv
123+
!views.csv
124+
!downloads_data.csv
125+
!sys_downloads_data.csv

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ install:
66

77
stages:
88
- name: basic tests
9-
if: type = push OR type = pull_request
9+
if: (type = pull_request) OR (type = push AND repo = icesat2py/icepyx AND branch IN (master, development))
1010
- name: behind Earthdata
1111
if: branch = master OR commit_message =~ nsidc_tests OR type = cron
1212

@@ -32,6 +32,8 @@ deploy:
3232
if: commit_message =~ test_pypi
3333
skip_existing: true
3434
distributions: "sdist bdist_wheel"
35+
36+
# NOTE: the API token on Travis must be set to ALL branches, because a tag build is not considered to be on the master branch: https://travis-ci.community/t/pypi-upload-with-api-token-not-working/5338/5
3537
- provider: pypi
3638
username: "__token__"
3739
password: $PyPI_API_Token

CONTRIBUTORS.rst

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,24 @@ Project Contributors
44
The following people have made contributions to the project (in alphabetical
55
order by last name) and are considered "The icepyx Developers":
66

7+
* `Nicole Abib <https://github.com/nabib/>`_ - University of Oregon
78
* `Anthony Arendt <https://github.com/aaarendt/>`_ - University of Washington
9+
* `Kelsey Bisson <https://github.com/kelseybisson>`_ - Oregon State University
810
* `Shashank Bhushan <https://github.com/ShashankBice>`_ - University of Washington
11+
* `Alessandro Di Bella <https://github.com/alexdibella>`_ - Technical University of Denmark
912
* `Raphael Hagen <https://github.com/norlandrhagen>`_ - University of Washington
1013
* `Scott Henderson <https://github.com/scottyhq>`_ - University of Washington
1114
* `Thomas Johnson <https://github.com/loudTom>`_ - University College London
1215
* `Zheng Liu <https://github.com/liuzheng-arctic>`_ - University of Washington
16+
* `Ted Maksym <https://github.com/tedmaksym>`_ - Woods Hole Oceanographic Institution
1317
* `Joachim Meyer <https://github.com/jomey>`_ - University of Utah
1418
* `Fernando Perez <https://github.com/fperez>`_ - University of California, Berkeley
19+
* `Romina Piunno <https://github.com/RomiP>`_ - University of Toronto
20+
* `Facundo Sapienza <https://github.com/facusapienza21>`_ - University of California, Berkeley
1521
* `Jessica Scheick <https://github.com/jessicas11>`_ - Unaffiliated (ORCID: `0000-0002-3421-4459 <https://www.orcid.org/0000-0002-3421-4459>`_)
1622
* `David Shean <https://github.com/dshean>`_ - University of Washington
1723
* `Ben Smith <https://github.com/smithb>`_ - University of Washington
1824
* `Amy Steiker <https://github.com/asteiker>`_ - NSIDC, University of Colorado
19-
* `Bidhyananda Yadav <https://github.com/bidhya>`_ - Ohio State University
2025
* `Anna Valentine <https://github.com/annavalentine>`_ - Colorado School of Mines
26+
* `Molly Wieringa <https://github.com/mollymwieringa>`_ - University of Washington
27+
* `Bidhyananda Yadav <https://github.com/bidhya>`_ - Ohio State University

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Alternatively, in a command line or terminal, navigate to the folder in your clo
6363

6464
.. code-block::
6565
66-
pip install -e
66+
pip install -e .
6767
6868
6969
Future developments of icepyx may include conda as another simplified installation option.

doc/source/community/resources.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Resources Used in the Initial Development of icepyx
1010
---------------------------------------------------
1111

1212
First ICESat-2 Cryospheric Hackweek at the University of Washington (June 2019)
13-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414
This June 2019 event resulted in the production of a series of `tutorials <https://github.com/ICESAT-2HackWeek/ICESat2_hackweek_tutorials>`_, developed primarily by members of the ICESat-2 Science Team and early data users, aimed at educating the cryospheric community in obtaining and using ICESat-2 datasets. During the actual Hackweek, teams of researchers and data scientists developed a series of interesting `projects <https://github.com/ICESAT-2HackWeek/projects_2019>`_ related to their interests/research.
1515

1616
The available tutorials, most of which contain one or more Jupyter Notebooks to illustrate concepts, are listed below. Additional information for citing (including licensing) and running (e.g. through a Pangeo Binder) these tutorials can be found at the above link.

doc/source/conf.py

+34-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"nbsphinx",
4040
"recommonmark",
4141
"contributors", # custom extension, from pandas
42+
"sphinxcontrib.bibtex",
4243
]
4344

4445
source_suffix = {
@@ -97,4 +98,36 @@
9798

9899

99100
def setup(app):
100-
app.add_stylesheet("style.css")
101+
# app.add_stylesheet("style.css")
102+
app.add_css_file("style.css")
103+
104+
105+
# this should possibly be moved to the sphinxext directory as a standalone .py file
106+
# -- custom style for pybtex output -------------------------------------------
107+
from pybtex.style.formatting.unsrt import Style as UnsrtStyle
108+
from pybtex.style.labels.alpha import LabelStyle as AlphaLabelStyle
109+
from pybtex.plugin import register_plugin
110+
111+
# I seem to be unable to figure out how to control what is used for the label. It would
112+
# make sense if it were fed into this function, which then just formatted it, but I can't figure out from where
113+
# class MyLabel(AlphaLabelStyle):
114+
# def format_label(self, entry):
115+
# # return entry.fields.get('comment')
116+
# return entry.key
117+
118+
119+
class MyStyle(UnsrtStyle):
120+
name = "mystyle"
121+
default_name_style = "lastfirst" # 'lastfirst' or 'plain'
122+
# default_label_style = "mylabel" # 'number' or 'alpha'
123+
default_sorting_style = "author_year_title" # 'none' or 'author_year_title'
124+
125+
def __init__(self, *args, **kwargs):
126+
super(MyStyle, self).__init__(*args, **kwargs)
127+
128+
129+
# self.label_style = MyLabel()
130+
# self.format_labels = self.label_style.format_label
131+
132+
# register_plugin("pybtex.style.labels", "mylabel", MyLabel)
133+
register_plugin("pybtex.style.formatting", "mystyle", MyStyle)

doc/source/index.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ icepyx is both a software library and a community composed of ICESat-2 data user
4343
:caption: Community and Resources
4444

4545
community/resources
46-
community/contact
46+
community/contact
47+
tracking/tracking

doc/source/tracking/icepyx_pubs.bib

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
@misc{2020_IS2-HW-tutorials,
2+
author = {Arendt, Anthony and
3+
Scheick, Jessica and
4+
Shean, David and
5+
Buckley, Ellen and
6+
Grigsby, Shane and
7+
Haley, Charley and
8+
Heagy, Lindsey and
9+
Mohajerani, Yara and
10+
Neumann, Tom and
11+
Nilsson, Johan and
12+
Markus, Thorsten and
13+
Paolo, Fernando S. and
14+
Perez, Fernando and
15+
Petty, Alek and
16+
Schweiger, Axel and
17+
Smith, Benjamin and
18+
Steiker, Amy and
19+
Alvis, Sebastian and
20+
Henderson, Scott and
21+
Holschuh, Nick and
22+
Liu, Zheng and
23+
Sutterly, Tyler},
24+
title = {2020 {ICESat-2 Hackweek Tutorials}},
25+
month = aug,
26+
year = 2020,
27+
publisher = {Zenodo},
28+
version = {1.0.0},
29+
doi = {10.5281/zenodo.3966463},
30+
url = {https://doi.org/10.5281/zenodo.3966463},
31+
comment = {tutorials}
32+
}
33+
34+
@misc{js2019agu,
35+
author = {Scheick, J and Arendt, A and Heagy, L and Perez, F},
36+
note = {Abstract and poster. American Geophysical Union Fall Meeting, San Francisco, California, USA. 9-13 December 2019.},
37+
title = {{Introducing} icepyx, an open source {Python} library for obtaining and working with {ICESat-2} data},
38+
year = {2019},
39+
comment = {abstract,poster},
40+
doi = {10.1002/essoar.10501423.1},
41+
}
42+
43+
@Article{tc-14-3629-2020,
44+
AUTHOR = {Li, T. and Dawson, G. J. and Chuter, S. J. and Bamber, J. L.},
45+
TITLE = {Mapping the grounding zone of Larsen~C Ice Shelf, Antarctica, from ICESat-2 laser altimetry},
46+
JOURNAL = {The Cryosphere},
47+
VOLUME = {14},
48+
YEAR = {2020},
49+
NUMBER = {11},
50+
PAGES = {3629--3643},
51+
URL = {https://tc.copernicus.org/articles/14/3629/2020/},
52+
DOI = {10.5194/tc-14-3629-2020}
53+
}
16.9 KB
Loading

0 commit comments

Comments
 (0)