FUNCTION  fIAUNameGen

Convert 3 letter survey, ra, dec in degrees to extended IAU name with a specified number of decimal places.

Will create a IAU name as @survey Jhhmmss.ss+ddmmss.s
Example usages:

SELECT dbo.fIAUNameGen('VHS', 182.25, -12.5,3,2)
=> VHS J120900.000-123000.00

SELECT top 10 dbo.fIAUNameGen('VHS',ra,dec,3,2),sourceID FROM vhsSource

NameTypeLengthinoutpnum
@surveyvarchar6input1
@rafloat8input2
@decfloat8input3
@radpint4input4
@decdpint4input5
 varchar40output1