mesa-users] save files into another directory
Bill Paxton
paxton at kitp.ucsb.edu
Wed Jun 30 15:25:46 EDT 2010
On Jun 30, 2010, at 12:14 PM, jingluan wrote:
> Dear Bill
>
> I asked about how to write data into a file, and this file is automatically created and saved under the current directory.
>
> Then how to create and save a file with data in another directory (e.g. a sub directory of the current one)?
>
here are the relevant controls from star_defaults.dek
! output of photos, logs, and profiles
photo_directory = 'photos'
do_log_files = .true. ! log files are created only if this is true
do_profiles = .true. ! profiles are written only if this is true
log_directory = 'LOGS'
star_log_name = 'star.log'
star_log_header_name = ''
! if not empty, then put star log header info in this file
! in this case the star log has only data -- making it easier
! to use with some plotting packages.
star_log_dbl_format = '(1pes27.16e3, 1x)'
star_log_int_format = '(i27, 1x)'
star_log_txt_format = '(a27, 1x)'
profiles_index_name = 'profiles.index'
log_data_prefix = 'log'
log_data_suffix = '.data'
log_data_header_suffix = ''
! if not empty, then put log data header info here
! in this case the log data file has only data -- making it easier
! to use with some plotting packages.
profile_dbl_format = '(1pes27.16e3, 1x)'
profile_int_format = '(i27, 1x)'
profile_txt_format = '(a27, 1x)'
>
I hope that helps.
-B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20100630/8beb691d/attachment.html>
More information about the Mesa-users
mailing list