IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42727


Ignore:
Timestamp:
Oct 24, 2024, 12:25:37 PM (21 months ago)
Author:
tdeboer
Message:

facilitate building of compress.mgc file for IPP-2201

Location:
tags/ipp-ops-20220906/ippconfig
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-ops-20220906/ippconfig/Makefile.am

    r39705 r42727  
    6262ipprc.config: $(srcdir)/ipprc.config.in
    6363dvo.site: $(srcdir)/dvo.site.in
     64
     65
     66TGTDIR  = $(PSCONFDIR)/$(PSCONFIG)/etc
     67SRC     =       compress
     68TGT     =       $(TGTDIR)/compress.mgc
     69
     70install: $(TGT)
     71build:   $(MGC)
     72
     73if HAVE_LINUX
     74MES = YesLINUX
     75MGC = compress.mgc
     76else
     77MES = StillNoLINUX
     78MGC = gentoo
     79endif
     80
     81$(TGT): $(MGC)
     82        cp $(MGC) $(TGT)     
     83
     84test: $(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
     88prt:
     89        @echo $(MES)
  • tags/ipp-ops-20220906/ippconfig/configure.ac

    r39705 r42727  
    66AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2])
    77AM_MAINTAINER_MODE
     8
     9AM_CONDITIONAL([HAVE_GENTOO], [test -f /etc/gentoo-release])
     10AM_CONDITIONAL([HAVE_LINUX], [test -f /etc/os-release])
    811
    912AC_PROG_INSTALL
  • tags/ipp-ops-20220906/ippconfig/gpc1/camera.config

    r42297 r42727  
    55        MEF             STR     gpc1/format_mef.config
    66        RELPHOT         STR     gpc1/format_relphot.config
    7         RAW_20220827    STR     gpc1/format_20220827.config
    87        RAW_20100723    STR     gpc1/format_20100723.config
    98        RAW_20100228    STR     gpc1/format_20100228.config
  • tags/ipp-ops-20220906/ippconfig/notes.txt

    r12377 r42727  
    11
    2 creating a new camera:
     2This is the home web page for the file command:
    33
    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
     6Here is their github page.
     7
     8  https://github.com/file/file/tree/master/magic/Magdir
     9
     10I used this tool to download just the Magdir directory:
     11
     12  https://download-directory.github.io/
     13
     14For reasons unknown, several of the files in that directory raise errors when compiling
     15the magic file.  Running this command generates a list of errors:
     16
     17  file -m Magdir -C
     18
     19I 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
     27Then compile this new directory:
     28
     29  file -m myMagdir -C
     30
     31We can use the new magic file:
     32
     33  file -m myMagdir.mgc o60523g0045o.2132764.wrp.2688740.skycell.1566.004.pswarp.mdc
     34
     35Fortuitously, the "DOS/MBR boot sector" magic numbers are among these files which
     36do not compile, specifically in Magdir/filesystems
     37
     38The new magic file (myMagdir.mgc) is rather large: 5.3MB. 
     39
     40Within the IPP, we use the command 'file' in order to distinguish compressed MDC files
     41from uncompressed files.  For this purpose, we only need a magic file built using the
     42file Magdir/compress:
     43
     44  cp myMagdir/compress .
     45  file -m compress -C
     46
     47This yields 'compress.mgc'
     48
     49Unfortunately, the same magic file cannot be used by the binaries on both Ubuntu and Gentoo.
     50
     51So, to address the specific IPP issue, we need to install a different version of the
     52file in some discoverable / defined location which depends on the build architecture.
     53
Note: See TracChangeset for help on using the changeset viewer.