Skip to content

Commit acf2d76

Browse files
committed
Update sunRiseSet
1 parent 9a9f543 commit acf2d76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Date/sunRiseSet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: LGPL-3.0-or-later // please change accordingly based on the license in "reference"
22
var inputs=[{name: 'time', description: 'Time for sun position computation (ee.Date)', type: 'ee.Date|number', defaultValue: null, optional: false},
3-
{name: 'angle', description: 'Solar elevation angle image in degrees (default is ee.Image(90.833))', type: 'ee.Image', defaultValue: ee.Image(90.833), optional: false},
3+
{name: 'angle', description: 'Solar elevation angle image in degrees (default is ee.Image(90.833))', type: 'ee.Image|ee.Number|number', defaultValue: 90.833, optional: false},
44
{name:'Return',description:'Return', type:'ee.Image',defaultValue:null,optional:true} // change the return type accordingly OR remove this line if the function doesn’t have an output
55
]
66

@@ -19,7 +19,7 @@ return function(){
1919
internal.addRef(reference,relPath);
2020

2121
var time = ee.Date(inputDictionary.time ? inputDictionary.time : Date.now());
22-
var angleImage = inputDictionary.angle;
22+
var angleImage = ee.Image(inputDictionary.angle);
2323

2424
// Compute declination and equation of time from the provided time.
2525
var D = ee.Number.expression(

0 commit comments

Comments
 (0)