PixInsight: Batch Fits Header Editor (Script)

  Рет қаралды 3,094

Adam Block

Adam Block

Күн бұрын

This brief video demonstrates how to fix incorrect metadata in file headers in seconds. This script is one of many useful tools made by Mike Cranfield. The repository is: www.cosmicphotons.com/pi-scri...
00:00 Intro
03:25 Repository URL
04:12 Fix Coordinates Demonstration
08:23 Fix Filter Demonstration
More at:
AdamBlockStudios.com
See the REVIEWS:
www.adamblockstudios.com/cate...
Those just starting out in PixInsight will enjoy FastTrack Training!
(Updated to include SPCC, FastIntegration and more!!!)
www.adamblockstudios.com/cate...
(see the video • Introducing FastTrack ... )
#PixInsight #FITS #Header #AdamBlockStudios

Пікірлер: 29
@marshawilcox
@marshawilcox 6 ай бұрын
Thank you, Adam. This will be wonderful for adding Filter information to files in which it is not written. The ASIAir only writes filter information when the filter wheel is used; there is no easy way to indicate filters used with a filter drawer. I’ve been using the folder name (… Filter_X) and am grateful to have a way to imbed this information in the files themselves.
@AdamBlock
@AdamBlock 6 ай бұрын
A perfect usage!
@jims9982
@jims9982 4 ай бұрын
Thank you sir! Astrobin would not plate solve my final image. I looked back at it in Pixinsight with Fitsheader and the Fitsheader data was empty. Thank you for the great video.
@jeffdutton1910
@jeffdutton1910 6 ай бұрын
I had this exact problem, though only with one or two images in my dataset. I was able to do the required edit with the fits header process, then manually save the file back to disk. This script is a slick way to capture it all into one smooth operation! Thanks Adam, and thanks Mike Cranfield
@davewilton6021
@davewilton6021 6 ай бұрын
Thanks! I run into bad FITS metadata from time to time, and this is great solution.
@Mr77pro
@Mr77pro 6 ай бұрын
A great script indeed! I had an issue of files that should have been Bin2 but were Bin1. I re-sampled them to Bin2 in Pixinsight but WBPP still saw them as Bin1.
@AdamBlock
@AdamBlock 6 ай бұрын
Yes! This is another very good example. The resample process does not update the header. (and at least with integer resample... perhaps it should...)
@eugennaiman1195
@eugennaiman1195 6 ай бұрын
Great tip Adam - I had no idea this script existed and I was wondering myself about how to do bulk edits. Problem solved now :)
@AnomalousAstro
@AnomalousAstro 6 ай бұрын
Thanks Adam. I've edited the filter names one at a time in PI, but +-200 images is a non-trivial exercise. Huge thanks to Mike C for creating the script (and all the others) and you for bringing it to our attention!
@andreya108
@andreya108 6 ай бұрын
Thank you, Adam. It's a miracle, your video was published the same day I recognized the fact that I've incorrectly set filter during recent session! 😀
@AdamBlock
@AdamBlock 6 ай бұрын
Serendipity!!
@Orionshield1948
@Orionshield1948 3 ай бұрын
It's interesting that Pixinsight can extract the Fits Header info but the script cannot do likewise with the same .xisf file. Which will mean that If the occasion arrives I will still have to edit such manually.
@guyonamotorcycle1
@guyonamotorcycle1 6 ай бұрын
Great stuff, this will help lots of people, including me. Thanks Adam!
@AdamBlock
@AdamBlock 6 ай бұрын
Thank you for watching!
@normanhey8555
@normanhey8555 4 ай бұрын
Looks great for solving a problem I have in filter names--except the script just isn't working as advertised. I loaded files--that took about 8 seconds to load 10 files. Selecting Edit from the Action to Perform panel took another 8 seconds, and the Target Keyword field remains blank. I deleted the script from PI's src folder, deleted the repository and restarted. Reloaded the repository and script--same result. Reset all repositories, reloaded all scripts--same problem with BatchFITSKeywordEdit. All the other scripts I have all work fine. The files I would like to edit all open fine and show the appropriate FITS headers when checked with the FITS Viewer in the File menu. Any help would be appreciated. My next step will be to do a re-install of PI and all of the repository information to see if that solves the problem. I realize that this isn't a problem in your wheelhouse, but since there is no way I can see to contact Mike directly, I thought I would see if you had any ideas of how to repair this. No help from the PI Forum so far...
@gregerianne3880
@gregerianne3880 6 ай бұрын
Thanks so much, Adam. Not sure if you’d really want to do it this way, but this would allow processing in PI of files with different filters that WBPP might not be able to combine more easily, correct? Something similar to what APP can do with two different dual narrowband filters, for example.
@AdamBlock
@AdamBlock 6 ай бұрын
Sure... you could force a filter name- renaming one filter to the same as another. In this way when using WBPP the data will be integrated together.
@gregerianne3880
@gregerianne3880 6 ай бұрын
@@AdamBlock Tried this and it works perfectly, Adam! WBPP processes the data from both filters and produces a single image. I did separate the data from the two different filters into sub folders (Filter_1, Filter_2) so the flats would be processed with the appropriate data. I haven't actually processed the image yet, so I'll have to see if there's a difference between combining the dual narrowband data 'after the fact' vs. having WBPP generate a single image using both filters. What a super utility. Many thanks to Mike Cranfield!
@brinkoo7
@brinkoo7 5 ай бұрын
nice! i have been using a nasty little python script to bulk modify haha
@AdamBlock
@AdamBlock 5 ай бұрын
Well with astropy it is a 10 line script or so. I actually like the python method... entirely flexible... but for convenience in PI... this script is perfect.
@MichaelLeslie-rs2qp
@MichaelLeslie-rs2qp 6 ай бұрын
ls there a app or script that you know of that will rename files using metadata from the header
@AdamBlock
@AdamBlock 6 ай бұрын
I do not know one...I know how to do it in Python with AstroPy methods. It is pretty trivial. Though since you are opening the file to read it...it would be tricky to rename the same file. Making a new copy would be easy. Anyway, it is all possible.
@malcolqwe2
@malcolqwe2 Ай бұрын
as per usual in my world, this doesnt work for me. After selecting edit, the target keyword list is empty. and I know there are values to be listed. In my situation, I am trying to plate solve a bunch of files in a mosaic. But the focal length is wrong in the fits header. I thought if I could edit the header to the right values solving would work. Oh well. maybe theres ANOTHER way
@AdamBlock
@AdamBlock Ай бұрын
In your world... is it s FITS or an XISF file? Only works on FITS. Check the header . You know where to find me so you can post screenshots.
@malcolqwe2
@malcolqwe2 Ай бұрын
@@AdamBlock of course - its been processed six ways to sunday - its an xisf :( thanks!
@donaldwaddel4600
@donaldwaddel4600 6 ай бұрын
Ok, so my acquisition software is screwed up and put a 60 in the " header. Now I have to spend 20 minutes, assuming I actually notice the one file that breaks WPP, and change the 60 to 00 and carry the one. The programmer/script writer could have simply done the following: If " = 60, " = 00, minutes = minutes +1. duh????? lol
@AdamBlock
@AdamBlock 6 ай бұрын
You don't blame the acquisition software? WHY? Why are you not calling them out? Regarding WBPP, you will know instantly. It will not load. No time is wasted.
@petekrz
@petekrz 6 ай бұрын
@@AdamBlock Postel's Law: "Be liberal in what you accept, and conservative in what you send"
@AdamBlock
@AdamBlock 6 ай бұрын
@@petekrz THis is interesting..I did not know this law and learned something. Thanks.However.. in this case I cannot determine which side the law critiques (maybe it is both). In my mind "60" is literally an invalid number being produced by another software. It is like writing code that recognizes the digits 0-9 .. .but then requiring the code to "accept" something not from the set. "60" is simply not in the set of possible values for a sexagesimal representation. That position of the representation should never be a "6". Should we also accept "7" or "8"? And then increment ?? I think you can see which side I fall in for this case.
PixInsight: New Image Blend Script
22:41
Adam Block
Рет қаралды 10 М.
PixInsight: ColorMask Script Complete
21:50
Adam Block
Рет қаралды 12 М.
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 5 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 129 МЛН
7 Things I Wish I Knew About PixInsight
15:47
Peter Zelinka
Рет қаралды 8 М.
Cheap vs Expensive Telescope for Astrophotography
16:23
Felix's Astrophotography
Рет қаралды 8 М.
Pixinsight and Extracted Stars (SXT with a HNY)
15:15
Adam Block
Рет қаралды 9 М.
New Approach to LRGB Processing in PixInsight
9:36
Adam Block
Рет қаралды 9 М.
How to use Obsidian as CRM with Dataview and Metadata Menu!
12:07
Marco Serafini
Рет қаралды 9 М.
Metadata Menu UPDATE: Editable queries and better property options
1:25:45
Danny Talks Tech
Рет қаралды 25 М.
FITS Liberator Basics instruction video
7:55
HubbleWebbESA
Рет қаралды 6 М.
Manually align two images in PixInsight (simple #howto)
9:39
VisibleDark
Рет қаралды 10 М.
Astropy Lesson 1: Introduction to FITS File Handling
8:55
Micah Laing
Рет қаралды 6 М.
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН