GithubHelp home page GithubHelp logo

Comments (8)

 avatar commented on June 12, 2024 1

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.

kvos avatar kvos commented on June 12, 2024

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.

kvos avatar kvos commented on June 12, 2024

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.

 avatar commented on June 12, 2024

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.

 avatar commented on June 12, 2024

@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.

 avatar commented on June 12, 2024

@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.

kvos avatar kvos commented on June 12, 2024

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.

 avatar commented on June 12, 2024

Whoop! Thought I closed this ^_^

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.