ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
মতামত জানান
ee.Image.reproject
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্রদত্ত অভিক্ষেপ এবং রেজোলিউশনে একটি চিত্র গণনা করতে বাধ্য করুন।
ব্যবহার রিটার্নস Image. reproject (crs, crsTransform , scale )
ছবি
যুক্তি টাইপ বিস্তারিত এই: image
ছবি পুনঃপ্রকল্পিত ছবি। crs
অভিক্ষেপ সিআরএস ছবিটি প্রজেক্ট করতে। crsTransform
তালিকা, ডিফল্ট: নাল CRS রূপান্তর মানগুলির তালিকা। এটি 3x2 রূপান্তর ম্যাট্রিক্সের একটি সারি-প্রধান ক্রম। এই বিকল্পটি স্কেল বিকল্পের সাথে পারস্পরিকভাবে একচেটিয়া, এবং প্রজেকশনে ইতিমধ্যেই যে কোনো রূপান্তর প্রতিস্থাপন করে। scale
ফ্লোট, ডিফল্ট: নাল যদি স্কেল নির্দিষ্ট করা হয়, তবে নির্দিষ্ট প্রক্ষেপণের একটি মিটারের নামমাত্র আকার দ্বারা নির্দিষ্ট স্কেলের মানকে ভাগ করে অভিক্ষেপটি স্কেল করা হয়। যদি স্কেল নির্দিষ্ট করা না থাকে, তাহলে প্রদত্ত অভিক্ষেপের স্কেল ব্যবহার করা হবে।
উদাহরণ কোড এডিটর (জাভাস্ক্রিপ্ট)
// Use of ee.Image.reproject is rarely needed and should generally be avoided.
// Defining the projection and scale of analysis should be handled by "scale",
// "crs", and "crsTransform" parameters whenever they are offered by a function.
// It is occasionally useful for forcing computation or visualization at a
// desired scale and projection when alternative methods are not available. In
// this example it is used to compute and visualize terrain slope from a DEM
// composite.
// Calculate mean elevation from two DEM datasets. The resulting composite
// image has a default CRS of WGS84 with 1 degree pixels.
var dem1 = ee . Image ( 'NASA/NASADEM_HGT/001' ). select ( 'elevation' );
var dem2 = ee . Image ( 'CGIAR/SRTM90_V4' ). select ( 'elevation' );
var demMean = ee . ImageCollection ([ dem1 , dem2 ]). mean ();
// Display the DEMs on the map, note that they all render as expected.
var demVisParams = { min : 500 , max : 2500 };
Map . setCenter ( - 123.457 , 47.815 , 11 );
Map . addLayer ( dem1 , demVisParams , 'DEM 1' );
Map . addLayer ( dem2 , demVisParams , 'DEM 2' );
Map . addLayer ( demMean , demVisParams , 'DEM composite' );
// Calculate terrain slope from the composite DEM (WGS84, 1 degree pixel scale).
var demCompSlope = ee . Terrain . slope ( demMean );
// Because the composite has 1 degree pixel scale, the slope calculation
// is essenstially meaningless and difficult to even display (you may need to
// zoom out to see the individual 1 degree pixels).
Map . addLayer ( demCompSlope , { min : 0 , max : 0.3 }, 'Slope' );
// We can use ee.Image.reproject to force the slope calculation and display
// the result with a reasonable scale of 30 m on WGS84 CRS, for example.
var slopeScale = ee . Terrain . slope (
demMean . reproject ({
crs : 'EPSG:4326' ,
scale : 30
})
);
Map . addLayer ( slopeScale , { min : 0 , max : 45 }, 'Slope w/ CRS and scale' );
// To more precisely control the reprojection, you can use the "crsTransform"
// parameter instead of the "scale" parameter or set the projection according to
// a reference image. For example, here the input composite image for the slope
// function is set to match the grid spacing and alignment of the NASADEM image.
var nasademProj = dem1 . projection ();
var demMeanReproj = demMean . reproject ( nasademProj );
var slopeRefProj = ee . Terrain . slope ( demMeanReproj );
Map . addLayer ( slopeRefProj , { min : 0 , max : 45 }, 'Slope w/ reference proj' );
print ( 'Reference projection' , nasademProj );
print ( 'DEM composite projection' , demMeanReproj . projection ());
// An alternative method for changing the projection of image composites
// (not accepting the default WGS84 CRS with 1 degree pixel scale) is to
// explicitly set the default projection using ee.Image.setDefaultProjection,
// which will not force resampling, like ee.Image.reproject will.
var demMeanProj = ee . ImageCollection ([ dem1 , dem2 ]). mean ()
. setDefaultProjection ( nasademProj );
var slopeProj = ee . Terrain . slope ( demMeanProj );
Map . addLayer ( slopeProj , { min : 0 , max : 45 }, 'slope w/ default projection set' ); পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap
ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap Colab (পাইথন)
# Use of ee.Image.reproject is rarely needed and should generally be avoided.
# Defining the projection and scale of analysis should be handled by "scale",
# "crs", and "crsTransform" parameters whenever they are offered by a function.
# It is occasionally useful for forcing computation or visualization at a
# desired scale and projection when alternative methods are not available. In
# this example it is used to compute and visualize terrain slope from a DEM
# composite.
# Calculate mean elevation from two DEM datasets. The resulting composite
# image has a default CRS of WGS84 with 1 degree pixels.
dem_1 = ee . Image ( 'NASA/NASADEM_HGT/001' ) . select ( 'elevation' )
dem_2 = ee . Image ( 'CGIAR/SRTM90_V4' ) . select ( 'elevation' )
dem_mean = ee . ImageCollection ([ dem_1 , dem_2 ]) . mean ()
# Display the DEMs on the map, note that they all render as expected.
dem_vis_params = { 'min' : 500 , 'max' : 2500 }
m = geemap . Map ()
m . set_center ( - 123.457 , 47.815 , 11 )
m . add_layer ( dem_1 , dem_vis_params , 'DEM 1' )
m . add_layer ( dem_2 , dem_vis_params , 'DEM 2' )
m . add_layer ( dem_mean , dem_vis_params , 'DEM composite' )
# Calculate terrain slope from the composite DEM (WGS84, 1 degree pixel scale).
dem_comp_slope = ee . Terrain . slope ( dem_mean )
# Because the composite has 1 degree pixel scale, the slope calculation
# is essenstially meaningless and difficult to even display (you may need to
# zoom out to see the individual 1 degree pixels).
m . add_layer ( dem_comp_slope , { 'min' : 0 , 'max' : 0.3 }, 'Slope' )
# We can use ee.Image.reproject to force the slope calculation and display
# the result with a reasonable scale of 30 m on WGS84 CRS, for example.
slope_scale = ee . Terrain . slope ( dem_mean . reproject ( crs = 'EPSG:4326' , scale = 30 ))
m . add_layer ( slope_scale , { 'min' : 0 , 'max' : 45 }, 'Slope w/ CRS and scale' )
# To more precisely control the reprojection, you can use the "crsTransform"
# parameter instead of the "scale" parameter or set the projection according to
# a reference image. For example, here the input composite image for the slope
# function is set to match the grid spacing and alignment of the NASADEM image.
nasadem_proj = dem_1 . projection ()
dem_mean_reproj = dem_mean . reproject ( nasadem_proj )
slope_ref_proj = ee . Terrain . slope ( dem_mean_reproj )
m . add_layer ( slope_ref_proj , { 'min' : 0 , 'max' : 45 }, 'Slope w/ reference proj' )
display ( 'Reference projection' , nasadem_proj )
display ( 'DEM composite projection' , dem_mean_reproj . projection ())
# An alternative method for changing the projection of image composites
# (not accepting the default WGS84 CRS with 1 degree pixel scale) is to
# explicitly set the default projection using ee.Image.setDefaultProjection,
# which will not force resampling, like ee.Image.reproject will.
dem_mean_proj = (
ee . ImageCollection ([ dem_1 , dem_2 ]) . mean () . setDefaultProjection ( nasadem_proj )
)
slope_proj = ee . Terrain . slope ( dem_mean_proj )
m . add_layer (
slope_proj , { 'min' : 0 , 'max' : 45 }, 'slope w/ default projection set'
)
m ,প্রদত্ত অভিক্ষেপ এবং রেজোলিউশনে একটি চিত্র গণনা করতে বাধ্য করুন।
ব্যবহার রিটার্নস Image. reproject (crs, crsTransform , scale )
ছবি
যুক্তি টাইপ বিস্তারিত এই: image
ছবি পুনঃপ্রকল্পিত ছবি। crs
অভিক্ষেপ সিআরএস ছবিটি প্রজেক্ট করতে। crsTransform
তালিকা, ডিফল্ট: নাল CRS রূপান্তর মানগুলির তালিকা। এটি 3x2 রূপান্তর ম্যাট্রিক্সের একটি সারি-প্রধান ক্রম। এই বিকল্পটি স্কেল বিকল্পের সাথে পারস্পরিকভাবে একচেটিয়া, এবং প্রজেকশনে ইতিমধ্যেই যে কোনো রূপান্তর প্রতিস্থাপন করে। scale
ফ্লোট, ডিফল্ট: নাল যদি স্কেল নির্দিষ্ট করা হয়, তবে নির্দিষ্ট প্রক্ষেপণের একটি মিটারের নামমাত্র আকার দ্বারা নির্দিষ্ট স্কেলের মানকে ভাগ করে অভিক্ষেপটি স্কেল করা হয়। যদি স্কেল নির্দিষ্ট করা না থাকে, তাহলে প্রদত্ত অভিক্ষেপের স্কেল ব্যবহার করা হবে।
উদাহরণ কোড এডিটর (জাভাস্ক্রিপ্ট)
// Use of ee.Image.reproject is rarely needed and should generally be avoided.
// Defining the projection and scale of analysis should be handled by "scale",
// "crs", and "crsTransform" parameters whenever they are offered by a function.
// It is occasionally useful for forcing computation or visualization at a
// desired scale and projection when alternative methods are not available. In
// this example it is used to compute and visualize terrain slope from a DEM
// composite.
// Calculate mean elevation from two DEM datasets. The resulting composite
// image has a default CRS of WGS84 with 1 degree pixels.
var dem1 = ee . Image ( 'NASA/NASADEM_HGT/001' ). select ( 'elevation' );
var dem2 = ee . Image ( 'CGIAR/SRTM90_V4' ). select ( 'elevation' );
var demMean = ee . ImageCollection ([ dem1 , dem2 ]). mean ();
// Display the DEMs on the map, note that they all render as expected.
var demVisParams = { min : 500 , max : 2500 };
Map . setCenter ( - 123.457 , 47.815 , 11 );
Map . addLayer ( dem1 , demVisParams , 'DEM 1' );
Map . addLayer ( dem2 , demVisParams , 'DEM 2' );
Map . addLayer ( demMean , demVisParams , 'DEM composite' );
// Calculate terrain slope from the composite DEM (WGS84, 1 degree pixel scale).
var demCompSlope = ee . Terrain . slope ( demMean );
// Because the composite has 1 degree pixel scale, the slope calculation
// is essenstially meaningless and difficult to even display (you may need to
// zoom out to see the individual 1 degree pixels).
Map . addLayer ( demCompSlope , { min : 0 , max : 0.3 }, 'Slope' );
// We can use ee.Image.reproject to force the slope calculation and display
// the result with a reasonable scale of 30 m on WGS84 CRS, for example.
var slopeScale = ee . Terrain . slope (
demMean . reproject ({
crs : 'EPSG:4326' ,
scale : 30
})
);
Map . addLayer ( slopeScale , { min : 0 , max : 45 }, 'Slope w/ CRS and scale' );
// To more precisely control the reprojection, you can use the "crsTransform"
// parameter instead of the "scale" parameter or set the projection according to
// a reference image. For example, here the input composite image for the slope
// function is set to match the grid spacing and alignment of the NASADEM image.
var nasademProj = dem1 . projection ();
var demMeanReproj = demMean . reproject ( nasademProj );
var slopeRefProj = ee . Terrain . slope ( demMeanReproj );
Map . addLayer ( slopeRefProj , { min : 0 , max : 45 }, 'Slope w/ reference proj' );
print ( 'Reference projection' , nasademProj );
print ( 'DEM composite projection' , demMeanReproj . projection ());
// An alternative method for changing the projection of image composites
// (not accepting the default WGS84 CRS with 1 degree pixel scale) is to
// explicitly set the default projection using ee.Image.setDefaultProjection,
// which will not force resampling, like ee.Image.reproject will.
var demMeanProj = ee . ImageCollection ([ dem1 , dem2 ]). mean ()
. setDefaultProjection ( nasademProj );
var slopeProj = ee . Terrain . slope ( demMeanProj );
Map . addLayer ( slopeProj , { min : 0 , max : 45 }, 'slope w/ default projection set' ); পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap
ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap Colab (পাইথন)
# Use of ee.Image.reproject is rarely needed and should generally be avoided.
# Defining the projection and scale of analysis should be handled by "scale",
# "crs", and "crsTransform" parameters whenever they are offered by a function.
# It is occasionally useful for forcing computation or visualization at a
# desired scale and projection when alternative methods are not available. In
# this example it is used to compute and visualize terrain slope from a DEM
# composite.
# Calculate mean elevation from two DEM datasets. The resulting composite
# image has a default CRS of WGS84 with 1 degree pixels.
dem_1 = ee . Image ( 'NASA/NASADEM_HGT/001' ) . select ( 'elevation' )
dem_2 = ee . Image ( 'CGIAR/SRTM90_V4' ) . select ( 'elevation' )
dem_mean = ee . ImageCollection ([ dem_1 , dem_2 ]) . mean ()
# Display the DEMs on the map, note that they all render as expected.
dem_vis_params = { 'min' : 500 , 'max' : 2500 }
m = geemap . Map ()
m . set_center ( - 123.457 , 47.815 , 11 )
m . add_layer ( dem_1 , dem_vis_params , 'DEM 1' )
m . add_layer ( dem_2 , dem_vis_params , 'DEM 2' )
m . add_layer ( dem_mean , dem_vis_params , 'DEM composite' )
# Calculate terrain slope from the composite DEM (WGS84, 1 degree pixel scale).
dem_comp_slope = ee . Terrain . slope ( dem_mean )
# Because the composite has 1 degree pixel scale, the slope calculation
# is essenstially meaningless and difficult to even display (you may need to
# zoom out to see the individual 1 degree pixels).
m . add_layer ( dem_comp_slope , { 'min' : 0 , 'max' : 0.3 }, 'Slope' )
# We can use ee.Image.reproject to force the slope calculation and display
# the result with a reasonable scale of 30 m on WGS84 CRS, for example.
slope_scale = ee . Terrain . slope ( dem_mean . reproject ( crs = 'EPSG:4326' , scale = 30 ))
m . add_layer ( slope_scale , { 'min' : 0 , 'max' : 45 }, 'Slope w/ CRS and scale' )
# To more precisely control the reprojection, you can use the "crsTransform"
# parameter instead of the "scale" parameter or set the projection according to
# a reference image. For example, here the input composite image for the slope
# function is set to match the grid spacing and alignment of the NASADEM image.
nasadem_proj = dem_1 . projection ()
dem_mean_reproj = dem_mean . reproject ( nasadem_proj )
slope_ref_proj = ee . Terrain . slope ( dem_mean_reproj )
m . add_layer ( slope_ref_proj , { 'min' : 0 , 'max' : 45 }, 'Slope w/ reference proj' )
display ( 'Reference projection' , nasadem_proj )
display ( 'DEM composite projection' , dem_mean_reproj . projection ())
# An alternative method for changing the projection of image composites
# (not accepting the default WGS84 CRS with 1 degree pixel scale) is to
# explicitly set the default projection using ee.Image.setDefaultProjection,
# which will not force resampling, like ee.Image.reproject will.
dem_mean_proj = (
ee . ImageCollection ([ dem_1 , dem_2 ]) . mean () . setDefaultProjection ( nasadem_proj )
)
slope_proj = ee . Terrain . slope ( dem_mean_proj )
m . add_layer (
slope_proj , { 'min' : 0 , 'max' : 45 }, 'slope w/ default projection set'
)
m
মতামত জানান
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License -এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License -এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 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-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["`Image.reproject()` forces an image to be computed in a specified projection and resolution, often for analysis or visualization purposes."],["This method is generally avoided and should primarily be used when other methods for setting projection and scale are unavailable."],["`crs` and `scale` or `crsTransform` parameters control the reprojection; the latter offers more precise control."],["Setting the default projection using `setDefaultProjection` is an alternative for image composites, avoiding resampling inherent in `reproject`."],["Reprojection is crucial for tasks like terrain analysis where pixel scale significantly affects results."]]],[]]