মতামত জানান
ee.Filter.greaterThan
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি ইউনারী বা বাইনারি ফিল্টার তৈরি করে যা পাস হয় যদি বাম অপারেন্ড ডান অপারেন্ডের চেয়ে বড় হয়।
ব্যবহার রিটার্নস ee.Filter.greaterThan( leftField , rightValue , rightField , leftValue )
ফিল্টার
যুক্তি টাইপ বিস্তারিত leftField
স্ট্রিং, ডিফল্ট: নাল বাম অপারেন্ডের জন্য একজন নির্বাচক। যদি leftValue নির্দিষ্ট করা থাকে তাহলে নির্দিষ্ট করা উচিত নয়। rightValue
অবজেক্ট, ডিফল্ট: নাল সঠিক অপারেন্ডের মান। রাইটফিল্ড নির্দিষ্ট করা থাকলে নির্দিষ্ট করা উচিত নয়। rightField
স্ট্রিং, ডিফল্ট: নাল সঠিক অপারেন্ডের জন্য একজন নির্বাচক। যদি rightValue নির্দিষ্ট করা থাকে তাহলে নির্দিষ্ট করা উচিত নয়। leftValue
অবজেক্ট, ডিফল্ট: নাল বাম অপারেন্ডের মান। LeftField নির্দিষ্ট করা থাকলে নির্দিষ্ট করা উচিত নয়।
উদাহরণ কোড এডিটর (জাভাস্ক্রিপ্ট)
// Field site vegetation characteristics from projects in western USA.
var fc = ee . FeatureCollection ( 'BLM/AIM/v1/TerrADat/TerrestrialAIM' )
. filter ( 'ProjectName == "Colorado NWDO Kremmling FO 2016"' );
// Display field plots on the map.
Map . setCenter ( - 107.792 , 39.871 , 7 );
Map . addLayer ( fc );
// Compare the per-feature values of two properties and filter the collection
// based on the results of various relational expressions. The two properties
// to compare are invasive and non-invasive annual forb cover at each plot.
var leftProperty = 'InvAnnForbCover_AH' ;
var rightProperty = 'NonInvAnnForbCover_AH' ;
print ( 'Plots where invasive forb cover is…' );
print ( '…EQUAL to non-invasive cover' ,
fc . filter ( ee . Filter . equals (
{ leftField : leftProperty , rightField : rightProperty })));
print ( '…NOT EQUAL to non-invasive cover' ,
fc . filter ( ee . Filter . notEquals (
{ leftField : leftProperty , rightField : rightProperty })));
print ( '…LESS THAN non-invasive cover' ,
fc . filter ( ee . Filter . lessThan (
{ leftField : leftProperty , rightField : rightProperty })));
print ( '…LESS THAN OR EQUAL to non-invasive cover' ,
fc . filter ( ee . Filter . lessThanOrEquals (
{ leftField : leftProperty , rightField : rightProperty })));
print ( '…GREATER THAN non-invasive cover' ,
fc . filter ( ee . Filter . greaterThan (
{ leftField : leftProperty , rightField : rightProperty })));
print ( '…GREATER THAN OR EQUAL to non-invasive cover' ,
fc . filter ( ee . Filter . greaterThanOrEquals (
{ leftField : leftProperty , rightField : rightProperty })));
print ( '…is not greater than 10 percent different than non-invasive cover' ,
fc . filter ( ee . Filter . maxDifference (
{ difference : 10 , leftField : leftProperty , rightField : rightProperty })));
// Instead of comparing values of two feature properties using the leftField
// and rightField parameters, you can compare a property value (leftProperty)
// against a constant value (rightValue).
print ( 'Plots where invasive forb cover is greater than 20%' ,
fc . filter ( ee . Filter . greaterThan (
{ leftField : leftProperty , rightValue : 20 })));
// You can also swap the operands to assign the constant to the left side of
// the relational expression (leftValue) and the feature property on the right
// (rightField). Here, we get the complement of the previous example.
print ( 'Plots where 20% is greater than invasive forb cover.' ,
fc . filter ( ee . Filter . greaterThan (
{ leftValue : 20 , rightField : leftProperty })));
// Binary filters are useful in joins. For example, group all same-site plots
// together using a saveAll join.
var groupingProp = 'SiteID' ;
var sitesFc = fc . distinct ( groupingProp );
var joinFilter = ee . Filter . equals (
{ leftField : groupingProp , rightField : groupingProp });
var groupedPlots = ee . Join . saveAll ( 'site_plots' ). apply ( sitesFc , fc , joinFilter );
print ( 'List of plots in first site' , groupedPlots . first (). get ( 'site_plots' )); পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap
ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap Colab (পাইথন)
# Field site vegetation characteristics from projects in western USA.
fc = ee . FeatureCollection ( 'BLM/AIM/v1/TerrADat/TerrestrialAIM' ) . filter (
'ProjectName == "Colorado NWDO Kremmling FO 2016"'
)
# Display field plots on the map.
m = geemap . Map ()
m . set_center ( - 107.792 , 39.871 , 7 )
m . add_layer ( fc )
display ( m )
# Compare the per-feature values of two properties and filter the collection
# based on the results of various relational expressions. The two properties
# to compare are invasive and non-invasive annual forb cover at each plot.
left_property = 'InvAnnForbCover_AH'
right_property = 'NonInvAnnForbCover_AH'
display ( 'Plots where invasive forb cover is…' )
display (
'…EQUAL to non-invasive cover' ,
fc . filter (
ee . Filter . equals ( leftField = left_property , rightField = right_property )
),
)
display (
'…NOT EQUAL to non-invasive cover' ,
fc . filter (
ee . Filter . notEquals ( leftField = left_property , rightField = right_property )
),
)
display (
'…LESS THAN non-invasive cover' ,
fc . filter (
ee . Filter . lessThan ( leftField = left_property , rightField = right_property )
),
)
display (
'…LESS THAN OR EQUAL to non-invasive cover' ,
fc . filter (
ee . Filter . lessThanOrEquals (
leftField = left_property , rightField = right_property
)
),
)
display (
'…GREATER THAN non-invasive cover' ,
fc . filter (
ee . Filter . greaterThan (
leftField = left_property , rightField = right_property
)
),
)
display (
'…GREATER THAN OR EQUAL to non-invasive cover' ,
fc . filter (
ee . Filter . greaterThanOrEquals (
leftField = left_property , rightField = right_property
)
),
)
display (
'…is not greater than 10 percent different than non-invasive cover' ,
fc . filter (
ee . Filter . maxDifference (
difference = 10 , leftField = left_property , rightField = right_property
)
),
)
# Instead of comparing values of two feature properties using the leftField
# and rightField parameters, you can compare a property value (left_property)
# against a constant value (rightValue).
display (
'Plots where invasive forb cover is greater than 20%' ,
fc . filter ( ee . Filter . greaterThan ( leftField = left_property , rightValue = 20 )),
)
# You can also swap the operands to assign the constant to the left side of
# the relational expression (leftValue) and the feature property on the right
# (rightField). Here, we get the complement of the previous example.
display (
'Plots where 20 % i s greater than invasive forb cover.' ,
fc . filter ( ee . Filter . greaterThan ( leftValue = 20 , rightField = left_property )),
)
# Binary filters are useful in joins. For example, group all same-site plots
# together using a saveAll join.
grouping_prop = 'SiteID'
sites_fc = fc . distinct ( grouping_prop )
join_filter = ee . Filter . equals (
leftField = grouping_prop , rightField = grouping_prop
)
grouped_plots = ee . Join . saveAll ( 'site_plots' ) . apply ( sites_fc , fc , join_filter )
display ( 'List of plots in first site' , grouped_plots . first () . get ( 'site_plots' ))
মতামত জানান
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License -এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License -এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-04-09 UTC-তে শেষবার আপডেট করা হয়েছে।
আমাদের আরও কিছু জানাতে চান?
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-04-09 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Creates a unary or binary filter that passes if the left operand is greater than the right operand."],["The filter can compare two properties of a feature or a property against a constant value."],["It can be used for filtering feature collections based on relational expressions."],["Useful in joins to group features based on shared properties."]]],["The core functionality described is creating a filter where the left operand is greater than the right. This `ee.Filter.greaterThan()` function compares either two fields or a field and a value. It accepts `leftField` and `rightField` to compare properties, or `leftValue` and `rightValue` for field-to-value comparisons. The filter is used within the context of filtering feature collections and performing joins based on relational comparisons, for example finding the plots with invasive forb cover greater than a non-invasive one.\n"]]