Comments (8)
thanks for replying so quickly @kvos . I know you said the forum was best for posting, but I was hoping we could arrange a time to discuss coaststat more. Although I have read your literature on the tool (somewhat obsessively lol), I would love the chance to speak to more aspects of it, if possible.
For example, I wanted to discuss the possibility of modifying your creation, changing certain aspects of the scripting, to expand the capability outside of EE. While I have done this somewhat successifuly, I have only done so in dev and would of course not publish (or commit) without discussing with you first. I hope you do have time, it would be wonderful to discuss further. Some general questions/comments are provided below for your considerations.
[Things I have modified, in DEV]
+Changes made to platform/vehicle : Expanded to allow a greater swath of sats, including DigitalGlobe platforms.
+Modified calls to retrieve metadata
and others, to allow extraction of metadata from OTH platforms and file types.
Things for consultation/consideration:
-Cloud masking: As some platforms do not have a QA band, is there a way to omit cloud masking? From the scripting, this plays an important part - being present in much of the required arguments. I have adjusted to (try) and remove the requirement, but the cascading effects have made the process slow.
-NDWI/NDVI: Some platforms do not carry the bands utilized by coastsat, when calculating NDVI & NDWI. However, some literature does exist with success at different band combinations. For example, WorldView2 can combine the following, to determine NDVI & NDWI values:
NDVI = NIR2 - R / NIR2 +R
NDWI = CoastalBlue - NIR2 / CoastalBlue + NIR2
from coastsat.
hi @phke5716 ,
So each image is multi-spectral so it has several bands. In this case we only need RGB,NIR,SWIR1 and the QA band to run CoastSat, so the other bands are ignored (SWIR2, thermal..etc). All the bands with the same resolution are stacked together and downloaded as a .tif file. Then, the .tif file is read and preprocessed.
BTW I didn't receive your emails, most probably they ended up in the junk folder (that's why is better not to email these days but to use this forum)
from coastsat.
hi @phke5716, making CoastSat compatible with other satellite missions would be great!
You can omit cloud masking by just creating a boolean array with all False:
cloud_mask= np.zeros((im_ms.shape[0],im_ms.shape[1)).astype(bool)
You can also adjust the spectral indices using different bands to calculate NDVI and NDWI. NDVIThe spectral indices are mainly used for the classifier so you can train a classifier for your specific sensor with different spectral indices as the ones you mentioned, it should work fine as well. The only index that may be hard to replace is the MNDWI (SWIR1 - Green)/(SWIR1 + Grenn) as this is the one that is used to contour the shorelines. If you are working on a fork, I can also have a look and any pull request will be highly appreciated!
We are currently adding compatibility with Planet Labs imagery, so also having Digital Globe would be a great enhancement.
Are you working for a universitiy?
from coastsat.
Hello @kvos, I am using the band combinations from Maglione, Parente & Vallario (2014) [1] to calculate the indices {NDVI, NDWI}.
Because the imagery is not accessed from EE (although, I have emailed them regarding this), there is some substantial changes to both the ‘get_metadata’ and ‘preprocess’.
Do you have a good email I can reach out to? That way I can expand in more detail ^_^
[1]https://www.tandfonline.com/doi/pdf/10.5721/EuJRS20144739”
from coastsat.
@kvos forgot to add; is there a reason you chose MLP over CNN? I was thinking, ArcGIS has recently added a ‘deep learning’ toolbox. From what I gather, the labeled raster is chipped and exported where it is trained (usually via CNN). I was thinking of doing something similar but wonder if you already approached this and decided to go a different route - btw, I believe (based off your writings) it was considered but pixel-wise classification was more accurate?
from coastsat.
@kvos see, omg this is why chat via email (or tele) would work best-my brain and fingers don’t match ^_^. Regarding Arc, I have tried (unsuccessfully) to train a new classifier from a labeled raster. Everything went ok until trying to prepare the data (after labeling). I can show you via fork later today. Short story: raster is read in and pixel values are the labels [0,1,2,3]. However, joining them with the coasat training data is proving elusive- mostly due to the dictionary, specifically when ‘bool’ is checked.
from coastsat.
There is a chat https://gitter.im/CoastSat/community, it's also on one of the badges in the README
CNN is great and state-of-the-art (pixel-wise MLP quite obsolete) but requires much more training data - and keep in mind that to train a CNN you have to label the entire image, which is not the case in the coastsat training data.
In my opinion, if you want to go the CNN way the best would be transfer learning, and finding a good pretrained CNN for semantic classification of satellite images
from coastsat.
Whoop! Thought I closed this ^_^
from coastsat.
Related Issues (20)
- 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
- The meanings of the values before and after tidal adjustment, respectively. HOT 2
- Retrieve 2D tidally-corrected shoreline as shp/geojson HOT 1
- error while downloading HOT 6
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.