It is currently Tue Dec 07, 2021 4:49 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Run galprop
PostPosted: Fri Apr 01, 2016 2:41 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
I want to run an example e.g :galdef_54_reltest01.
in this file ( I did not find/know the required files I need to copy from ./FITS)
What I found are(rbands_co10mm_2001_qdeg.fits.gz, ...) these file are not found in the FITS files?

when I run the example after changed the name reltest01 to 123456701
I get this :
~/GALPROP/galprop-54.1.984$ /home/aalzetoun/GALPROP/bin/galprop -r 123456701 -o /home/aalzetoun/GALPROP/galprop-54.1.984/OutPutFITS/
main: Entry
init: Entry
init: This is Galprop version 54.1.2423
init: Exit
read: Entry
read: Reading from /home/aalzetoun/GALPROP/source/Galdefiles/galdef_54_123456701
read: Galdef file /home/aalzetoun/GALPROP/source/Galdefiles/galdef_54_123456701 not found
Run: Internal error. Problem reading from galdef file!
main: Exit

May you please tell me what dose this means?
Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Fri Apr 01, 2016 3:24 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
Alzetoun1 wrote:
read: Reading from /home/aalzetoun/GALPROP/source/Galdefiles/galdef_54_123456701
read: Galdef file /home/aalzetoun/GALPROP/source/Galdefiles/galdef_54_123456701 not found
Run: Internal error. Problem reading from galdef file!
main: Exit


It means it cannot read the file
/home/aalzetoun/GALPROP/source/Galdefiles/galdef_54_123456701
Either it does not exist or the user does not have read permission. The former is much more likely. Make sure the directory name is correct, you can modify it with the options -g on the command line.

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Mon Apr 04, 2016 4:13 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
in the GALDEF example :galdef_54_reltest01.
There are these files:
rbands_co10mm_v2_2001_qdeg.fits.gz rbands_co10mm_2001_qdeg.fits.gz rbands_co9_qdeg.fits.gz
rbands_hi12_v2_qdeg_zmax1_Ts125_EBV2.0_localring_4.fits rbands_hi12_v2_qdeg_zmax1_Ts125_EBV_localring_3.fits rbands_hi12_qdeg_zmax1.fits.gz

According to README:
I have to create a directory for FITS files, and cope the required input files here ( the files in the GALDEF example)

BUT
these files(rbands_co10mm_2001_qdeg.fits.gz, ...) are not found in the FITS files?
OR
which files we have to copy?

thank you for your help.


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Mon Apr 04, 2016 4:25 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
These files are distributed separately. Please go to the download page and download the *_data* files.

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Mon Apr 04, 2016 4:51 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
in ./ configure:

--prefix=/home/aalzetoun/GALPROP/galprop-54.1.984 --with-galdef=/home/aalzetoun/GALPROP/galprop-54.1.984/source/Galdefiles --with-fitsdata=/home/aalzetoun/GALPROP/galprop-54.1.984/source/Fitfiles --datadir=/home/aalzetoun/GALPROP/galprop-54.1.984/source/datfiles CXX=g++ F77=gfortran --enable-openmp



when I checked the source file it doesn't contain Galdefiles, and Fitfiles it contains ONLY datfiles
Is this the problem


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Mon Apr 04, 2016 5:17 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
The source tar file does not contain the gasmaps. These have to be downloaded separately from the download page. Please go to the download page to get these files. Once you do that you can copy them to the correct directory.

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Wed Apr 06, 2016 4:02 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
the correct directory you mean, that I have created for the FITS file. if so I'm still getting the same the same error( this is expected because there is no : Galdef file /home/aalzetoun/GALPROP/source/Galdefiles
or I have to copy it to the source file : /home/aalzetoun/GALPROP/source/


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Thu Apr 07, 2016 4:37 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
I have created directory for GALDEF files,Out put FITS file, and FITS files(I downloaded it: rbands_co10mm_v2_2001_qdeg.fits.gz rbands_co10mm_2001_qdeg.fits.gz rbands_co9_qdeg.fits.gz
rbands_hi12_v2_qdeg_zmax1_Ts125_EBV2.0_localring_4.fits rbands_hi12_v2_qdeg_zmax1_Ts125_EBV_localring_3.fits rbands_hi12_qdeg_zmax1.fits.gz).

I am still getting this error :
aalzetoun@coma:~/GALPROP$ /home/aalzetoun/GALPROP/bin/galprop -r 123456701 -o /home/aalzetoun/GALPROP/Outputfiles/
main: Entry
init: Entry
init: This is Galprop version 54.1.2423
init: Exit
read: Entry
read: Reading from /home/aalzetoun/GALPROP/source/Galdefiles/galdef_54_123456701
read: Galdef file /home/aalzetoun/GALPROP/source/Galdefiles/galdef_54_123456701 not found
Run: Internal error. Problem reading from galdef file!
main: Exit
###############
in /home/aalzetoun/GALPROP/source : there is no Galdefiles/galdef_XXXXXX.
Image
why we have to create a new directory for GALDEF files and change the file names? I have changed:
galdef_54_reltest01 ---------> galdef_54_123456701
I have tried without change the name but nothing changes.


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Thu Apr 07, 2016 5:23 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
From some of the error messages it looks like you are running out of disk space. Galprop runs can produce large output files so you should think about how to solve that.

The problem is spelled out in the error message. The file
/home/aalzetoun/GALPROP/source/Galdefiles/galdef_54_123456701
cannot be found. Does this file exist? Does the directory exist?

If you have another directory with Galdef files, say /home/aalzetoun/GALPROP/GALDEF, you can specify that file on the command line with
/home/aalzetoun/GALPROP/bin/galprop -g /home/aalzetoun/GALPROP/GALDEF

You can also specify the directory containing the fits files for ISRF and the gasmaps with the option -f on the command line.

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Thu Apr 07, 2016 6:38 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
As you can see from the image on the left hand side(/home/aalzetoun/GALPROP/source) it doesn't has /Galdefiles/galdef_54_123456701.

the file : galdef_54_123456701. exit in the /home/aalzetoun/GALPROP/Galdefiles/galdef_54_123456701.

[I copied reltest01 from GALDEF to Galdefiles and changed the name to 123456701] as in README.


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Thu Apr 07, 2016 7:00 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
Then you should call galprop as
Code:
/home/aalzetoun/GALPROP/bin/galprop -g /home/aalzetoun/GALPROP/Galdefiles -r 123456701 -o /home/aalzetoun/GALPROP/Outputfiles/


I guess you will get an error for some of the fits files in this case. Just specify the directory with the fits file on the command line with the -f option. I think it should be
Code:
-f /home/aalzetoun/GALPROP/Fitsfiles/FITS/

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Tue Apr 12, 2016 12:27 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
Sorry, I have tried this :
Code:
/GALPROP$ /home/aalzetoun/GALPROP/bin/galprop -g /home/aalzetoun/GALPROP/Galdfiles/galdef_54_123456701


I got : main: Run number not specified. Exiting ...

May you please tell me what is the problem?
thank you very much for your help.


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Tue Apr 12, 2016 2:37 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
Your problem is that you did not specify the -r option. If you call
Code:
galprop -h

you will get a useful message that reads
Code:
Usage: galprop -r <run> -g <dir> -f <dir> -o <dir> -p <prefix>
Where:
-r <run> (the run number of the galdef file -- required)
-g <dir> (location of the galdef directory -- default ../GALDEF)
-f <dir> (location of the fits directory -- default ../FITS)
-o <dir> (output directory)
-p <prefix> (optional prefix for the output files)

You tried to specify the galdef file with the -g option, that does not work. -g points to the directory that contains the galdef files. The filenames of the galdef files must be in the format galdef_54_<run> where you replace <run> with a string of ASCII characters. The -r switch to galprop should have the same ASCII characters. -f specifies the directory containing the ISRF files and the gas files. If this isn't enough help for you to run galprop I would advise that you use webrun,

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Tue Apr 12, 2016 3:20 am 
Offline

Joined: Thu Feb 25, 2016 3:04 am
Posts: 12
Thanks, Finally, it's work with me know.

Just last question I got this :
create_galaxy: Entry
init: Initializing 2D
nH_set_model: nHI_model: 1 nH2_model: 1 nHII_model:1 debug: 0
read_isrf: Entry
ReadISRFFormatV3: Entry
ReadISRFFormatV3: Reading ISRF from /home/aalzetoun/GALPROP/source/Fitfiles/ISRF/Standard/Standard.dat
ReadRadiationField: Reading from /home/aalzetoun/GALPROP/source/Fitfiles/ISRF/Standard/Standard.dat
ClearData: Call to clear cache when not built
ReadRadiationField: Error reading from file /home/aalzetoun/GALPROP/source/Fitfiles/ISRF/Standard/Standard.dat
terminate called after throwing an instance of 'std::invalid_argument'
what(): Error reading from file /home/aalzetoun/GALPROP/source/Fitfiles/ISRF/Standard/Standard.dat
Aborted
###########
last line what(): ... .
it means an error or its normal message?


Top
 Profile  
 
 Post subject: Re: Run galprop
PostPosted: Tue Apr 12, 2016 7:43 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
It is an error message because it reads
Quote:
ReadRadiationField: Error reading from file /home/aalzetoun/GALPROP/source/Fitfiles/ISRF/Standard/Standard.dat

Your problem is that the files required are not located in /home/aalzetoun/GALPROP/source/Fitfiles but rather /home/aalzetoun/GALPROP/source/Fitfiles/FITS. Fix your -f argument and it should work.

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group