ee.Image.mod

image1 এবং image2 তে ব্যান্ডের প্রতিটি মিলে যাওয়া জোড়ার জন্য দ্বিতীয় দ্বারা ভাগ করা প্রথম মানের অবশিষ্টাংশ গণনা করে৷ যদি image1 বা image2 এর শুধুমাত্র 1 ব্যান্ড থাকে, তাহলে এটি অন্য চিত্রের সমস্ত ব্যান্ডের বিরুদ্ধে ব্যবহার করা হয়। যদি চিত্রগুলিতে একই সংখ্যক ব্যান্ড থাকে, কিন্তু একই নাম না হয়, তবে সেগুলি প্রাকৃতিক ক্রমে জোড়া ব্যবহার করা হয়। আউটপুট ব্যান্ড দুটি ইনপুটের দীর্ঘ সময়ের জন্য নামকরণ করা হয়, অথবা যদি তারা দৈর্ঘ্যে সমান হয়, তাহলে image1 এর ক্রম অনুসারে। আউটপুট পিক্সেলের ধরন হল ইনপুট প্রকারের মিলন।

ব্যবহার রিটার্নস
Image. mod (image2) ছবি
যুক্তি টাইপ বিস্তারিত
এই: image1 ছবি যে ছবিটি থেকে বাম অপারেন্ড ব্যান্ডগুলি নেওয়া হয়েছে৷
image2 ছবি যে ছবিটি থেকে সঠিক অপারেন্ড ব্যান্ডগুলি নেওয়া হয়েছে৷

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

// A Sentinel-2 surface reflectance image.
var img = ee.Image('COPERNICUS/S2_SR/20210109T185751_20210109T185931_T10SEG');

// Subset two image bands and display them on the map.
var swir1 = img.select('B11');
var swir2 = img.select('B12');
Map.setCenter(-122.276, 37.456, 12);
Map.addLayer(swir1, {min: 0, max: 3000}, 'swir1');
Map.addLayer(swir2, {min: 0, max: 3000}, 'swir2');

// The following examples demonstrate ee.Image arithmetic methods using two
// single-band ee.Image inputs.
var addition = swir1.add(swir2);
Map.addLayer(addition, {min: 100, max: 6000}, 'addition');

var subtraction = swir1.subtract(swir2);
Map.addLayer(subtraction, {min: 0, max: 1500}, 'subtraction');

var multiplication = swir1.multiply(swir2);
Map.addLayer(multiplication, {min: 1.9e5, max: 9.4e6}, 'multiplication');

var division = swir1.divide(swir2);
Map.addLayer(division, {min: 0, max: 3}, 'division');

var remainder = swir1.mod(swir2);
Map.addLayer(remainder, {min: 0, max: 1500}, 'remainder');

// If a number input is provided as the second argument, it will automatically
// be promoted to an ee.Image object, a convenient shorthand for constants.
var exponent = swir1.pow(3);
Map.addLayer(exponent, {min: 0, max: 2e10}, 'exponent');

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।

import ee
import geemap.core as geemap

Colab (পাইথন)

# A Sentinel-2 surface reflectance image.
img = ee.Image('COPERNICUS/S2_SR/20210109T185751_20210109T185931_T10SEG')

# Subset two image bands and display them on the map.
swir_1 = img.select('B11')
swir_2 = img.select('B12')
m = geemap.Map()
m.set_center(-122.276, 37.456, 12)
m.add_layer(swir_1, {'min': 0, 'max': 3000}, 'swir_1')
m.add_layer(swir_2, {'min': 0, 'max': 3000}, 'swir_2')

# The following examples demonstrate ee.Image arithmetic methods using two
# single-band ee.Image inputs.
addition = swir_1.add(swir_2)
m.add_layer(addition, {'min': 100, 'max': 6000}, 'addition')

subtraction = swir_1.subtract(swir_2)
m.add_layer(subtraction, {'min': 0, 'max': 1500}, 'subtraction')

multiplication = swir_1.multiply(swir_2)
m.add_layer(multiplication, {'min': 1.9e5, 'max': 9.4e6}, 'multiplication')

division = swir_1.divide(swir_2)
m.add_layer(division, {'min': 0, 'max': 3}, 'division')

remainder = swir_1.mod(swir_2)
m.add_layer(remainder, {'min': 0, 'max': 1500}, 'remainder')

# If a number input is provided as the second argument, it will automatically
# be promoted to an ee.Image object, a convenient shorthand for constants.
exponent = swir_1.pow(3)
m.add_layer(exponent, {'min': 0, 'max': 2e10}, 'exponent')
m
,image1 এবং image2 তে ব্যান্ডের প্রতিটি মিলে যাওয়া জোড়ার জন্য দ্বিতীয় দ্বারা ভাগ করা প্রথম মানের অবশিষ্টাংশ গণনা করে৷ যদি image1 বা image2 এর শুধুমাত্র 1 ব্যান্ড থাকে, তাহলে এটি অন্য চিত্রের সমস্ত ব্যান্ডের বিরুদ্ধে ব্যবহার করা হয়। যদি চিত্রগুলিতে একই সংখ্যক ব্যান্ড থাকে, কিন্তু একই নাম না হয়, তবে সেগুলি প্রাকৃতিক ক্রমে জোড়া ব্যবহার করা হয়। আউটপুট ব্যান্ড দুটি ইনপুটের দীর্ঘ সময়ের জন্য নামকরণ করা হয়, অথবা যদি তারা দৈর্ঘ্যে সমান হয়, তাহলে image1 এর ক্রম অনুসারে। আউটপুট পিক্সেলের ধরন হল ইনপুট প্রকারের মিলন।

ব্যবহার রিটার্নস
Image. mod (image2) ছবি
যুক্তি টাইপ বিস্তারিত
এই: image1 ছবি যে ছবিটি থেকে বাম অপারেন্ড ব্যান্ডগুলি নেওয়া হয়েছে৷
image2 ছবি যে ছবিটি থেকে সঠিক অপারেন্ড ব্যান্ডগুলি নেওয়া হয়েছে৷

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

// A Sentinel-2 surface reflectance image.
var img = ee.Image('COPERNICUS/S2_SR/20210109T185751_20210109T185931_T10SEG');

// Subset two image bands and display them on the map.
var swir1 = img.select('B11');
var swir2 = img.select('B12');
Map.setCenter(-122.276, 37.456, 12);
Map.addLayer(swir1, {min: 0, max: 3000}, 'swir1');
Map.addLayer(swir2, {min: 0, max: 3000}, 'swir2');

// The following examples demonstrate ee.Image arithmetic methods using two
// single-band ee.Image inputs.
var addition = swir1.add(swir2);
Map.addLayer(addition, {min: 100, max: 6000}, 'addition');

var subtraction = swir1.subtract(swir2);
Map.addLayer(subtraction, {min: 0, max: 1500}, 'subtraction');

var multiplication = swir1.multiply(swir2);
Map.addLayer(multiplication, {min: 1.9e5, max: 9.4e6}, 'multiplication');

var division = swir1.divide(swir2);
Map.addLayer(division, {min: 0, max: 3}, 'division');

var remainder = swir1.mod(swir2);
Map.addLayer(remainder, {min: 0, max: 1500}, 'remainder');

// If a number input is provided as the second argument, it will automatically
// be promoted to an ee.Image object, a convenient shorthand for constants.
var exponent = swir1.pow(3);
Map.addLayer(exponent, {min: 0, max: 2e10}, 'exponent');

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।

import ee
import geemap.core as geemap

Colab (পাইথন)

# A Sentinel-2 surface reflectance image.
img = ee.Image('COPERNICUS/S2_SR/20210109T185751_20210109T185931_T10SEG')

# Subset two image bands and display them on the map.
swir_1 = img.select('B11')
swir_2 = img.select('B12')
m = geemap.Map()
m.set_center(-122.276, 37.456, 12)
m.add_layer(swir_1, {'min': 0, 'max': 3000}, 'swir_1')
m.add_layer(swir_2, {'min': 0, 'max': 3000}, 'swir_2')

# The following examples demonstrate ee.Image arithmetic methods using two
# single-band ee.Image inputs.
addition = swir_1.add(swir_2)
m.add_layer(addition, {'min': 100, 'max': 6000}, 'addition')

subtraction = swir_1.subtract(swir_2)
m.add_layer(subtraction, {'min': 0, 'max': 1500}, 'subtraction')

multiplication = swir_1.multiply(swir_2)
m.add_layer(multiplication, {'min': 1.9e5, 'max': 9.4e6}, 'multiplication')

division = swir_1.divide(swir_2)
m.add_layer(division, {'min': 0, 'max': 3}, 'division')

remainder = swir_1.mod(swir_2)
m.add_layer(remainder, {'min': 0, 'max': 1500}, 'remainder')

# If a number input is provided as the second argument, it will automatically
# be promoted to an ee.Image object, a convenient shorthand for constants.
exponent = swir_1.pow(3)
m.add_layer(exponent, {'min': 0, 'max': 2e10}, 'exponent')
m