Comments (13)
Hi Kilian,
Could you please advise about the message above?
from coastsat.
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.
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.
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.
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.
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:
from coastsat.
@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.
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.
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.
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.
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.
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.
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)
- IndexError: list index out of range - when plotting seasonal averages and long term trends HOT 2
- Doesn't plot final seasonal and monthly trend figures HOT 1
- After opening the clash proxy software, some errors message appears HOT 1
- Tidal Correction data error:''value' must be an instance of str or bytes, not a float' HOT 7
- Quick question about water level correction HOT 1
- Problem with GEE HOT 2
- white water border in pixel classification HOT 11
- Axis limits cannot be NaN or Inf HOT 1
- CoastSAT seasonal and monthly average graphs HOT 8
- tidal correction plus setup and runup correction! HOT 2
- fail to digitize a reference shoreline HOT 2
- KeyError: 'dimensions' when retrieving S2 imagery HOT 12
- Spyder: QWidget: Must construct a Qapplication before a Qwidget. HOT 4
- Downloading question and reference shoreline question HOT 3
- Sentinel-2 images failed to download HOT 3
- CoastSat running on Colab: error with the pyfes package HOT 1
- L7 scanline error HOT 6
- Error about SDS_download.retrieve_images(inputs) HOT 1
- Coastsat to work for small atoll island of Tuvalu HOT 1
- Images not downloading HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coastsat.