timotejroiko / sweph

The definitive Swiss Ephemeris bindings for Node.js
Other
86 stars 14 forks source link

Wrong info in utc_time_zone() #11

Open prateek-intelegencia opened 10 months ago

prateek-intelegencia commented 10 months ago

In utc_time_zone() the typescript is saying that timezone values can only take positive numbers which is d_timezone: number // Timezone offset in decimal hours (0-23.99999)

But in official documentation it can be both negative and positive

timotejroiko commented 10 months ago

Hello, the 0-23.999 range was meant to clear any possible confusions regarding what "decimal hours" mean, it was not intended to mean negatives are not allowed. I will update the docs to better reflect this, thank you.

tutucea commented 6 months ago

i hate writing you here as i feel i bother you but .. is there a way for me to get a hold of the documentation of "sweph" other than inside vscode by using intellisense ?

krisztianb commented 6 months ago

You might be able to create a HTML documentation using TypeDoc by specifying sweph's index.d.ts as input.

tutucea commented 6 months ago
[warning] Azalt, defined in ./index.d.ts, is referenced by azalt.azalt but not included in the documentation.
[warning] AzaltRev, defined in ./index.d.ts, is referenced by azalt_rev.azalt_rev but not included in the documentation.
[warning] Calc, defined in ./index.d.ts, is referenced by calc.calc but not included in the documentation.
[warning] CoTrans, defined in ./index.d.ts, is referenced by cotrans.cotrans but not included in the documentation.
[warning] CoTransSp, defined in ./index.d.ts, is referenced by cotrans_sp.cotrans_sp but not included in the documentation.
[warning] DateConversion, defined in ./index.d.ts, is referenced by date_conversion.date_conversion but not included in the documentation.
[warning] DeltaT, defined in ./index.d.ts, is referenced by deltat_ex.deltat_ex but not included in the documentation.
[warning] FixStar, defined in ./index.d.ts, is referenced by fixstar.fixstar but not included in the documentation.
[warning] FixStarMag, defined in ./index.d.ts, is referenced by fixstar2_mag.fixstar2_mag but not included in the documentation.
[warning] GauquelinSector, defined in ./index.d.ts, is referenced by gauquelin_sector.gauquelin_sector but not included in the documentation.
[warning] Ayanamsa, defined in ./index.d.ts, is referenced by get_ayanamsa_ex.get_ayanamsa_ex but not included in the documentation.
[warning] GetCurrentFileData, defined in ./index.d.ts, is referenced by get_current_file_data.get_current_file_data but not included in the documentation.
[warning] GetOrbitalElements, defined in ./index.d.ts, is referenced by get_orbital_elements.get_orbital_elements but not included in the documentation.
[warning] HeliacalPheno, defined in ./index.d.ts, is referenced by heliacal_pheno_ut.heliacal_pheno_ut but not included in the documentation.
[warning] Heliacal, defined in ./index.d.ts, is referenced by heliacal_ut.heliacal_ut but not included in the documentation.
[warning] Cross, defined in ./index.d.ts, is referenced by helio_cross.helio_cross but not included in the documentation.
[warning] Flag, defined in ./index.d.ts, is referenced by helio_cross.helio_cross but not included in the documentation.
[warning] HousePosition, defined in ./index.d.ts, is referenced by house_pos.house_pos but not included in the documentation.
[warning] Houses, defined in ./index.d.ts, is referenced by houses.houses but not included in the documentation.
[warning] HousesEx, defined in ./index.d.ts, is referenced by houses_armc_ex2.houses_armc_ex2 but not included in the documentation.
[warning] DateObject2, defined in ./index.d.ts, is referenced by jdet_to_utc.jdet_to_utc but not included in the documentation.
[warning] LocalMeanTime, defined in ./index.d.ts, is referenced by lat_to_lmt.lat_to_lmt but not included in the documentation.
[warning] LocalApparentTime, defined in ./index.d.ts, is referenced by lmt_to_lat.lmt_to_lat but not included in the documentation.
[warning] LunEclipseHow, defined in ./index.d.ts, is referenced by lun_eclipse_how.lun_eclipse_how but not included in the documentation.
[warning] LunEclipseWhen, defined in ./index.d.ts, is referenced by lun_eclipse_when.lun_eclipse_when but not included in the documentation.
[warning] LunEclipseWhenLoc, defined in ./index.d.ts, is referenced by lun_eclipse_when_loc.lun_eclipse_when_loc but not included in the documentation.
[warning] EclipseWhenGlob, defined in ./index.d.ts, is referenced by lun_occult_when_glob.lun_occult_when_glob but not included in the documentation.
[warning] LunOccultWhenLoc, defined in ./index.d.ts, is referenced by lun_occult_when_loc.lun_occult_when_loc but not included in the documentation.
[warning] LunOccultWhere, defined in ./index.d.ts, is referenced by lun_occult_where.lun_occult_where but not included in the documentation.
[warning] NodeCross, defined in ./index.d.ts, is referenced by mooncross_node.mooncross_node but not included in the documentation.
[warning] NodAps, defined in ./index.d.ts, is referenced by nod_aps.nod_aps but not included in the documentation.
[warning] OrbitMaxMinTrueDistance, defined in ./index.d.ts, is referenced by orbit_max_min_true_distance.orbit_max_min_true_distance but not included in the documentation.
[warning] Pheno, defined in ./index.d.ts, is referenced by pheno.pheno but not included in the documentation.
[warning] RefracExtended, defined in ./index.d.ts, is referenced by refrac_extended.refrac_extended but not included in the documentation.
[warning] DateObject, defined in ./index.d.ts, is referenced by revjul.revjul but not included in the documentation.
[warning] RiseTrans, defined in ./index.d.ts, is referenced by rise_trans.rise_trans but not included in the documentation.
[warning] SolEclipseHow, defined in ./index.d.ts, is referenced by sol_eclipse_how.sol_eclipse_how but not included in the documentation.
[warning] SolEclipseWhenLoc, defined in ./index.d.ts, is referenced by sol_eclipse_when_loc.sol_eclipse_when_loc but not included in the documentation.
[warning] SolEclipseWhere, defined in ./index.d.ts, is referenced by sol_eclipse_where.sol_eclipse_where but not included in the documentation.
[warning] SplitDeg, defined in ./index.d.ts, is referenced by split_deg.split_deg but not included in the documentation.
[warning] TimeEqu, defined in ./index.d.ts, is referenced by time_equ.time_equ but not included in the documentation.
[warning] UtcToJd, defined in ./index.d.ts, is referenced by utc_to_jd.utc_to_jd but not included in the documentation.
[warning] VisLimitMag, defined in ./index.d.ts, is referenced by vis_limit_mag.vis_limit_mag but not included in the documentation.
[warning] HouseSystems, defined in ./index.d.ts, is referenced by house_name.house_name.hsys but not included in the documentation.
[info] Documentation generated at ./docs

after i cd docs/ and open index.html .. so far i cant find it ...

tutucea commented 6 months ago

never mind its in modules.html .. thanks for the help <3 one last question before i give up :)))) will this work

xcross = swe.degnorm(xsun - 88);

meaning i can use solcross_ut just fine and determine date and time if i give the longitude but can it look back minus 88 degrees ( this works with python but i want to use it in javascript )

bizprat commented 2 months ago

Please close this thread.