Changeset 42727
- Timestamp:
- Oct 24, 2024, 12:25:37 PM (21 months ago)
- Location:
- tags/ipp-ops-20220906/ippconfig
- Files:
-
- 4 edited
-
Makefile.am (modified) (1 diff)
-
configure.ac (modified) (1 diff)
-
gpc1/camera.config (modified) (1 diff)
-
notes.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-ops-20220906/ippconfig/Makefile.am
r39705 r42727 62 62 ipprc.config: $(srcdir)/ipprc.config.in 63 63 dvo.site: $(srcdir)/dvo.site.in 64 65 66 TGTDIR = $(PSCONFDIR)/$(PSCONFIG)/etc 67 SRC = compress 68 TGT = $(TGTDIR)/compress.mgc 69 70 install: $(TGT) 71 build: $(MGC) 72 73 if HAVE_LINUX 74 MES = YesLINUX 75 MGC = compress.mgc 76 else 77 MES = StillNoLINUX 78 MGC = gentoo 79 endif 80 81 $(TGT): $(MGC) 82 cp $(MGC) $(TGT) 83 84 test: $(TGT) 85 file o60523g0045o.2132764.wrp.2688740.skycell.1566.004.pswarp.mdc 86 file -m $(TGT) o60523g0045o.2132764.wrp.2688740.skycell.1566.004.pswarp.mdc 87 88 prt: 89 @echo $(MES) -
tags/ipp-ops-20220906/ippconfig/configure.ac
r39705 r42727 6 6 AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2]) 7 7 AM_MAINTAINER_MODE 8 9 AM_CONDITIONAL([HAVE_GENTOO], [test -f /etc/gentoo-release]) 10 AM_CONDITIONAL([HAVE_LINUX], [test -f /etc/os-release]) 8 11 9 12 AC_PROG_INSTALL -
tags/ipp-ops-20220906/ippconfig/gpc1/camera.config
r42297 r42727 5 5 MEF STR gpc1/format_mef.config 6 6 RELPHOT STR gpc1/format_relphot.config 7 RAW_20220827 STR gpc1/format_20220827.config8 7 RAW_20100723 STR gpc1/format_20100723.config 9 8 RAW_20100228 STR gpc1/format_20100228.config -
tags/ipp-ops-20220906/ippconfig/notes.txt
r12377 r42727 1 1 2 creating a new camera:2 This is the home web page for the file command: 3 3 4 * add the camera to the CAMERAS list (ipp/ippconfig/ipprc.config) 5 * create the camera directory (ipp/ippconfig/CAMERA) 6 * copy example recipe files from a similar camera (eg, ipp/ippconfig/megacam) 7 * copy Makefile.am from a similar camera (eg, ipp/ippconfig/megacam) 8 * edit camera.config to describe your camera 9 - list the ccds and chips in FPA METADATA 10 - list the filters of interest (header name STR internal name) 11 give all varients used in the headers 12 - fix paths which refer to the original paths. 13 * edit the format*.config files to match your camera: 14 - set up a rule to recognize the camera 15 - define keywords which will uniquely recognize your headers 16 4 https://www.darwinsys.com/file/ 5 6 Here is their github page. 7 8 https://github.com/file/file/tree/master/magic/Magdir 9 10 I used this tool to download just the Magdir directory: 11 12 https://download-directory.github.io/ 13 14 For reasons unknown, several of the files in that directory raise errors when compiling 15 the magic file. Running this command generates a list of errors: 16 17 file -m Magdir -C 18 19 I remove the files listed in the error messages: 20 21 mkdir -p trash 22 rsync -auv Magdir/ myMagdir/ 23 foreach f ( `file -m myMagdir -C | & awk -F, '{print $1}' | sort | uniq | grep myMagdir` ) 24 mv $f trash/ 25 end 26 27 Then compile this new directory: 28 29 file -m myMagdir -C 30 31 We can use the new magic file: 32 33 file -m myMagdir.mgc o60523g0045o.2132764.wrp.2688740.skycell.1566.004.pswarp.mdc 34 35 Fortuitously, the "DOS/MBR boot sector" magic numbers are among these files which 36 do not compile, specifically in Magdir/filesystems 37 38 The new magic file (myMagdir.mgc) is rather large: 5.3MB. 39 40 Within the IPP, we use the command 'file' in order to distinguish compressed MDC files 41 from uncompressed files. For this purpose, we only need a magic file built using the 42 file Magdir/compress: 43 44 cp myMagdir/compress . 45 file -m compress -C 46 47 This yields 'compress.mgc' 48 49 Unfortunately, the same magic file cannot be used by the binaries on both Ubuntu and Gentoo. 50 51 So, to address the specific IPP issue, we need to install a different version of the 52 file in some discoverable / defined location which depends on the build architecture. 53
Note:
See TracChangeset
for help on using the changeset viewer.
