Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this be used as a Java library? #2

Open
kxygk opened this issue Aug 11, 2021 · 2 comments
Open

Can this be used as a Java library? #2

kxygk opened this issue Aug 11, 2021 · 2 comments

Comments

@kxygk
Copy link

kxygk commented Aug 11, 2021

Sorry if this is a naiive question - but can TrajStat and MeteoInfo in general be used as a normal Java library? ( I see MeteoInfo is on Maven, but TrajStat is not)

I'd like to run some HYSPLIT trajectories to do moisture tracebacks from a small open source Java/Clojure application I'm writing, and I'd great if I could run HYSPLIT tracebacks without calling out to an external program - but I'm not sure if that's possible/realistic.

Maybe the whole project isn't really setup to be used as library? From the documentation it looks like it's just a GUI interface with only Python scripting extensability but I thought I'd check first :) Maybe there are Java examples elsewhere

Thank you for this great project!

@Yaqiang
Copy link
Collaborator

Yaqiang commented Aug 11, 2021

Yes, TrajStat can also be used as a Java library. But the external HYSPLIT excutable file was used for the trajectory calculation function in TrajStat.

@kxygk
Copy link
Author

kxygk commented Aug 11, 2021

Ah okay. I see it now

_trajExcuteFileName = workDir + File.separator + "hyts_std.exe";   

_trajExcuteFileName = workDir + File.separator + "hyts_std.exe";

So this wouldn't run on Linux without modifications anyway

I misunderstood. I thought this was a re-implementation of the HYSPLIT algorithm on the JVM

I was hoping to avoid haven't to deal with that FORTRAN monster haha - but in this case I may have an easier time calling it myself instead of dealing with a layer of indirection :)

Thanks for getting back to me so quickly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants