Skip to content

Commit c1d718a

Browse files
simplify GEE authentication + update to external material links (#2607)
* simplify GEE authentication + update to external material links * Update docs/apps/geoconda.md Co-authored-by: EetuHuuskoCSC <116141296+EetuHuuskoCSC@users.noreply.github.com> --------- Co-authored-by: EetuHuuskoCSC <116141296+EetuHuuskoCSC@users.noreply.github.com>
1 parent 2d7bdfa commit c1d718a

File tree

1 file changed

+11
-38
lines changed

1 file changed

+11
-38
lines changed

docs/apps/geoconda.md

Lines changed: 11 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -168,27 +168,15 @@ spyder
168168
* `os.environ["_JAVA_OPTIONS"] = "-Xmx4g"` in the beginning of your Python code.
169169

170170
### Google Earth Engine authentication set up in Puhti
171-
For using Google Earth Engine (GEE) API with `earthengine-api` package, one needs to have an account in GEE. Before first usage, also set up GEE authentication in Puhti:
172-
173-
1. Open Puhti web interface
174-
2. Start Desktop app
175-
3. In the Desktop, open:
176-
* Web Browser under Applications menu and
177-
* Terminal from shortcuts
178-
4. In the Terminal:
171+
For using Google Earth Engine (GEE) API with `earthengine-api` package, one needs to have an account and project in GEE. Before first usage, also set up GEE authentication in Puhti:
179172

180173
```
181174
module load geoconda
182-
python
183-
184-
import os
185-
os.environ['PATH'] = '/appl/opt/csc-cli-utils/google-cloud-sdk/bin:' + os.environ['PATH']
186-
187-
import ee
188-
ee.Authenticate()
175+
export PATH=/appl/opt/csc-cli-utils/google-cloud-sdk/bin:$PATH
176+
earthengine authenticate
189177
```
190178

191-
This prints out a long link and asks for a code. Copy the link to the web browser and open the Google log-in page. Log-in and copy the created code back to Python.
179+
This prints out a long link and asks for a code. Copy the link to the web browser of your local laptop. Follow the instructions on the web page and finally copy the created code back to Terminal.
192180

193181
## Using Allas or LUMI-O from Python
194182

@@ -224,20 +212,17 @@ Geoconda conda environment files and `download_wbt` and `start_wbt.py` needed fo
224212

225213
## References
226214

227-
- [CSC Python parallelisation examples]
228-
- [Python spatial] libraries
229-
- [Geoprocessing with Python using Open Source GIS]
230-
- [GeoExamples], a lot of examples of using Python for spatial analysis
231-
- [Automating GIS processes course materials], where most of the exercises are done using Python (University of Helsinki)
232-
- [Geohack Week materials]
233-
- [Multiprocessing Basics]
234-
- [Geographic Data Science with Python]
235-
- [Aalto Spatial Analytics course material]
215+
- [CSC Python parallelisation examples](https://github.com/csc-training/geocomputing/tree/master/python/puhti)
216+
- [Multiprocessing Basics](https://pymotw.com/2/multiprocessing/basics.html)
217+
- [Automating GIS processes course materials](https://automating-gis-processes.github.io) by University of Helsinki
218+
- [Aalto Spatial Analytics course material](https://spatial-analytics.readthedocs.io/en/latest/course-info/course-info.html) by Henrikki Tenkanen / Aalto University
219+
- [Introduction to GIS Programming](https://geog-312.gishub.org/index.html) by Dr. Qiusheng Wu / University of Tennessee
220+
- [Geographic Data Science with Python](https://geographicdata.science/book/intro.html) by Sergio Rey, Dani Arribas-Bel, Levi Wolf
221+
- [Python Foundation for Spatial Analysis](https://courses.spatialthoughts.com/python-foundation.html) by Ujaval Gandhi
236222

237223
------------------------------------------------------------------------
238224

239225

240-
[Conda]: https://conda.io/docs/
241226
[cartopy]: http://scitools.org.uk/cartopy/
242227
[descartes]: https://pypi.python.org/pypi/descartes
243228
[fiona]: https://pypi.python.org/pypi/Fiona
@@ -261,16 +246,4 @@ Geoconda conda environment files and `download_wbt` and `start_wbt.py` needed fo
261246
[snappy]: https://senbox.atlassian.net/wiki/spaces/SNAP/pages/19300362/How+to+use+the+SNAP+API+from+Python
262247
[SNAP]: snap.md
263248
[spyder]: https://docs.spyder-ide.org/
264-
[Conda environments]: https://conda.io/docs/user-guide/tasks/manage-environments.html#
265-
[Bioconda]: bioconda.md
266-
[Python spatial]: https://github.com/SpatialPython/spatial_python/blob/master/packages.md
267-
[Geoprocessing with Python using Open Source GIS]: http://www.gis.usu.edu/%7Echrisg/python/2009/
268-
[GeoExamples]: https://geoexamples.com/
269-
[Automating GIS processes course materials]: https://automating-gis-processes.github.io
270-
[Geohack Week materials]: https://geohackweek.github.io/schedule.html
271-
[Multiprocessing Basics]: https://pymotw.com/2/multiprocessing/basics.html
272249
[sentinelsat]: https://sentinelsat.readthedocs.io/en/stable/index.html
273-
[CSC Python parallelisation examples]: https://github.com/csc-training/geocomputing/tree/master/python/puhti
274-
[Geographic Data Science with Python]: https://geographicdata.science/book/intro.html
275-
[Aalto Spatial Analytics course material]: https://spatial-analytics.readthedocs.io/en/latest/course-info/course-info.html
276-

0 commit comments

Comments
 (0)