-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for CDS reader requiring at least two description characters #4474
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
eb9c9c4
Fix for 4437
anchitjain1234 114673c
Fix tabs and spaces
anchitjain1234 5c93294
Tabs and spaces fix
anchitjain1234 8cdff09
Spaces fix
anchitjain1234 c8060e7
Fixes #4437
anchitjain1234 e05b274
Updated CHANGES.rst fixes #4437
anchitjain1234 dfe56ed
Updated cds.py and test for description parsing. Fixes #4437
anchitjain1234 3d63902
CHANGES.rst update. Fixes #4437
anchitjain1234 21351e2
Fixed description parsing, improved test and reduced data. Fixes #4437
anchitjain1234 bfbb0fa
Improved test and CHANGES.rst. Fixes #4437
anchitjain1234 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
J/A+A/511/A56 Abundances of five open clusters (Pancino+, 2010) | ||
================================================================================ | ||
Chemical abundance analysis of the open clusters Cr 110, NGC 2420, NGC 7789, | ||
and M 67 (NGC 2682). | ||
Pancino E., Carrera R., Rossetti, E., Gallart C. | ||
<Astron. Astrophys. 511, A56 (2010)> | ||
=2010A&A...511A..56P | ||
================================================================================ | ||
ADC_Keywords: Clusters, open ; Stars, giant ; Equivalent widths ; Spectroscopy | ||
Keywords: stars: abundances - Galaxy: disk - | ||
open clusters and associations: general | ||
|
||
Abstract: | ||
The present number of Galactic open clusters that have high resolution | ||
abundance determinations, not only of [Fe/H], but also of other key | ||
elements, is largely insufficient to enable a clear modeling of the | ||
Galactic disk chemical evolution. To increase the number of Galactic | ||
open clusters with high quality measurements, we obtained high | ||
resolution (R~30000), high quality (S/N~50-100 per pixel), echelle | ||
spectra with the fiber spectrograph FOCES, at Calar Alto, Spain, for | ||
three red clump stars in each of five Open Clusters. We used the | ||
classical equivalent width analysis method to obtain accurate | ||
abundances of sixteen elements: Al, Ba, Ca, Co, Cr, Fe, La, Mg, Na, | ||
Nd, Ni, Sc, Si, Ti, V, and Y. We also derived the oxygen abundance | ||
using spectral synthesis of the 6300{AA} forbidden line. | ||
|
||
Description: | ||
Atomic data and equivalent widths for 15 red clump giants in 5 open | ||
clusters: Cr 110, NGC 2099, NGC 2420, M 67, NGC 7789. | ||
|
||
File Summary: | ||
-------------------------------------------------------------------------------- | ||
FileName Lrecl Records Explanations | ||
-------------------------------------------------------------------------------- | ||
ReadMe 80 . This file | ||
table1.dat 103 15 Observing logs and programme stars information | ||
table5.dat 56 5265 Atomic data and equivalent widths | ||
-------------------------------------------------------------------------------- | ||
|
||
See also: | ||
J/A+A/455/271 : Abundances of red giants in NGC 6441 (Gratton+, 2006) | ||
J/A+A/464/953 : Abundances of red giants in NGC 6441 (Gratton+, 2007) | ||
J/A+A/505/117 : Abund. of red giants in 15 globular clusters (Carretta+, 2009) | ||
|
||
Byte-by-byte Description of file: table.dat | ||
-------------------------------------------------------------------------------- | ||
Bytes Format Units Label Explanations | ||
-------------------------------------------------------------------------------- | ||
1- 7 A7 --- Cluster Cluster name | ||
9- 12 I4 --- Star | ||
14- 20 F7.2 0.1nm Wave wave | ||
? Wavelength in Angstroms | ||
22- 23 A2 --- El a | ||
24 I1 --- ion ?=0 | ||
- Ionization stage (1 for neutral element) | ||
26- 30 F5.2 eV chiEx Excitation potential | ||
32- 37 F6.2 --- loggf Logarithm of the oscillator strength | ||
39- 43 F5.1 0.1pm EW ?=-9.9 Equivalent width (in mA) | ||
46- 49 F4.1 0.1pm e_EW ?=-9.9 rms uncertainty on EW | ||
51- 56 F6.3 --- Q ?=-9.999 DAOSPEC quality parameter Q | ||
(large values are bad) | ||
-------------------------------------------------------------------------------- | ||
|
||
Acknowledgements: | ||
Elena Pancino, elena.pancino(at)oabo.inaf.it | ||
================================================================================ | ||
(End) Elena Pancino [INAF-OABo, Italy], Patricia Vannier [CDS] 23-Nov-2009 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Cr110 2108 6696.79 Al1 4.02 -1.42 29.5 2.2 0.289 | ||
Cr110 2108 6698.67 Al1 3.14 -1.65 58.0 2.0 0.325 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also test one of
EW
,e_EW
, orQ
? They are a little special in the sense that there is also the missing value markup (?=-9.9
) in the description string.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this markup for missing value wont change actual description right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the point of the test, to confirm that the missing value markup does not end up in the description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taldcroft @hamogu So
table['Q'].description
should beDAOSPEC quality parameter Q(large values are bad)
not?=-9.999 DAOSPEC quality parameter Q(large values are bad)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The markup value is processed in line 128 in cds.py.
Currently, the description string is unaltered from what you read in, i.e. the
?=-9.9
is part of the description. What we really should do is something like this:(untested, but something like that.)
Not sure how that works out with line breaks in the description 0 I think those are taken care of in an earlier stage. I would just try and see if it works.
Technically is this outside of the scope of your PR ("requiring at least two description characters") and if you don't want to do it we can postpone it to another PR but it would be great if you could take care of it, while you are working on the description stuff anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would try to do it.