Git Product home page Git Product logo

Comments (6)

kvos avatar kvos commented on May 29, 2024

hi seamus, I had a look at your document and the issue showed up immediately and is here:
image
You need the 8-days revisits to be able to capture the sping-neap fortnightly tidal cycles, unfortunately in your dataset most intervals are at 16 days. With 16 days you cannot capture the tidal cycle, that's why there is no peak in your spectrum. Good though that the algorithm flagged this with large confidence bands.
Is there something you can try to get more revisits at your site?

from coastsat.slope.

seamuslo avatar seamuslo commented on May 29, 2024

@kvos thanks for that information, its good to know that 8-day revisits are necessary for this analysis to run properly.

The first thing that comes to mind is including Sentinel data to get more revisits. Is that possible? Or will this algorithm only work with landsat?

from coastsat.slope.

seamuslo avatar seamuslo commented on May 29, 2024

Hi @kvos , to see if I could use Sentinel data to get more revisits, I reran the script including Sentinel images. To implement this, I commented out the lines that exclude Sentinel in section 1:

`#remove S2 shorelines (the slope estimation algorithm needs only Landsat shorelines)

if 'S2' in output['satname']:
idx_S2 = np.array([_ == 'S2' for _ in output['satname']])
for key in output.keys():
output[key] = [output[key][_] for _ in np.where(~idx_S2)[0]]`

and then utilizing an version of the alternate environment script to generate tide_sat that also included sentinel images (because the creation of tidesat is in the "Option 1" Tide FES section of the code, that does not work with Coastsat due to pyfes conflicts).

I now see more revisits in the lower end of the range, but now the final output of the code seems broken. Could you provide any insight into this?

My full code output is attached
pekalongan script output with sentinel images.pdf

from coastsat.slope.

seamuslo avatar seamuslo commented on May 29, 2024

My apologies for the double message @kvos , but I made some edits to the code that resulted in the a new final beach slope estimate.

I think the reason that there was no output in the version of the script from my previous comment is because I had circumvented the portion of the code in Part 5 that removes NaNs. I made a change so that the code removes NaNs again from the dates, tide, and composite variables.

Now I am getting an output of an estimated beach slope from the final portion of the code (see attached). However, the confidence band is still rather large, and the beach slope estimate is the same for each transect.

Do you have any thoughts as to how these results look to you and whether you feel that the code is running properly?

Full output here:
pekalongan script output with sentinel images_nan_code_added.pdf

from coastsat.slope.

kvos avatar kvos commented on May 29, 2024

hi @seamuslo ,

It would be interesting to test if it's possible to use S2 as well. The current algorithm was specifically designed to use with Landsat and that theoretical 8-days revisit period is the key (to capture the fortnightly tidal cycles). If you include S2, the revisits become very irregular, as you see in your plots. I think it needs some development and testing to be used with S2 as well since the intervals are now very different from the Landsat-only shorelines. You need to test different frequency grids and see which tidal components can be captured and focus on the frequency at which the tidal energy is large. In your plot below the selected band looks quite weak. Good luck, it's a cool project.

image

from coastsat.slope.

juni666666 avatar juni666666 commented on May 29, 2024

where did you get these cvs ?

from coastsat.slope.

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.