-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "In users/parevalo_bu/gee-ccdc-tools:ccdcUtilities/ccdc.js fit.select is not a function" #17
Comments
this is my code: var utils = require('users/parevalo_bu/gee-ccdc-tools:ccdcUtilities/api'); // Classification parameters var studyRegion = ee.FeatureCollection('USDOS/LSIB_SIMPLE/2017') var params = { print(filteredLandsat.size()) //Map.addLayer (filteredLandsat, {}, 'Image'); // Load Landsat imagery //Map.addLayer (landsatCollection, {}, 'Image'); // Print the number of images in the Landsat collection // Get one image from the Landsat collection // Print the bands of the sample image // Optionally, you can sort the collection by date // Use the sorted Landsat collection as the input to your change detection algorithm //params.ChangeDetection['collection'] = filteredLandsat //*************************************// // are they needed?? // **************************** // Print the segmentation results // Visualize the segmentation results on the map // ********************** part 2 ************************************// /* // Load the training data FeatureCollection from the specified path // // var trainingData = ee.FeatureCollection(params.Classification.trainingPath); var trainingData = ee.FeatureCollection("users/Sraboni_Sarker/sample_test1"); // // Print out more features from the training data // // Don't Delete // Load training data // Compute histogram before remapping print('Histogram before remapping:', histogramBefore); // Remap class labels // Compute histogram after remapping print('Histogram after remapping:', histogramAfter); // Set year property for all features // Set year property for all features // Print the first feature to verify changes /* trainingData = trainingData.map(function(feat) { // Define bands to use in classification // Define coefficients to use in classification // Segment ids // Property corresponding to year of training data // Define path to change detection results // Load ccd image stack with coefficients and change information print('CCD Image:', ccdImage); // Finally, get ancillary topographic and climate data var trainingData = utils.Classification.getTrainingCoefsAtDate( // Filter points with no data print('First training point with predictors:', trainingData.first()); Export.table.toAsset({ //trainingData = utils.Classification.assignIds(trainingData, 'ID') |
var changeResults = ee.Image('users/Sraboni_Sarker/Output') |
Hi, thank you very much for your excellent work.
I'm having a problem with the new version, so I'm asking for your help. There is this issue "In users/parevalo_bu/gee-ccdc-tools:ccdcUtilities/ccdc.js
fit.select is not a function" when I want to get the result from "var ccdImage = utils.CCDC.buildCcdImage(params.Classification.changeResults, params.Classification.segs.length, params.Classification.bandNames)".
Looking forward to hearing from you back soon.
Thank you.
Regards,
Sraboni
Belgium.
The text was updated successfully, but these errors were encountered: