Skip to content

Commit

Permalink
add new guide to register an existing project
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Sep 17, 2024
1 parent c59837c commit 8adaa04
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/google-earth-enable-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@

![search](https://github.com/user-attachments/assets/e0296b63-ae3c-460e-9af2-3241e44dba22)


### Step 4: Click Earth Engine

![pop_up](https://github.com/user-attachments/assets/0a864add-4d20-4f2d-a75b-2333297276af)
![search api for ee](https://github.com/user-attachments/assets/5ccc60ed-370b-4869-80a8-d60139103c59)


### Step 5: Enable the API

Expand Down
74 changes: 74 additions & 0 deletions docs/register-existing-gee-account.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Register existing account with Google Earth Engine

This tutorial is for existing users of CoastSeg who need to use a Google Cloud Project in order to continue using GEE.

### Step 1: Check if you have a cloud project


1. Visit: [Google Earth Engine Registration](https://code.earthengine.google.com/register)
2. Sign in with the email you have used with CoastSeg


![1_sign_up_screen](https://github.com/user-attachments/assets/17b4108a-32f3-4a54-b813-9c0a4bddb539)

### Step 2:
![2_paid_useage](https://github.com/user-attachments/assets/7415ff08-678f-4562-b313-2017d0da6593)


### Step 3: Choose an existing project

If you have no created a project before then follow the [register for a new cloud project guide](https://satelliteshorelines.github.io/CoastSeg/google-earth-engine-setup/)

![choose existing project to register](https://github.com/user-attachments/assets/5073137c-9b54-4410-b397-be4604e0d6a8)

### Step 4: Register the Project

1. If your project is already registered it will state "project already registered"

![project already registered](https://github.com/user-attachments/assets/c785fb7d-50d2-41d1-a903-638856b6870d)

2. If the project is NOT registered it will ask you to confirm your registration

![register existing project confirm screen](https://github.com/user-attachments/assets/dd468b47-4d46-4201-9c4c-c0c0c471a1cc)


### Step 5: Finish Registering the Project

![success registered new project](https://github.com/user-attachments/assets/fe27985e-cc31-49fc-9187-1576ae8990f0)

After you click confirm the GEE console will open. Close it. We will not be using it.

![5_console](https://github.com/user-attachments/assets/33806a7b-c75f-4afa-a206-6d84ffa9399d)

## Step 6: Open the Google Cloud Console

Visit the [google console homepage](https://console.cloud.google.com/welcome)

Click your the project you registered in the console.

![select project in console](https://github.com/user-attachments/assets/97c8b47d-63ab-4c66-a188-2e98da2852ce)

## Step 7: Verify the Google Earth Engine API is Enabled

Follw the guide the [Verify GEE API is Enabled](https://satelliteshorelines.github.io/CoastSeg/google-earth-enable-api/)

## Step 8: Open the Notebook

1. Open the notebook

```
conda activate coastseg
cd <location you installed CoastSeg>
jupyter lab SDS_coastsat_classifier.ipynb
```

2. Enter in your project ID

My ID is 'ee-sf2309', but enter the id you entered with your email, then run the cell

```
initialize_gee(auth_mode = "notebook",project='ee-sf2309')
```

![gee id in notebook side by side](https://github.com/user-attachments/assets/3b291e2f-e772-4865-bd61-d5695295ff13)
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ nav:
- Google Earth Engine Setup:
- 1. Sign up for Google Earth Engine for the First Time: google-earth-engine-setup.md
- 2. Check if API is Enabled: google-earth-enable-api.md
- 3. Register an existing project with Google Earth Engine: register-existing-gee-account.md
- Installation:
- Basic Installation Guide: basic-install-guide.md
- Secure Installation Guide: secure-install-guide.md
Expand Down

0 comments on commit 8adaa04

Please sign in to comment.