Git Product home page Git Product logo

rivwidthcloudpaper's Issues

Error: Image.clip: Parameter 'input' is required. (Error code: 3)

// Assume 'aoi' is defined elsewhere in your script as your area of interest
var geometry = ee.Geometry.Rectangle([-89.60113734129604, 36.32131447834511, -89.48990076903041, 36.451768707535194]);

Map.addLayer(geometry)
Map.centerObject(geometry)
// Load the RivWidthCloud function library
var fns = require('users/eeProject/RivWidthCloudPaper:rwc_landsat.js');

// Load the image using its ID and clip it to the area of interest
var image = ee.Image("LANDSAT/LC08/C02/T1_L2/LC08_023034_20231002").clip(geometry);

// Setting the parameters for the RivWidthCloud (RWC) function
var rwc = fns.rwGenSR('Jones2019', 4000, 333, 500, geometry);

// Apply the RWC function to the clipped image
var widths = rwc(image);

// Remove the geometry before exporting the width as a CSV file
widths = widths.map(function(f) { return(f.setGeometry(null)); });

// Export the result as a CSV file into Google Drive
Export.table.toDrive({
collection: widths,
description: "Landsat_Widths",
folder: "asad",
fileNamePrefix: "widths",
fileFormat: "CSV"
});

"When I run this code for my study area using a single image it gives me this error, I even try this method, downloaded the image in assests and then I applied the code same error is coming."

Rivwidthcloud

该方法若将landsat数据替换成S2_SR数据,应该怎样实现呢

Empty width output file

Hello,

I have been working with my student on applying this code to some locations in Somalia and Ethiopia. We have been using the javascript version described here. We are able to run your example, and get good data out, but when we run it for another location the code outputs an empty csv file with no data, not even the headers of the csv file.

You can see the location and landsat image we are using here.

I wondered if this was an issue in detecting rivers in arid landscapes, so I experimented with some reaches of rivers in locations to your example, but had the same problems.

Are you able to offer any insight into what we are doing wrong?

Many thanks!

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.