print

কনসোলে আর্গুমেন্ট প্রিন্ট করে।

ব্যবহার রিটার্নস
print(var_args)
যুক্তি টাইপ বিস্তারিত
var_args VarArgs<অবজেক্ট> বস্তু মুদ্রণ.

উদাহরণ

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

print(1);  // 1
print(ee.Number(1));  // 1
print(ee.Array([1]));  // [1]

print(ee.ImageCollection('AAFC/ACI').size());  // 10
print(ee.Image('AAFC/ACI/2009'));  // Image AAFC/ACI/2009 (1 band)

print(ee.FeatureCollection("NOAA/NHC/HURDAT2/pacific").size());  // 28547

পাইথন সেটআপ

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

import ee
import geemap.core as geemap

Colab (পাইথন)

"""There is no dedicated print function for the Earth Engine Python API.
To print Earth Engine objects, use Python's built-in `print` function.
Printing an Earth Engine object in Python prints the serialized request for the
object, not the object itself, so you must call `getInfo()` on Earth Engine
objects to get the desired object from the server to the client. For example,
`print(ee.Number(1).getInfo())`. Note that `getInfo()` is a synchronous
operation. Alternatively, the eerepr library provides rich Earth Engine object
representation; it is included in the geemap library.
"""

print(1)  # 1
print(ee.Number(1).getInfo())  # 1
print(ee.Array([1]).getInfo())  # [1]

print(ee.ImageCollection('AAFC/ACI').size().getInfo())  # 10
print(ee.Image('AAFC/ACI/2009').getInfo())  # Image AAFC/ACI/2009 (1 band)

print(
    ee.FeatureCollection("NOAA/NHC/HURDAT2/pacific").size().getInfo()
)  # 28547