Welcome to iraf.net Friday, April 19 2024 @ 07:51 AM GMT
GalisBG |
10/15/2015 03:54PM (Read 1767 times)
|
|
|
Status: offline
Registered: 10/15/2015
Posts: 2
|
Hi there,
I'm trying to export as text files a lot of reduced 1d spectra distributed in different folders using wspectext with list files for input and output containing the full path of the fits and txt files
It works well with reading this list files, but say that the line are too long for the output file and will be truncated, so finally didn't export anything as the output files are not correct. Here is the example of the output list file:
/Users/gbb/Observations/SpecPol/VLT/FORS/SCIENCE/2015-04-07_Honoria/S2_1x1q/mapped_all_sci_mos0.0001.txt
/Users/gbb/Observations/SpecPol/VLT/FORS/SCIENCE/2015-04-07_Honoria/S2_1x1q/mapped_all_sci_mos0.0002.txt
/Users/gbb/Observations/SpecPol/VLT/FORS/SCIENCE/2015-04-07_Honoria/S2_1x1q/mapped_all_sci_mos1.0001.txt
/Users/gbb/Observations/SpecPol/VLT/FORS/SCIENCE/2015-04-07_Honoria/S2_1x1q/mapped_all_sci_mos1.0002.txt
The input one is the same with .fits for extensions.
Any idea how to solve that problem?
|
|
|
|
fitz |
10/21/2015 03:55PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
WSPECTEXT is a script task that creates an intermediate list file containing both the input and output names along with the image dimensions, one per row. With you path names, this line length is exceeding the size of a CL script string variable and causing the problem. You can workaround it by either working from the same directory as the files themselves and leaving off the pathname, or else use a logical path, e.g.
cl\$this->_split2($m[0]) set data = "/Users/gbb/Observations/SpecPol/VLT/FORS/SCIENCE/2015-04-07_Honoria/S2_1x1q/"
where the trailing '/' is required, and then in the lists use names like "data$mapped_all_sci_mos0.0001.txt"
|
|
|
|
GalisBG |
10/22/2015 10:09AM
|
|
|
Status: offline
Registered: 10/15/2015
Posts: 2
|
Thanks a lot! It works perfect for me!
By the way, the list I quoted is only part of my list file. My original list file contains a lot more files and they are distributed in different folders, so the idea was to extract all the reduced spectra in one go (they were also reduced in the same way with big list files with full path, but it works in "apall")
Cheers!
|
|
|
|
| |
|
Content generated in: 0.11 seconds |
|