Yes, sure.
{
"name": "some name",
"collectionId": "",
"input": {
"provider": "PLANET",
"planetApiKey": {{PLANET_API_KEY}},
"bounds": {
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
28.920228033247895,
28.239834825108545
],
[
28.91993942706787,
28.23982233406956
],
[
28.919653600524256,
28.239784981256882
],
[
28.919373306476306,
28.239723126424344
],
[
28.91910124448717,
28.239637365309775
],
[
28.91884003481874,
28.23952852389606
],
[
28.91859219319112,
28.239397650454336
],
[
28.91836010654993,
28.2392460054459
],
[
28.918146010075034,
28.23907504938027
],
[
28.917951965652332,
28.238886428746408
],
[
28.91777984201585,
28.238681960152714
],
[
28.917631296751626,
28.238463612828713
],
[
28.917507760336466,
28.23823348965699
],
[
28.917410422365368,
28.237993806918304
],
[
28.917340220099973,
28.23774687294491
],
[
28.917297829448245,
28.23749506588791
],
[
28.91728365846194,
28.23724081081276
],
[
28.9172978434143,
28.236986556343528
],
[
28.91734024749538,
28.23673475108101
],
[
28.91741046213733,
28.23648782002169
],
[
28.91750781095657,
28.236248141204687
],
[
28.917631356274576,
28.23601802281155
],
[
28.91777990815421,
28.2357996809394
],
[
28.917952035864438,
28.23559521826131
],
[
28.918146081662684,
28.235406603779467
],
[
28.918360176762036,
28.235235653865857
],
[
28.91859225932948,
28.235084014773026
],
[
28.91884009434169,
28.23495314678315
],
[
28.919101295107275,
28.23484431014802
],
[
28.91937334624827,
28.234758552955135
],
[
28.919653627919654,
28.234696701036672
],
[
28.919939441033925,
28.234659350018468
],
[
28.920228033247895,
28.23464685958541
],
[
28.920516625461868,
28.234659350018468
],
[
28.920802438576136,
28.234696701036672
],
[
28.921082720247522,
28.234758552955135
],
[
28.92135477138852,
28.23484431014802
],
[
28.9216159721541,
28.23495314678315
],
[
28.921863807166314,
28.235084014773026
],
[
28.922095889733757,
28.235235653865857
],
[
28.92230998483311,
28.235406603779467
],
[
28.92250403063135,
28.23559521826131
],
[
28.922676158341584,
28.2357996809394
],
[
28.922824710221217,
28.23601802281155
],
[
28.92294825553922,
28.236248141204687
],
[
28.923045604358457,
28.23648782002169
],
[
28.923115819000415,
28.23673475108101
],
[
28.923158223081494,
28.236986556343528
],
[
28.923172408033853,
28.23724081081276
],
[
28.92315823704755,
28.23749506588791
],
[
28.92311584639582,
28.23774687294491
],
[
28.923045644130426,
28.237993806918304
],
[
28.922948306159327,
28.23823348965699
],
[
28.922824769744167,
28.238463612828713
],
[
28.922676224479943,
28.238681960152714
],
[
28.922504100843458,
28.238886428746408
],
[
28.922310056420756,
28.23907504938027
],
[
28.92209595994586,
28.2392460054459
],
[
28.921863873304673,
28.239397650454336
],
[
28.921616031677047,
28.23952852389606
],
[
28.921354822008624,
28.239637365309775
],
[
28.921082760019488,
28.239723126424344
],
[
28.920802465971537,
28.239784981256882
],
[
28.920516639427923,
28.23982233406956
],
[
28.920228033247895,
28.239834825108545
]
]
]
}
},
"data": [
{
"harmonizeTo": "NONE",
"itemType": "PSScene",
"productBundle": "analytic_8b_sr_udm2",
"dataFilter": {
"timeRange": {
"from": "2023-11-20T00:00:00.000Z",
"to": "2023-11-21T00:00:00.000Z"
},
"maxCloudCoverage": 20,
"nativeFilter": {
"type": "StringInFilter",
"field_name": "quality_category",
"config": [
"standard"
]
}
}
}
]
}
}
{
"input": {
"bounds": {
"geometry": {
"coordinates": [
[
[
28.920228033247895,
28.239834825108545
],
[
28.91993942706787,
28.23982233406956
],
[
28.919653600524256,
28.239784981256882
],
[
28.919373306476306,
28.239723126424344
],
[
28.91910124448717,
28.239637365309775
],
[
28.91884003481874,
28.23952852389606
],
[
28.91859219319112,
28.239397650454336
],
[
28.91836010654993,
28.2392460054459
],
[
28.918146010075034,
28.23907504938027
],
[
28.917951965652332,
28.238886428746408
],
[
28.91777984201585,
28.238681960152714
],
[
28.917631296751626,
28.238463612828713
],
[
28.917507760336466,
28.23823348965699
],
[
28.917410422365368,
28.237993806918304
],
[
28.917340220099973,
28.23774687294491
],
[
28.917297829448245,
28.23749506588791
],
[
28.91728365846194,
28.23724081081276
],
[
28.9172978434143,
28.236986556343528
],
[
28.91734024749538,
28.23673475108101
],
[
28.91741046213733,
28.23648782002169
],
[
28.91750781095657,
28.236248141204687
],
[
28.917631356274576,
28.23601802281155
],
[
28.91777990815421,
28.2357996809394
],
[
28.917952035864438,
28.23559521826131
],
[
28.918146081662684,
28.235406603779467
],
[
28.918360176762036,
28.235235653865857
],
[
28.91859225932948,
28.235084014773026
],
[
28.91884009434169,
28.23495314678315
],
[
28.919101295107275,
28.23484431014802
],
[
28.91937334624827,
28.234758552955135
],
[
28.919653627919654,
28.234696701036672
],
[
28.919939441033925,
28.234659350018468
],
[
28.920228033247895,
28.23464685958541
],
[
28.920516625461868,
28.234659350018468
],
[
28.920802438576136,
28.234696701036672
],
[
28.921082720247522,
28.234758552955135
],
[
28.92135477138852,
28.23484431014802
],
[
28.9216159721541,
28.23495314678315
],
[
28.921863807166314,
28.235084014773026
],
[
28.922095889733757,
28.235235653865857
],
[
28.92230998483311,
28.235406603779467
],
[
28.92250403063135,
28.23559521826131
],
[
28.922676158341584,
28.2357996809394
],
[
28.922824710221217,
28.23601802281155
],
[
28.92294825553922,
28.236248141204687
],
[
28.923045604358457,
28.23648782002169
],
[
28.923115819000415,
28.23673475108101
],
[
28.923158223081494,
28.236986556343528
],
[
28.923172408033853,
28.23724081081276
],
[
28.92315823704755,
28.23749506588791
],
[
28.92311584639582,
28.23774687294491
],
[
28.923045644130426,
28.237993806918304
],
[
28.922948306159327,
28.23823348965699
],
[
28.922824769744167,
28.238463612828713
],
[
28.922676224479943,
28.238681960152714
],
[
28.922504100843458,
28.238886428746408
],
[
28.922310056420756,
28.23907504938027
],
[
28.92209595994586,
28.2392460054459
],
[
28.921863873304673,
28.239397650454336
],
[
28.921616031677047,
28.23952852389606
],
[
28.921354822008624,
28.239637365309775
],
[
28.921082760019488,
28.239723126424344
],
[
28.920802465971537,
28.239784981256882
],
[
28.920516639427923,
28.23982233406956
],
[
28.920228033247895,
28.239834825108545
]
]
],
"type": "Polygon"
}
},
"data": [
{
"type": "byoc-{{collection_id}}",
"dataFilter": {
"timeRange": {
"from": "2023-11-18T00:00:00Z",
"to": "2023-11-21T00:00:00Z"
}
}
}
]
},
"output": {
"width": 512,
"height": 512
}
}
//VERSION=3
//True Color
function setup() {
return {
input: ["Red", "Green", "Blue", "dataMask"],
output: { bands: 4 }
};
}
function evaluatePixel(sample) {
return [sample.Red/3000,
sample.Green/3000,
sample.Blue/3000,
sample.dataMask];
}
Thank you very much for your assistancePreformatted text
Yes, I did change them to resx and resy and assigned them value 3 as in the example.
However, I don’t fully understand how do I pick a suitable value for resx and resy?
You can find below the updated process api request I’m using now
{
"input": {
"bounds": {
"geometry": {
"coordinates": s
28.920228033247895,
28.239834825108545
],
28.91993942706787,
28.23982233406956
],
28.919653600524256,
28.239784981256882
],
28.919373306476306,
28.239723126424344
],
28.91910124448717,
28.239637365309775
],
28.91884003481874,
28.23952852389606
],
28.91859219319112,
28.239397650454336
],
28.91836010654993,
28.2392460054459
],
28.918146010075034,
28.23907504938027
],
28.917951965652332,
28.238886428746408
],
28.91777984201585,
28.238681960152714
],
28.917631296751626,
28.238463612828713
],
28.917507760336466,
28.23823348965699
],
28.917410422365368,
28.237993806918304
],
28.917340220099973,
28.23774687294491
],
28.917297829448245,
28.23749506588791
],
28.91728365846194,
28.23724081081276
],
28.9172978434143,
28.236986556343528
],
28.91734024749538,
28.23673475108101
],
28.91741046213733,
28.23648782002169
],
28.91750781095657,
28.236248141204687
],
28.917631356274576,
28.23601802281155
],
28.91777990815421,
28.2357996809394
],
28.917952035864438,
28.23559521826131
],
28.918146081662684,
28.235406603779467
],
28.918360176762036,
28.235235653865857
],
28.91859225932948,
28.235084014773026
],
28.91884009434169,
28.23495314678315
],
28.919101295107275,
28.23484431014802
],
28.91937334624827,
28.234758552955135
],
28.919653627919654,
28.234696701036672
],
28.919939441033925,
28.234659350018468
],
28.920228033247895,
28.23464685958541
],
28.920516625461868,
28.234659350018468
],
28.920802438576136,
28.234696701036672
],
28.921082720247522,
28.234758552955135
],
28.92135477138852,
28.23484431014802
],
28.9216159721541,
28.23495314678315
],
28.921863807166314,
28.235084014773026
],
28.922095889733757,
28.235235653865857
],
28.92230998483311,
28.235406603779467
],
28.92250403063135,
28.23559521826131
],
28.922676158341584,
28.2357996809394
],
28.922824710221217,
28.23601802281155
],
28.92294825553922,
28.236248141204687
],
28.923045604358457,
28.23648782002169
],
28.923115819000415,
28.23673475108101
],
28.923158223081494,
28.236986556343528
],
28.923172408033853,
28.23724081081276
],
28.92315823704755,
28.23749506588791
],
28.92311584639582,
28.23774687294491
],
28.923045644130426,
28.237993806918304
],
28.922948306159327,
28.23823348965699
],
28.922824769744167,
28.238463612828713
],
28.922676224479943,
28.238681960152714
],
28.922504100843458,
28.238886428746408
],
28.922310056420756,
28.23907504938027
],
28.92209595994586,
28.2392460054459
],
28.921863873304673,
28.239397650454336
],
28.921616031677047,
28.23952852389606
],
28.921354822008624,
28.239637365309775
],
28.921082760019488,
28.239723126424344
],
28.920802465971537,
28.239784981256882
],
28.920516639427923,
28.23982233406956
],
28.920228033247895,
28.239834825108545
]
]
],
"type": "Polygon"
}
},
"data": a
{
"type": "byoc-{{collection_id}}",
"dataFilter": {
"timeRange": {
"from": "2023-11-18T00:00:00Z",
"to": "2023-11-21T00:00:00Z"
}
}
}
]
},
"output": {
"resx": 3,
"resy": 3
}
}
{
"input": {
"bounds": {
"geometry": {
"coordinates": [
[
[
28.920228033247895,
28.239834825108545
],
[
28.91993942706787,
28.23982233406956
],
[
28.919653600524256,
28.239784981256882
],
[
28.919373306476306,
28.239723126424344
],
[
28.91910124448717,
28.239637365309775
],
[
28.91884003481874,
28.23952852389606
],
[
28.91859219319112,
28.239397650454336
],
[
28.91836010654993,
28.2392460054459
],
[
28.918146010075034,
28.23907504938027
],
[
28.917951965652332,
28.238886428746408
],
[
28.91777984201585,
28.238681960152714
],
[
28.917631296751626,
28.238463612828713
],
[
28.917507760336466,
28.23823348965699
],
[
28.917410422365368,
28.237993806918304
],
[
28.917340220099973,
28.23774687294491
],
[
28.917297829448245,
28.23749506588791
],
[
28.91728365846194,
28.23724081081276
],
[
28.9172978434143,
28.236986556343528
],
[
28.91734024749538,
28.23673475108101
],
[
28.91741046213733,
28.23648782002169
],
[
28.91750781095657,
28.236248141204687
],
[
28.917631356274576,
28.23601802281155
],
[
28.91777990815421,
28.2357996809394
],
[
28.917952035864438,
28.23559521826131
],
[
28.918146081662684,
28.235406603779467
],
[
28.918360176762036,
28.235235653865857
],
[
28.91859225932948,
28.235084014773026
],
[
28.91884009434169,
28.23495314678315
],
[
28.919101295107275,
28.23484431014802
],
[
28.91937334624827,
28.234758552955135
],
[
28.919653627919654,
28.234696701036672
],
[
28.919939441033925,
28.234659350018468
],
[
28.920228033247895,
28.23464685958541
],
[
28.920516625461868,
28.234659350018468
],
[
28.920802438576136,
28.234696701036672
],
[
28.921082720247522,
28.234758552955135
],
[
28.92135477138852,
28.23484431014802
],
[
28.9216159721541,
28.23495314678315
],
[
28.921863807166314,
28.235084014773026
],
[
28.922095889733757,
28.235235653865857
],
[
28.92230998483311,
28.235406603779467
],
[
28.92250403063135,
28.23559521826131
],
[
28.922676158341584,
28.2357996809394
],
[
28.922824710221217,
28.23601802281155
],
[
28.92294825553922,
28.236248141204687
],
[
28.923045604358457,
28.23648782002169
],
[
28.923115819000415,
28.23673475108101
],
[
28.923158223081494,
28.236986556343528
],
[
28.923172408033853,
28.23724081081276
],
[
28.92315823704755,
28.23749506588791
],
[
28.92311584639582,
28.23774687294491
],
[
28.923045644130426,
28.237993806918304
],
[
28.922948306159327,
28.23823348965699
],
[
28.922824769744167,
28.238463612828713
],
[
28.922676224479943,
28.238681960152714
],
[
28.922504100843458,
28.238886428746408
],
[
28.922310056420756,
28.23907504938027
],
[
28.92209595994586,
28.2392460054459
],
[
28.921863873304673,
28.239397650454336
],
[
28.921616031677047,
28.23952852389606
],
[
28.921354822008624,
28.239637365309775
],
[
28.921082760019488,
28.239723126424344
],
[
28.920802465971537,
28.239784981256882
],
[
28.920516639427923,
28.23982233406956
],
[
28.920228033247895,
28.239834825108545
]
]
],
"type": "Polygon"
}
},
"data": [
{
"type": "byoc-{{collection_id}}",
"dataFilter": {
"timeRange": {
"from": "2023-11-18T00:00:00Z",
"to": "2023-11-21T00:00:00Z"
}
}
}
]
},
"output": {
"resx": 0.00002699322,
"resy": 0.00002699322
}
}```
This is the last request I've done after converting the resx and resy to degrees.