GithubHelp home page GithubHelp logo

Comments (13)

hamidj2019 avatar hamidj2019 commented on June 12, 2024

Hi Kilian,

Could you please advise about the message above?

from coastsat.

kvos avatar kvos commented on June 12, 2024

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

from coastsat.

hamidj2019 avatar hamidj2019 commented on June 12, 2024

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,

from coastsat.

kvos avatar kvos commented on June 12, 2024

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.

from coastsat.

sepaas2019 avatar sepaas2019 commented on June 12, 2024

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...')

from coastsat.

sepaas2019 avatar sepaas2019 commented on June 12, 2024

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

from coastsat.

kvos avatar kvos commented on June 12, 2024

@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

from coastsat.

sepaas2019 avatar sepaas2019 commented on June 12, 2024

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.

from coastsat.

kvos avatar kvos commented on June 12, 2024

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.

from coastsat.

sepaas2019 avatar sepaas2019 commented on June 12, 2024

Hello Kilian,

Thanks for your input. However, I would need to get a full clarification on one thing. In the code there is a part for the region of interest named as polygon. So it should be a rectangle?
Since it was written a polygon we had the impression that the coastal area can be defined as a polygon. Could you please fully clarify this?
I have used a set of coordinates that represent a polygon and not necessary a rectangle.

  • If yes, that is will be good news to use a polygon.
  • If not, does it mean that it is necessary to divide the coastal area to many rectangle area? This might add to the work we need to do significantly.
    Best regards

from coastsat.

kvos avatar kvos commented on June 12, 2024

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.

from coastsat.

sepaas2019 avatar sepaas2019 commented on June 12, 2024

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.

from coastsat.

kvos avatar kvos commented on June 12, 2024

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.

from coastsat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.