Comments (4)
I think this is by design. However, I am not sure it's correct either. It works like this:
- First run
- Run updatewcs using the distortion files and create a Primary WCS.
WCSNAME
is set toIDC_<idcfile_rootname>
. - Get the best solution from the database. Compare it WCSNAME with the WCSNAME of the Primary one.
If different continue (see below why they are always different) - Archive the Primary WCS (wcskey=A)
- Replace the Primary WCS with the one from the database.
WCSNAME
is set to the WCSNAME of the database solution which follows a different pattern. - Update the distortion files with the ones used by the database solution
- Run updatewcs using the distortion files and create a Primary WCS.
- Second run
- Run updatewcs using the distortion files (the new ones) and create a Primary WCS.
This will use the name of the new idcfile to create a WCSNAME using the patternIDC_<idcfile_rootname>
. - Get the best solution from the database (note that it is the same one as before)
- Archive the Primary WCS (from distortion files, wcskey=B)
- Compare the best solution WCSNAME with the current WCSNAME of the Primary WCS.
Although it's the same solution the wcsnames are different because of i) above - Replace the Primary WCS with the one from the database
- Update the distortion files with the ones used by the database solution
- Run updatewcs using the distortion files (the new ones) and create a Primary WCS.
and so on ...
from stwcs.
Inserting a verification that the wname
is unique (not already an alt WCS) before
Line 152 in 9525b08
from stwcs.
This can now be closed?
from stwcs.
Yes
from stwcs.
Related Issues (20)
- Updatewcs 1.5.1 failed with new IDCTAB HOT 5
- TST: Remove flake8 check from allowed failures
- Change astrometry database update HOT 1
- Fix order of WCSs applied to image HOT 3
- Some keywords are not restored properly in headerlet.restore_from_headerlet
- WCS key that is a space should be converted to empty string before appending to keywords HOT 1
- Why is PC matrix multiplied by cdelt1 to get CD matrix
- Applying updatewcs with use_db=True multiple times results in multiple alternative WCSes HOT 1
- Strange code in altwcs HOT 7
- _restore() overwrites archived WCS CTYPE HOT 3
- convertAltWCS and archiveWCS should not archive some non-altwcs specific keywords HOT 1
- When restoring from altwcs 'O', TDDALPHA is not reset HOT 1
- altwcs now causes pipeline software to crash HOT 5
- Should updatewcs overwrite OPUS WCS? HOT 3
- Should WCSNAME* be case-insensitive? HOT 11
- Automatic PyPI publication enabled HOT 1
- Applying a headerlet should remove all alternate WCSs if distortions are different HOT 1
- Compute new a priori WCS for updated IDCTAB in updatewcs HOT 1
- wcskey not properly propagated in tweakback? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stwcs.