You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
$\begingroup$ What programming language do you work in? Furthermore, it is not entirely clear to me what you want as output, and I am unfamiliar with this 'nuproducts' tool. Why are the degrees, in which you have converted the pixel coordinates as you say in the EDIT, unsufficient? $\endgroup$user1991– user19912017-12-07 12:19:35 +00:00Commented Dec 7, 2017 at 12:19
-
$\begingroup$ I'm working in Julia now. Basically, NuSTAR data has to be calibrated before it's suitable for scientific analysis and there are a few stages to that calibration, one of the stages requires you to select a source region (as a .reg file, usually created by manually selecting an area using DS9) before you get the final fully calibrated/cleaned data. The FITS files store data as X Y pixel coordinates, but the region file needs to be in WCS, so I convert X, Y to FK5 angles. Problem now is that for converting the angle I get in degrees (which is correct) to hh:mm:ss is different to what DS9 outputs $\endgroup$Robert Rosca– Robert Rosca2017-12-07 12:22:17 +00:00Commented Dec 7, 2017 at 12:22
-
$\begingroup$ How much is the discrepancy between DS9 output and what you get? $\endgroup$user1991– user19912017-12-07 15:07:25 +00:00Commented Dec 7, 2017 at 15:07
-
$\begingroup$ Aha, figured out what I did wrong, I was being stupid and converting degrees to h:m:s as if they were angles on a circle, which doesn't work for right-ascension since it goes from -90 to 90, not 0 to 360. Now that I've fixed it (here's a notebook where it works) it's still a bit off around 10^-5, but I guess that's just some floating point errors adding up along the way. $\endgroup$Robert Rosca– Robert Rosca2017-12-07 16:22:22 +00:00Commented Dec 7, 2017 at 16:22
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
- MathJax equations
$\sin^2 \theta$
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. observational-astronomy), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you