One confusion in using eSASS

Data analysis
Post Reply
wangyun
Posts: 2
Joined: Wed Nov 17, 2021 2:35 pm

One confusion in using eSASS

Post by wangyun »

Hello,

When I try to process data using commands in eSASS (such as evtool), it always tells me that the file does not exist.
But I already copied it into the Docker environment.
I also tried the full path to the file.

Code: Select all

idies@c89e594e2696:~/workspace$ ls
fm00_300007_020_EventList_c001.fits
idies@c89e594e2696:~/workspace$ pwd
/home/idies/workspace
idies@c89e594e2696:~/workspace$ evtool eventfiles="fm00_300007_020_EventList_c001.fits" outfile="1.fits" image=yes emin=0.5 emax=2.0
 evtool: eSASS4EDR Sep 02 09:43:31 2021
 evtool/validate_tEvtool: **STOP** infile fm00_300007_020_EventList_c001.fits does not exist
 evtool: FAILED
idies@c89e594e2696:~/workspace$ evtool eventfiles="/home/idies/workspace/fm00_300007_020_EventList_c001.fits" outfile="1.fits" image=yes emin=0.5 emax=2.0
 evtool: eSASS4EDR Sep 02 09:43:31 2021
 evtool/validate_tEvtool: **STOP** infile /home/idies/workspace/fm00_300007_020_EventList_c001.fits does not exist
I 'm using the full docker eSASS image run in macOS Big Sur 11.6.1.
And the Data I downloaded from the Early Data Release (EDR) Observations web page.

Although this seems like a small problem, it really bothers me.
I wish I could get some help.

Yun
jhaase
Posts: 7
Joined: Tue Jun 29, 2021 10:20 am

Re: One confusion in using eSASS

Post by jhaase »

Dear Yun

That is indeed a bit strange.

Are you able to access the FITS file from the system at all? (reading the header with fold or perhaps with one if the ftools?)

I assume the file permissions are ok? Depending on how you copied the file the 'idies' user might not have read access to it.

cheers
Jonas
wangyun
Posts: 2
Joined: Wed Nov 17, 2021 2:35 pm

Re: One confusion in using eSASS

Post by wangyun »

Dear Jonas

You're right, I didn't realize the problem was file permissions.
The solution is to mount a directory instead of copying files into the container.
This can be a bit confusing for users who do not know Docker, but it's really easy to install.

By the way, I am sorry that I seem to have to submit the question in the “eSASS tasks” section.

Finally, thank you for your kind and timely help.

Best wishes,
Yun
lidawei
Posts: 28
Joined: Thu Nov 25, 2021 5:30 am

Re: One confusion in using eSASS

Post by lidawei »

Hello,

I have the same trouble there. And I don't know how to mount a directory into the container.

If you know about it, please tell me. Thank you!

Best regards,
Dawei
User avatar
AlainGueguen
Posts: 36
Joined: Mon Jun 28, 2021 12:06 pm

Re: One confusion in using eSASS

Post by AlainGueguen »

there is some explanation how to use the Docker on this page :
https://erosita.mpe.mpg.de/edr/DataAnal ... _container
to mount an 'external' folder to the docker the option is --volume

docker run --volume /path/to/personnaldata:/home/idies/WorkingFolder -it --rm erosita/esass:latest /bin/bash
would mount the folder (from your computer) /path/to/personnaldata to the folder /home/idies/WorkingFolder of the docker
Post Reply