Skip to content
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

Add additional fields to database for plate scale calculation #407

Open
3 tasks done
mgalloy opened this issue Oct 29, 2024 · 1 comment
Open
3 tasks done

Add additional fields to database for plate scale calculation #407

mgalloy opened this issue Oct 29, 2024 · 1 comment
Assignees
Labels
enhancement new feature
Milestone

Comments

@mgalloy
Copy link
Member

mgalloy commented Oct 29, 2024

Add additional fields to kcor_eng for plate scale calculation:

  • rcam_dcr
  • tcam_dcr

Tasks

  • add fields to kcor_eng_create_table.pl
  • add fields to existing dev and prod databases
  • update fields in kcor_eng_insert.pro
@mgalloy mgalloy added the enhancement new feature label Oct 29, 2024
@mgalloy mgalloy added this to the KCor 2.2 milestone Oct 29, 2024
@mgalloy mgalloy self-assigned this Oct 29, 2024
@bberkeyU
Copy link
Collaborator

bberkeyU commented Nov 4, 2024

There are a few FITS keywords that dont get captured in the database. I dont think they should all be captured, but I tried to group the values where I think they should go if we do capture them.

Hardware information should be in kcor_hw/kcor_cal:

LYOTSTOP= 'in      '           / specifies if the 2nd Lyot stop is in the beam  

Observer: Not sure if needed, maybe kcor_raw:

OBSERVER= 'Waters  '           / name of Mauna Loa observer                     

Image alignment data potentially include in kcor_eng:

XCAMCSH0=                    2 / [px] cam corr shift to align w/ img, + to left  
XCAMCSH1=                    2 / [px] cam corr shift to align w/ img, + to left  
XCAMSH0 =                    0 / [px] image shift, + to right                    
XCAMSH1 =                    0 / [px] image shift, + to right                    
TCAM_DCX=               513.19 / [pixel] camera 1 dist cor occulter X center    
TCAM_DCY=               512.80 / [pixel] camera 1 dist cor occulter Y center    
RCAM_DCY=               512.73 / [pixel] camera 0 dist cor occulter Y center    
RCAM_DCX=               513.09 / [pixel] camera 0 dist cor occulter X center    

Image/Plate scale information: kcor_eng:

CDELT1  =               5.6430 / [arcsec/pixel] solar X increment = platescale  
CDELT2  =               5.6430 / [arcsec/pixel] solar Y increment = platescale  
CRLN_OBS=               86.008 / [deg] solar L angle: Carrington longitude      
CRLT_OBS=                4.503 / [deg] solar B angle: Carrington latitude       
CRPIX1  =               512.50 / [pixel] solar X center (index origin=1)        
CRPIX2  =               512.50 / [pixel] solar Y center (index origin=1)        
CRVAL1  =                 0.00 / [arcsec] solar Y sun center                    
CTYPE1  = 'HPLN-TAN'           / [deg] helioprojective west angle: solar X      
CTYPE2  = 'HPLT-TAN'           / [deg] helioprojective north angle: solar Y     
CUNIT1  = 'arcsec  '           / unit of CRVAL1                                 
CUNIT2  = 'arcsec  '           / unit of CRVAL2                                 
CRVAL2  =                 0. 

Processing inputs: kcor_sci:

SKYTRANS=                1.006 / sky transmission correction normalized to gain 
CAMERAS = 'both    '           / cameras used in processing                    
ROLLCORR=                  0.7 / [deg] clockwise offset: spar polar axis align. 
DMODSWID= '2016-05-26'         / date of demodulation software                  
SKYPOLRM= 'subtraction'        / sky polarization removal method                 

Calibration inputs: kcor_cal:

TCAMPOLS=                    0 / first state used in polarization demodulation  
RCAMPOLS=                    0 / first state used in polarization demodulation  
BIASCORR=                    0 / bias added after sky polarization correction    
CALFILE = '20171030_192142_kcor_cal_v13_2.0.65_2.500ms.ncdf' / calibration file 

Camera fixes: kcor_raw:

FIXCAMLC=                    1 / interp over bad pixels in camera lin correction
TCAMCORR= 'camera_calibration_MV-D1024E-CL-13890_02.5000_lut13890-20160716.ncdf'
RCAMCORR= 'camera_calibration_MV-D1024E-CL-13891_02.5000_lut13891-20160716.ncdf'

WCS data: Maybe kcor_sci:

SOLARDEC=              -14.026 / [deg] solar declination                        
SOLAR_RA=              215.187 / [h] solar right ascension (hours)              
SOLAR_P0=               24.659 / [deg] solar P angle applied (image has N up)   
RSUN_REF=          6.96182E+08 / [m] solar radius doi:10.1051/0004-6361/20173215
RSUN    =               966.49 / [arcsec] solar radius (old standard keyword)   
R_SUN   =               171.27 / [pixel] solar radius                         
HGLT_OBS=                4.503 / [deg] Stonyhurst heliographic latitude         
HGLN_OBS=                0.000 / [deg] Stonyhurst heliographic longitude          
DSUN_OBS=       148535499453.4 / [m] distance to the Sun from observer          

Capture more sgs data?

SGS not SGSDIMS,SGSDIMSV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature
Projects
None yet
Development

No branches or pull requests

2 participants