SSW with GDL #1659
-
Hello, I am attempting to use the SSW (Solar SoftWare) library with GDL but I am running into issues. Edit: Running Ubuntu 22.04.3 and GDL v1.0.1 |
Beta Was this translation helpful? Give feedback.
Replies: 31 comments 17 replies
-
Could you please report GDL version, and the OS you are using ? thanks |
Beta Was this translation helpful? Give feedback.
-
Very good news. Could you give more details on the issues ? |
Beta Was this translation helpful? Give feedback.
-
please have a look to #1656 another solution, as a temporary work-around, is to use PATH_ADD procedure (it should be in the path)
HTH A. PS: for such a code, you should consider to add somewhere at the end of the GDL_PATH the path to the IDL proc. ... |
Beta Was this translation helpful? Give feedback.
-
I forgot how complex & big was SolarSoft ! 🥲 Does someone known some basic examples I can try ? |
Beta Was this translation helpful? Give feedback.
-
If this helps, this is the bash script I run to open SSW when I am using IDL in university: #!/bin/tcsh
# simple script to run SSWIDL
# configure IDL
source /opt/harris/idl/bin/idl_setup
# configure the IDL_PATH
setenv IDL_PATH "+$HOME/idl::<IDL_DEFAULT>"
# add in the idllibs folders
setenv IDL_PATH "+/opt/idllibs/:$IDL_PATH"
# SSW environment variables
setenv SSW /opt/ssw
setenv SSW_INSTR "aia hmi eve sumer chianti eis eit cds trace mdi sot xrt iris hessi trace hxrs nso vso goes secchi spex xray yohkoh ontology stereo mjastereo"
source $SSW/gen/setup/setup.ssw /quiet
#actually run SSWIDL
sswidl
exit 0 I am essentially wishing to replicate this for use with GDL instead of IDL. |
Beta Was this translation helpful? Give feedback.
-
Not exactly the right moment as I'm busy with 'GDL exact plots', but I'll like hearing about the level of succes you have. |
Beta Was this translation helpful? Give feedback.
-
Ah, @james-kc : 1.0.1 may be too old.At least 1.0.3 if any, but it would be better with current version (GitHub development). |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help @GillesDuvert! I think I am close to getting this to work however I am getting an error message about IDL_DIR. This is the contents of a gdl startup script which I have placed in /usr/local/bin to allow me to use
I have created this file to allow me to run the tcsh commands easily:
When this file is called, I get the following response:
I imagine it may be that I have not correctly configured the gdl startup script correctly but I am not sure where to go from here. |
Beta Was this translation helpful? Give feedback.
-
concerning IDL_DIR:
|
Beta Was this translation helpful? Give feedback.
-
using the modifications mentioned by Gilles in #1659 (reply in thread) and a personnel csh script I am able to start SSW ... (where are the demo files ?!)
and yes, I made a link to the bin dir. where is "gdl" in the ssw/ path ... Not super clean but working so far ... |
Beta Was this translation helpful? Give feedback.
-
I have finally been able to get SSW working with GDL! Thank you everyone for your help! |
Beta Was this translation helpful? Give feedback.
-
One final question now; does GDL have the following functions available? |
Beta Was this translation helpful? Give feedback.
-
Adding @alaingdl remark, this could be a more complete answer :
switch to tcsh (since ssw only has tcsh scripts) in the above, the location of the gdl procedures (library) is the default one, Plaese note that you must have curl installed for |
Beta Was this translation helpful? Give feedback.
-
Thanks for the good news! I started testing SSW under GDL 1.0.3, but first I'd like to ask a few questions about installation.
Is it ok? |
Beta Was this translation helpful? Give feedback.
-
I suspect 81 is related to a path issue. Did you made "make install" or "build_gdl.sh install" before running the test ? 105 is just one HDF5 related code (outside GDL) is not in the path (not installed !) A detail 147 & 149 are related to recent changes in the code @GillesDuvert you have to locate the binary ($ find . -name gdl) where you made the compilation, and start with the path related to it Would be great (and cautious) to removed packaged version ! A risk it will removed few dependences. Then play again "build_gdl.sh prep" to re-installed them ! HTH |
Beta Was this translation helpful? Give feedback.
-
You should have something like :
when you run As you can see in the
|
Beta Was this translation helpful? Give feedback.
-
Concerning being in the PATH, it can be opening a long discussion. Today a lot of colleagues do have Conda related stuffs in their PATH and they have a lot of troubles with normal codes (not related to Conda (or Conda dependences) because those path are prepended by default to paths related to the system ! |
Beta Was this translation helpful? Give feedback.
-
I reinstalled GDL, now hdf5 error is gone. I can start GDL by specifying the path so it works. I tried to test SSW once again. I encountered two problems: one with a graphical interface and one within command line interface.
I select
whenever I move the mouse, and the graphical windows are lost, i.e. I can press buttons, but the windows do not react, and it is impossible to close them, even by closing the terminal. In IDL, when I press the left button over the plot, nothing happens. When I press the right button, the point's coordinates show up on the plot and are printed in the terminal.
It works OK until the last line where I get the following (after some lines of output)
|
Beta Was this translation helpful? Give feedback.
-
@james-kc all this is very interesting, even if very frustrating for you.
Which looks like problematic to me: normal, not normal? Then I started your script, but again I have no data:
there may be a magic command to get the relevant data imported, or do we have a problem with the strings defining time intervals? ssw is full of very tricky code, the one at line 63 in build_str.pro you report is a particularly convolved example. |
Beta Was this translation helpful? Give feedback.
-
@GillesDuvert yes, I use ssw_gdl in a pretty much the same way. I only replaced |
Beta Was this translation helpful? Give feedback.
-
Great! What happens if you left- or right-click at some point of the plot? |
Beta Was this translation helpful? Give feedback.
-
sorry, bedtime now 😄 |
Beta Was this translation helpful? Give feedback.
-
@jeget , I confirm 2 bugs:
in GDL These bugs have to be patched in the GDL code if you want to go further, I'm afraid. |
Beta Was this translation helpful? Give feedback.
-
bad news on my side, with current git version, after adding hessi in ssw Yes, independently, the widgets are OK (tested with |
Beta Was this translation helpful? Give feedback.
-
At the moment, 2 of 3 bugs found (yes, there was anotehr) are closed by new PRs. Stay tuned. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, the procedure finally hangs on the absence of SPRSIN in GDL:
I have opened an issue, but I'm afraid this is not going to be solved soon. there are 4 needed routines to use sparse matrixes, namely SPRSAB, SPRSAX, SPRSIN and SPRSTP. All copyright-protected because published by Knuth. I note that the gnu scientific library has equivalent routines, and Eigen:: also . Adding an interface for these routines would be easy for the knowledgeable people. I open a request for them, but cannot do more. |
Beta Was this translation helpful? Give feedback.
-
Thank you @GillesDuvert . I think I could try some other tests with SSW. In case of issues is it better to write here or open new ones? |
Beta Was this translation helpful? Give feedback.
-
@jeget that would be great! Please pursue here, the title of the discussion says all. |
Beta Was this translation helpful? Give feedback.
-
HESSI panels clicking will work now with #1694 |
Beta Was this translation helpful? Give feedback.
This is what I did
$IDL_DIR/bin/idl $command
(line 316 in my version) bygdl $command
and rename
ssw_idl
to 'ssw_gdl
' .alias sswgdl $SSW/gen/setup/ssw_gdl
after line containingalias sswidl $SSW/gen/setup/ssw_idl
inssw/gen/setup/setup.ssw
switch to tcsh (since ssw only has tcsh scripts), my .tcshrc contains
call
ssw_gdl
and voila!
NB: possibly, redefine !PATH when inside ssw_gdl to contain /usr/local/share/gnudatalanguage/lib (as first elements of the path) if problems arise.