Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking to GEE server [HTTP error 403] #28

Closed
hamidj2019 opened this issue Jul 27, 2019 · 13 comments
Closed

Linking to GEE server [HTTP error 403] #28

hamidj2019 opened this issue Jul 27, 2019 · 13 comments
Labels
installation Issue with the installation of the coastsat package

Comments

@hamidj2019
Copy link

hamidj2019 commented Jul 27, 2019

Hi Kilian,

I have set up this CoastSAT after our previous discussions. I have been trying to use Jupitor and look at the example to be able to fully capture what is going on. I received the following messages. part a and part b. I was wondering if somebody can advise what is going on?
Is this on the right track or?

part a

part b

Thanks for your cooperation and interaction in advance.
Best wishes

@hamidj2019 hamidj2019 changed the title EException: Server returned HTTP code: 403 Messages during running example Jul 27, 2019
@hamidj2019
Copy link
Author

Hi Kilian,

Could you please advise about the message above?

@hamidj2019 hamidj2019 changed the title Messages during running example Some problem - Messages during running example Jul 28, 2019
@kvos
Copy link
Owner

kvos commented Jul 28, 2019

hi @hamidj2019 , this means that the coastsat environment has not been setup properly and it cannot initialise the google-earth-engine package. Did you follow step 1.2 in the README and activated the gee python API? in that step you will have to sign in with a gmail account

@hamidj2019
Copy link
Author

hamidj2019 commented Aug 5, 2019

Hi Kilian,
Thanks for your input. In response to your question, Yes, we did that. I again tried and followed the same procedure but the same messages appears. Any input?
I also tried to stop the kernel once and re-run it from the beginning again but no success.
could it be that it is just showing the previous messages?

The environment is active as well as the gee python API and Jupiter.

Looking forward to hearing from you on this matter.

Best wishes,

@kvos
Copy link
Owner

kvos commented Aug 8, 2019

ok please try this:

  • open anaconda prompt
  • conda activate coastsat
  • python
  • import ee
  • ee.Initialize()
    So we can check if the gee python api package is installed correctly.

@sepaas2019
Copy link

Hi,
Thanks for your previous input.
I have tried to modify the example file and input the coordinates of the region of interest.
I got the following message. I would appreciate your input on how to solve the issue:

Unreadable Notebook: C:\Users...\CoastSat-master\CoastSat-master\example_jupyter_Copy1.ipynb NotJSONError('Notebook does not appear to be JSON: '{\n "cells": [\n {\n "cell_type": "m...')

@sepaas2019
Copy link

sepaas2019 commented Aug 20, 2019

Q2. By the way, we also tried to use a finer mesh but somewhere during the process I realized that CoastSat modifies the coordinates....which I found a bit strange...Is this normal?

However, I found the following error message. Could you please help on the following message:

Capture - Error 20 Agust 2019

@kvos
Copy link
Owner

kvos commented Aug 21, 2019

@sepaas2019 and @hamidj2019 , for me (or others) to help you with these issues, it would be great if you could provide more details about the problems that you are having:

  • introduce the problem
  • provide enough information so that other can reproduce the problem
  • include your settings parameters and the code that you are running

thanks,
kilian

@sepaas2019
Copy link

Question about the # region of interest (longitude, latitude)
It says in the example that it should be a polygon.
Are the points should be "ONLY" the vertices of the region/polygon? or can they be vertices of the corners of the polygon + several points on each side of the polygon? I have about 100 pairs (longitude, latitude) that simply define the region as a boundary.
Your insight will be appreciated to clarify how exactly the code is defined in CoastSAT.

@kvos
Copy link
Owner

kvos commented Aug 23, 2019

this is how you should input your coordinates:

polygon = [[[151.301454, -33.700754],
            [151.311453, -33.702075],
            [151.307237, -33.739761],
            [151.294220, -33.736329],
            [151.301454, -33.700754]]]
  • 5 pairs of coordinates, first coordinate is always LONGITUDE
  • Coordinate system should be WGS84 spherical
  • You start at one edge of your rectangle and enter the pair of coordinates in the clockwise direction, the last pair of coordinates is the same as the first one
  • Only rectangles are accepted.

@kvos kvos mentioned this issue Aug 23, 2019
@sepaas2019

This comment has been minimized.

@kvos
Copy link
Owner

kvos commented Aug 25, 2019

yes you are right, you don't need to input a rectangle, just a polygon with 4 vertices in clockwise order. Then the cropped image will be a rectangular however.

@sepaas2019
Copy link

sepaas2019 commented Aug 26, 2019

Hello, let us say if the region of interest is like a L-shape (the approximate SHAPE of the shore-line). Then it is not possible to use just a rectangle or a polygon with four vertices "only"as it can be imagined that if it crops it as you said we might loose some information (just a speculation). I have the closed loop/polygon of the total coast-line but it is about 100 points/vertices. Could we use all these points? I think if your code allows or can handle them basically more points should result in more accurate shoreline.
Will your code handle them okay? - from the view point of correct processing in the next steps?
I will be looking forward to hearing from you
Many thanks.

@kvos
Copy link
Owner

kvos commented Aug 26, 2019

Only 5 pairs of coordinates are accepted, the last one being the exact same as the first one, more than 5 vertices will result in an error. It's fine to have a larger area than your shoreline in the image, you can define a reference shoreline in one of the next steps to focus the detection on that L-shaped shoreline.

@kvos kvos closed this as completed Sep 23, 2019
@kvos kvos changed the title Some problem - Messages during running example Linking to GEE server [HTTP error 403] Dec 18, 2019
@kvos kvos added the installation Issue with the installation of the coastsat package label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Issue with the installation of the coastsat package
Projects
None yet
Development

No branches or pull requests

3 participants