Skip to content

Commit

Permalink
profoundProFound will now load a Rfits_pointer object. This means pro…
Browse files Browse the repository at this point in the history
…foundMultiBand can also be (e.g.) a list of Rfits_pointers- this should help reduce the memory footprint quite a lot for big runs.
  • Loading branch information
asgr committed Feb 9, 2024
1 parent e952554 commit 842009a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 46 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: ProFound
Type: Package
Title: Photometry Tools
Version: 1.22.0
Date: 2023-11-15
Version: 1.23.0
Date: 2024-02-09
Author: Aaron Robotham
Maintainer: Aaron Robotham <[email protected]>
Description: Core package containing all the tools for simple and advanced source extraction. This is used to create inputs for 'ProFit', or for source detection, extraction and photometry in its own right.
Expand Down
3 changes: 3 additions & 0 deletions R/profoundProFound.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ profoundProFound=function(image=NULL, segim=NULL, objects=NULL, mask=NULL, skycu
if(inherits(image, 'Rfits_image')){
keyvalues = image$keyvalues
image = image$imDat
}else if(inherits(image, 'Rfits_pointer')){
keyvalues = image$keyvalues
image = image[,]$imDat
}else if(inherits(image, 'matrix')){
'Do nothing'
}else{
Expand Down
43 changes: 0 additions & 43 deletions man/ProFound-package.Rd

This file was deleted.

2 changes: 1 addition & 1 deletion man/profoundMultiBand.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ profoundMultiBand(inputlist = NULL, dir = "", segim = NULL, mask = NULL,
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{inputlist}{
A list of already loaded images. Typically of the type loaded in from FITS files by the \code{astro} package's \code{read.fits} function, or the \code{FITSio} package's \code{readFITS} function. If using the \option{inputlist} parameter the length of the list must be the same length as \option{multibands} (and the related parameters).
A list of already loaded images. Can be of the type loaded in from FITS files by the \code{Rfits} package's \code{Rfits_read_image} function. If using the \option{inputlist} parameter the length of the list must be the same length as \option{multibands} (and the related parameters).
}
\item{dir}{
If \option{inputlist} is left as NULL then \code{profoundMultiBand} will instead try to load in FITS images from the directory specified by \option{dir}. The images in the directory must have names like \option{multibands}[i].fits etc (so with the defaults names like u.fits and g.fits would be okay). Since \option{multibands} effectively specifies the file names much more complicated naming can be used and passed in, but it is also used by default for naming the catalogue column outputs, so shorter names/references are likely to be preferable there (i.e. mag_ut is simpler than mag_KiDS_VST_ut etc). This can be over-ridden by using \option{bandappend}.
Expand Down

0 comments on commit 842009a

Please sign in to comment.