Giter Site home page Giter Site logo

peterkamphuis / fat Goto Github PK

View Code? Open in Web Editor NEW
4.0 5.0 0.0 47.41 MB

FAT is now surpassed by pyFAT (https://github.com/PeterKamphuis/pyFAT-astro) a much more flexible and hopefully more accurate version of the code. The IDL/GDL wrapper is merely retained for historical purposes. FAT is an IDL/GDL wrapper to automate TiRiFiC

License: MIT License

Prolog 23.60% IDL 76.40%
gdl fat

fat's Introduction

The IDL/GDL version of FAT is now archived and will not be developed further. Please see https://github.com/PeterKamphuis/pyFAT-astro for a python version that is still in development.

Fully Automated TiRiFiC (FAT)

=====

Introduction

The Fully Automated TiRiFiC is an IDL/GDL wrapper around the tilted ring fitting code (TiRiFiC) that aims to fully automate the process of fitting simple tilted ring models to line emission cubes. This code is still in the development phase and hence errors and bugs can be present. Nevertheless, the code has extensively been tested and the results and a more extensive description of the code are documented in Kamphuis et al. 2015

The file Current_Status.pdf provides an overview of plots from Kamphuis et al. (2015) which illustrate the performance of the current version of FAT. This fully tested version is available on the master branch. Typically the current version works much better then the version from 2015. However, as we have also reduced the applied errors the plots in this document show that performance is comparable, i.e. the fits are equally accurate with smaller errors. Additionally, as FAT now employs a Monte Carlo method in the regularisation of the parameters the final model can sometimes differ slightly. However this should always be within the calculated errors. If not please open an issue on the GitHub.

For a long time development of FAT has now been done under GDL. As of v2.0.1 accurate performance is no longer guaranteed under IDL, even though there is no reason that GDL code would not run under IDL. As such the recommended way to run now is under GDL. This also means that the installation check does not necessarily work for IDL as small differences can occur between the IDL and GDL runs. When running under IDL and obtaining decent output for the check one can ignore the message that the differences are outside the tolerances. As of the release v2.0 further development of FAT will be done in python (https://github.com/PeterKamphuis/pyFAT)and only bug fixes will be applied to this version.

If you are looking for specific functionality or find that FAT is not performing well despite the galaxy having regular rotation or just want to chat about tilted ring modelling pipelines please do not hesitate to contact me.

It is important to remember that FAT is meant for batch fitting. Hence, the aim of the code is to provide tilted ring models that are accurate for a large fraction of galaxies. Ideally, FAT should identify galaxies that are not fitted well however this feature is not optimal yet. When fitting individual galaxies it is recommended to run FAT and then fine tune the model by hand in TiRiFiC. In most cases such fine tuning will be limited to a few outer rings but in the case of complex galaxies with significant non-cylindrically symmetric motions the models can fail (Or in the case of very bad data but that is not a FAT issue).

FAT is not an automated version of the extended functionality of TiRiFiC. FAT fits simple rotationally symmetric discs with asymmetric warps and surface brightness distributions. However, TiRiFiC itself provides a much more extended functionality and should be used for identifying significant non-cylindrically symmetric motions, thick discs, bars and other such HI features. When modelling such galaxies ideally FAT can provide a base model and setup a .def file with merely a thin disc. These can then be used in TiRiFiC in order to explore large scale motions not captured by FAT’s simple model. For examples of such modelling please see Kamphuis et al. (2011), Zschaechner et al. (2011), Kamphuis et al. (2013), Gentile et al. (2013).

Requirements

A docker image with FAT can be found here: https://hub.docker.com/r/alankardutta/fat_gdl

If you prefer a local installation please follow the instructions below.

The code requires full installation of:

IDL 7.0 or higher or GDL 0.9.6 or higher with astrolib
TiRiFiC v2.2.3 or higher 
SoFiA v 0.4.0 or higher 
mpfit package
Standard unix commands pwd, mkdir, rm, cp, ls, python

astrolib (note the Coyote Library Dependencies for newer versions), GDL, IDL,TiRiFiC, SoFiA

IDL/GDL needs to be able to execute tirific, sofia, rename and the standard unix commands from a spawn command. All other dependencies should be in IDL and available with the normal IDL distributions.

To run under GDL you will additionally need the package mpfit for GDL by Ole Streicher (https://packages.debian.org/sid/all/gdl-mpfit/download). Since version 6.0 mpfit is also a requirement when run under idl. The IDL version can be found here: https://cow.physics.wisc.edu/~craigm/idl/fitqa.html#download

The GDL version is tested under Ubuntu 16.04 and runs after running the command

sudo apt-get install gnudatalanguage gdl-astrolib gdl-mpfit libplplot-dev

Under ubuntu the astrolib package and mpfit package were not found after installation and hence a .gdlstartup file is required with the line

!PATH=!PATH+':/usr/share/gnudatalanguage/astrolib:/usr/share/gnudatalanguage/coyote:/usr/share/gnudatalanguage/mpfit'

Installation

Unpack the zip file in a desired directory and you are ready to run FAT from this directory under IDL. The rename command might have to be aliased to rename -s, as this depends on which exact rename command and their are many versions available the code excutes the command "rename originalstring replacestring filesonwhichtoexecute" make sure that this is what the rename command does in the shell that is run by IDL.

You will also have to make a softlink in the Support directory to file sofia_pipeline.py in the sofia distribution i.e.:

cd Support/
ln -s pathtosofiainstallation/sofia_pipeline.py sofia_pipeline.py

Where pathtosofiainstallation is the name of the PATH leading to your local installation of SoFiA. Once you have installed FAT you can check that it has been installed properly by running FAT as

IDL/GDL>.r FAT.pro
IDL/GDL>FAT, /installation_check

This should take typically 10 min and should finish with the message:

!!!!--------------------------------------------!!!!!
!!!! As far as we can tell FAT is installed     !!!!!
!!!! properly and runs smoothly.                !!!!!
!!!!--------------------------------------------!!!!!

The check consists of fitting a flat disk on NGC 2903. The data for this galaxy were take as part of the WHISP program. This survey is decribed in van der Hulst et al. (2001) and the data can be found at Westerbork on the Web or the WHISP page.

If you get any other message please do not hesitate to file an issue here.

The fit done to check the installation will only leave the .def file and the overview plot that is produced. The directory Installation_Check will contain three overview files. Overview.png is the plot produced by your installation. Overview_IDL.png is for comparison with and IDL run and Overview_GDL.png for comparison with a GDL fit.

The plots should look like this:

Overview plot of IDL run of Flat Disk

Sometimes, due to updates in SoFiA or TiRiFiC, the check might show small difference beyond the tolerance limits. If these are small and you have checked the individual installations of SoFiA, GDL/IDL, TiRiFiC and the Installation Check files are older than the latest SoFiA or TiRiFiC update, then the installation is probably correct and you can continue. Please do post an issue about the outdated installation check.

Running FAT

FAT is currently run under GDL/IDL. It is called as a regular GDL/IDL program, i.e. in GDL/IDL:

IDL/GDL >.r FAT.pro
IDL/GDL >FAT,configuration_file='pathtodir/configfile.config',support='pathtosupportfilesdir'

All information that the code needs about output directories fitting steps and input parameters are taken from the configfile. If a config file is not given it will look for the file 'FAT_INPUT.config' in the directory from which FAT is run. The default support directory is ./Support however you can specify an alternative directory with the keyword support.

Configuration File

A configuration file will require the following parameters:

    catalogue=Path_to_catalog_dir/Catalog.txt

The code requires a catalogue with input sources to know which cubes to fit and where they are (See Below) the catalogue keyword should provide the path to this catalogue. There is no default for this.

    maindir=Path_to_dir_with_input/

maindir should contain the path where the directories for all galaxies are stored. FAT can produce large amounts of output if requested (e.g. Models for each step, xvdiagrams, Fitting logs, see maps_output parameter). In order to keep this managable each galaxy requires its own directory. There is no default for this parameter.

    outputcatalogue=Path/nameofresult.txt

In these three variables Path_to_catalog_dir,Path_to_dir_with_input and Path should be replaced with the local path name to where your input catalog can be found, the path to the directory where the galaxy directories reside and the path to where you want the output catalog to be. The code will write a summary of the succes of the fit for each galaxy in this file.

    new_output='y'

new_ouput controls whether you want a new output catalogue with the summary of the fits done by FAT. If set to 'n' the existing catalogue will be appendended. Typically you would want new output when starting a new batch fit and append if you are restarting a batch fit. Default ='y'

    startgalaxy=0

The catalogue number at which the code should start. The default is 0 which is the first line

    endgalaxy=-1

The catalogue number at which the code should stop. The default is -1 which means that it should run until the end of the catalog.

    outputlog=fitlog.txt

The name of a log file that will trace the iterations and steps that the code is executing for each galaxy. This file is written into the galaxy directory. If left out no log file will be written and additional output will be printed to the terminal.

    new_log='y'

Do you want to write a new log file. If set to 'n' the existing log file will be appendended. Default='y'

    velocity_resolution=1

The velocity resolution of the data cubes. If set to zero the code assume that the instrumental dispersion is equal to a (1.2 x channel)/(2 x SQRT(2ln2)) otherwise (1+vresolution) x channel/(2 x SQRT(2ln2)). That is, if set to 1 it assumes Hanning smoothing. Default=1.

    maps_output = 2

Maps_output controls the amount of outpur created by FAT. 0.= all possible output (This is a lot), 1= all steps model + maps + def files, 2 = Final model + maps + def files for steps + logs, 3 = Only final model def + logs. Default = 2

warp_output = 0

FAT provides the possibility to get information about the fitted warp (Tiltograms, Warp radius, Max angle) if this is required warp_output should be set to 1.

    allnew=1.

Parameter for setting the type of input for the initial guesses. possible setting are -1, 0, 1, 2 -1) Start from orginal cube. 0) use initial guesses produced by FAT in a previous run. This is not recommended but can slightly speed up the start of the fitting. However it can lead to mismatches if slight changes have occured between runs.

  1. Start from header and blank adjusted cube (i.e _preprocessed) (default)

  2. Pre-produced SoFiA output should be used for the initial guesses. These need to be specified in the input catalog (See input catalog)

     finishafter=2.
    

Parameter for finishing the fitting process early. if set to one the program finishes after fitting the flat disk. Default = 2

    opt_pixelbeam=4.

The amount of pixels in the FWHM of the minor axis. Default = 4.

A default config file (FAT_INPUT.config) is included in the distribution.

Input Catalog

The input catalog should have at least 4 columns named as

    number|distance|directoryname|cubename

and seperated by | The number is an easy identifier to keep track of which galaxy is being fitted. the distance is the distance to the galaxy in Mpc. This is used to make some initial guesses for the structure of the galaxy. If it is unknown it should be set to 1. The directory name is the name of the directory of the galaxy to be fitted. This directory should be located in the specified maindir in the config file. cubename is the name of the cube to be fitted. This should be without the fits extension.

An example catalog is included in the distribution. This also gives examples for how to set up a catalog when using pre-made sofia input, i.e. allnew=2

fat's People

Contributors

peterkamphuis avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fat's Issues

Implement proper error handling through CATCH use.

The main routine now use a CATCH to deal with errors and to remind users to submit bug reports here. However whenever the code breaks in a subroutine this will not be caught.

Implement the CATCH routine in all subroutine such that proper handling occurs.

Additionally in GDL currently it is impossible to get a decent trace back with catch. Find a solution for this.

Create Data Testset

Create a test set that people can use to check wether FAT is working after installation.

Overview plot of fit

Produce as output a single png file that gives an overview of parameters, PV-diagrams and moment maps. This should be uniform/similar as output overview from 2DBAT.

I think that for starters this file should have the radial profiles for SBR, VROT, INC, and PA. The moment0, 1, 2 maps with contours of model and data. In case of FAT a PV-diagram along the major axis comparing model and data.

Getting warnings on running `FAT`

Hi,

I get some warnings on trying to run FAT installation check. Just wanted to make sure that it is not something too important probably there can be something which the developers can suggest to fix this.

I have also created a public Docker repository where FAT is setup for public use. One can just download the docker image and get FAT running right away as all libraries and environment has been checked and pre-set. I thought about sharing that as well.
Here's the link: https://hub.docker.com/r/alankardutta/fat_gdl

WARNING: Ignoring unknown parameter: parameters.dilateChan = 1
WARNING: Converting '/S' to '/s' in CUNIT3.
WARNING: FITSFixedWarning: DATE-OBS= 1994.884
a string value was expected. [astropy.wcs.wcs]
WARNING: WCS conversion of parameters failed with the following error:
WARNING:   (<class 'astropy.wcs._wcs.InvalidTransformError'>, InvalidTransformError("ERROR 6 in wcs_units() at line 2582 of file wcs.c:\nIn CUNIT1 : Invalid symbol in EXPON context in 'DEGREE'.\n",), <traceback object at 0x7f753c919f38>)
WARNING:   at line 165 of wcs_coordinates.py
%

ls: cannot access '*_opt*': No such file or directory
ls: cannot access 'Optimized': No such file or directory
ls: cannot access 'No_Warp': No such file or directory
mv: cannot stat 'Overview.png': No such file or directory
% Compiled module: LOADCT.
% DATE_CONV: Invalid input date specified

*** PLPLOT ERROR, ABORTING OPERATION ***
UTF-8 string is malformed: 21!9�!X25', aborting operation
% Compiled module: TO_HEX.

*** PLPLOT ERROR, ABORTING OPERATION ***
UTF-8 string is malformed: 21!9�!X25', aborting operation
% DATE_CONV: Invalid input date specified
%

*** PLPLOT ERROR, ABORTING OPERATION ***
UTF-8 string is malformed: 21!9�!X25', aborting operation

*** PLPLOT ERROR, ABORTING OPERATION ***
UTF-8 string is malformed: 21!9�!X25', aborting operation
% DATE_CONV: Invalid input date specified
% DATE_CONV: Invalid input date specified
GPL Ghostscript 9.26 (2018-11-20)
Copyright (C) 2018 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusSans-Regular font from /usr/share/ghostscript/9.26/Resource/Font/NimbusSans-Regular... 4425900 2899258 2037672 733360 4 done.
mv: cannot stat 'No_Warp/*.def': No such file or directory
mv: cannot stat 'Optimized/*.def': No such file or directory

Full log:

fat_user@9545768d14ac:~/FAT$ gdl

 GDL - GNU Data Language, Version 0.9.6

- For basic information type HELP,/INFO
- Please report bugs, feature or help requests and patches at:
 http://sourceforge.net/projects/gnudatalanguage/

GDL> .r FAT.pro
% Compiled module: FAT.
GDL> FAT, /installation_check
% Compiled module: STR_SEP.
% Compiled module: BEAM_PLOT.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/beam_plot.pro
% Compiled module: BOOK_KEEPING.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/book_keeping.pro
% Compiled module: BUILDAXII.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/buildaxii.pro
% Compiled module: CALC_EDGE.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/calc_edge.pro
% Compiled module: CHANGERADII.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/changeradii.pro
% Compiled module: CHECK_CFLUX.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/check_cflux.pro
% Compiled module: CLEANUP.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/cleanup.pro
% Compiled module: CLEAN_HEADER.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/clean_header.pro
% Compiled module: COLOUR_BAR.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/colour_bar.pro
% Compiled module: COLORMAPS.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/colormaps.pro
% Compiled module: COLUMNDENSITY.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/columndensity.pro
% Compiled module: CONVERTRADEC.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/convertradec.pro
% Compiled module: CONVERTSKYANGLEFUNCTION.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/convertskyanglefunction.pro
% Compiled module: CREATE_RESIDUAL_FILE.
% Compiled module: CREATE_RESIDUALS.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/create_residuals.pro
% Compiled module: DEC_NAMES.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/dec_names.pro
% Compiled module: EXTRACT_PV.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/extract_pv.pro
% Compiled module: FAT_ARCTAN.
% Compiled module: FATARCTAN.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/fat_arctan.pro
% Compiled module: FATARCTAN.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/fatarctan.pro
% Compiled module: FAT_FIT.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/fat_fit.pro
% Warning: Keyword parameter COMPILE_FULL_FILE not supported in call to: RESOLVE_ROUTINE. Ignored.
% Compiled module: FAT_GDLGAUSS.
% Compiled module: FATGAUSS.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/fat_gdlgauss.pro
% Compiled module: FAT_SAVGOL.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/fat_savgol.pro
% Compiled module: FAT_PLOTERROR.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/fat_ploterror.pro
% Compiled module: FAT_SMOOTH.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/fat_smooth.pro
% Compiled module: FAT_SPLINE.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/fat_spline.pro
% Compiled module: GETDHI.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/getdhi.pro
% Compiled module: GET_FIXEDRINGSV9.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/get_fixedringsv9.pro
% Compiled module: GET_NEWRINGSV9.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/get_newringsv9.pro
% Compiled module: GET_PROGRESS.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/get_progress.pro
% Compiled module: INT_PROFILEV2.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/int_profilev2.pro
% Compiled module: INTERPOLATE.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/interpolate.pro
% Compiled module: INSTALL_CHECK.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/install_check.pro
% Compiled module: ISNUMERIC.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/isnumeric.pro
% Compiled module: LINENUMBER.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/linenumber.pro
% Compiled module: MOMENTSV2.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/momentsv2.pro
% Compiled module: OBTAIN_PA_INCL.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/obtain_pa_incl.pro
% Compiled module: OBTAIN_RATIOS.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/obtain_ratios.pro
% Compiled module: OBTAIN_VELPA.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/obtain_velpa.pro
% Compiled module: OBTAIN_W50.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/obtain_w50.pro
% Compiled module: ORGANIZE_OUTPUT.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/organize_output.pro
% Compiled module: OVERVIEW_PLOT.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/overview_plot.pro
% Compiled module: PRE_RAN_SOFIA.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/pre_ran_sofia.pro
% Compiled module: PREPROCESSING.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/preprocessing.pro
% Compiled module: RA_NAMES.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/ra_names.pro
% Compiled module: READ_TEMPLATE.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/read_template.pro
% Compiled module: REGULARISATION_SDIS.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/regularisation_sdis.pro
% Compiled module: RENAME.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/rename.pro
% Compiled module: REVISED_REGULARISATION_COM.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/revised_regularisation_com.pro
% Compiled module: REVISED_REGULARISATION_ROT.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/revised_regularisation_rot.pro
% Compiled module: ROTTAB.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/rottab.pro
% Compiled module: RUN_SOFIA.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/run_sofia.pro
% Compiled module: SBR_CHECK.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/sbr_check.pro
% Compiled module: SET_SBR.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/set_sbr.pro
% Compiled module: SET_SDIS.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/set_sdis.pro
% Compiled module: SET_VROTV6.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/set_vrotv6.pro
% Compiled module: SET_WARP_SLOPEV3.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/set_warp_slopev3.pro
% Compiled module: SHOWPIXELSMAP.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/showpixelsmap.pro
% Compiled module: WRITEFITTINGVARIABLES.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/writefittingvariables.pro
% Compiled module: WRITENEWTOTEMPLATE.
% RESOLVE_ROUTINE: Compiled file: /home/fat_user/FAT/Support/writenewtotemplate.pro
% Compiled module: FILE_LINES.
% Compiled module: STRSPLIT.
(629) This is version V2.0.2 of the program
(864) We're at galaxy number 0. Which is catalogue id number 0
% Compiled module: READFITS.
% Compiled module: SXPAR.
% Compiled module: GETTOK.
% Compiled module: VALID_NUM.
% Compiled module: SXADDPAR.
% Compiled module: SXDELPAR.
% Compiled module: STDDEV.
% Compiled module: MOMENT.
% Compiled module: WRITEFITS.
% Compiled module: CHECK_FITS.
% Compiled module: FXPAR.
(1126) We have started from the original cube.
(1160) RUN_SOFIA: Running SoFiA.
WARNING: Ignoring unknown parameter: parameters.dilateChan = 1
WARNING: Converting '/S' to '/s' in CUNIT3.
WARNING: FITSFixedWarning: DATE-OBS= 1994.884
a string value was expected. [astropy.wcs.wcs]
WARNING: WCS conversion of parameters failed with the following error:
WARNING:   (<class 'astropy.wcs._wcs.InvalidTransformError'>, InvalidTransformError("ERROR 6 in wcs_units() at line 2582 of file wcs.c:\nIn CUNIT1 : Invalid symbol in EXPON context in 'DEGREE'.\n",), <traceback object at 0x7f753c919f38>)
WARNING:   at line 165 of wcs_coordinates.py
% Compiled module: XYAD.
% Compiled module: EXTAST.
% Compiled module: REMCHAR.
% Compiled module: ZPARCHECK.
% Compiled module: REPSTR.
% Compiled module: GET_EQUINOX.
% Compiled module: DATE_CONV.
% DATE_CONV: Invalid input date specified
% Compiled module: TAG_EXIST.
% Compiled module: XY2AD.
% DATE_CONV: Invalid input date specified
% DATE_CONV: Invalid input date specified
(1283) MOMENTSV2: We have converted the units to Jy/Beam x Km/s
% DATE_CONV: Invalid input date specified
(1319) MOMENTSV2: We are converting to KM/S
% DATE_CONV: Invalid input date specified
(1355) MOMENTSV2: We are converting to KM/S
% Compiled module: ROT.
% Compiled module: MPFITFUN.
% Compiled module: MPFIT.
% Compiled module: MEAN.
% DATE_CONV: Invalid input date specified
% DATE_CONV: Invalid input date specified
% Compiled module: ADXY.
% DATE_CONV: Invalid input date specified
% Compiled module: AD2XY.
(2096) EXTRACT_PV: We are converting to KM/S
(2920) Starting tirific SBR estimate in  ./ which is galaxy # 0 at Sat Jul 22 04:39:49 2023
% Compiled module: LA_INVERT.
(3204) Starting tirific first estimate in  ./  which is galaxy #  0 at Sat Jul 22 04:41:44 2023
(3251) The first estimate is accepted.
(3204) Starting tirific first estimate in  ./  which is galaxy #  0 at Sat Jul 22 04:44:53 2023
(3251) The first estimate is accepted.
(3204) Starting tirific first estimate in  ./  which is galaxy #  0 at Sat Jul 22 04:58:47 2023
(3251) The first estimate is accepted.
(3204) Starting tirific first estimate in  ./  which is galaxy #  0 at Sat Jul 22 05:13:46 2023
(3251) The first estimate is accepted.
(3204) Starting tirific first estimate in  ./  which is galaxy #  0 at Sat Jul 22 05:27:22 2023
(3251) The first estimate is accepted.
(3204) Starting tirific first estimate in  ./  which is galaxy #  0 at Sat Jul 22 05:43:11 2023
(3251) The first estimate is accepted.
% DATE_CONV: Invalid input date specified
(4002) EXTRACT_PV: We are converting to KM/S
% EXTAST: Unrecognized distortion acronym: / P
(4005) EXTRACT_PV: We are converting to KM/S
(4033) MOMENTSV2: We have converted the units to Jy/Beam x Km/s
% EXTAST: Unrecognized distortion acronym: / P
(4036) MOMENTSV2: We are converting to KM/S
% EXTAST: Unrecognized distortion acronym: / P
(4039) MOMENTSV2: We are converting to KM/S
% EXTAST: Unrecognized distortion acronym: / P
ls: cannot access '*_opt*': No such file or directory
ls: cannot access 'Optimized': No such file or directory
ls: cannot access 'No_Warp': No such file or directory
mv: cannot stat 'Overview.png': No such file or directory
% Compiled module: LOADCT.
% DATE_CONV: Invalid input date specified

*** PLPLOT ERROR, ABORTING OPERATION ***
UTF-8 string is malformed: 21!9�!X25', aborting operation
% Compiled module: TO_HEX.

*** PLPLOT ERROR, ABORTING OPERATION ***
UTF-8 string is malformed: 21!9�!X25', aborting operation
% DATE_CONV: Invalid input date specified
% Compiled module: INTERPOL.
% Compiled module: FINDEX.

*** PLPLOT ERROR, ABORTING OPERATION ***
UTF-8 string is malformed: 21!9�!X25', aborting operation

*** PLPLOT ERROR, ABORTING OPERATION ***
UTF-8 string is malformed: 21!9�!X25', aborting operation
% DATE_CONV: Invalid input date specified
% DATE_CONV: Invalid input date specified
GPL Ghostscript 9.26 (2018-11-20)
Copyright (C) 2018 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusSans-Regular font from /usr/share/ghostscript/9.26/Resource/Font/NimbusSans-Regular... 4425900 2899258 2037672 733360 4 done.
mv: cannot stat 'No_Warp/*.def': No such file or directory
mv: cannot stat 'Optimized/*.def': No such file or directory

!!!!--------------------------------------------!!!!!
!!!! As far as we can tell FAT is installed     !!!!!
!!!! properly and runs smoothly.                !!!!!
!!!!--------------------------------------------!!!!!

Subscript out of range [s:e]

Error message:

Subscript out of range [s:e]
Execution halted at: FAT 1991 /home/colin/Documents/Work/PhD/Codes/FAT/FAT/FAT.pro

In the galaxy(files.tar.gz) I'm trying to fit, norings[0] = 9 (and therefore rings[0:8] is the array I think?), but the following line tries to place a vector with length 10 into a vector with length 9

rings[0:9]=(findgen(10))*catmajbeam[i]+catmajbeam[i]/5.

when I work around there is an error on line 1992:

rings[10:norings[0]-1]=(findgen(fix(tmpring)))*catmajbeam[i]*2+catmajbeam[i]/5.+11.*catmajbeam[i]

where tmpring=norings[0]-10. If tmpring = -1, then findgen(fix(tmpring)) returns an error

Rebin not working in GDL 0.9.7

Rebin is not working in GDL 0.9.7. This messes up the creation of the intensity weighted velocity fields. It is fixed in the FAT-GDL-Beta Branch but not yet in the master.

Renaming of files produces error

Whenever the rename command is called by FAT.pro, e.g.

line 2852:  spawn,'rename 1stfit. 1stfitold. 1stfit.*',isthere

I get error messages similar to the following one:

Bareword found where operator expected at (eval 1) line 1, near "1stfit"
    (Missing operator before stfit?)

The files are not renamed. If I replace the above mentioned line in FAT.pro by e.g.

spawn,"rename 's/1stfit./1stfitold./' 1stfit.*",isthere

the files are properly renamed. I am running FAT on a Linux system.

FAT not compatible with current SoFiA version

  1. The current version of SoFiA only returns certain source parameters when doParameterise=true in the SoFiA input parameter file. The flux related parameters ('f_int', 'f_peak', 'f_wm50' - names might have changed compared to previous versions) belong to this particular group. This is important because FAT needs these parameters (e.g. in line 1076) and terminates if they are not present and the array holding the source parameters is too short for the provided index (17 in the following error message):
% Attempt to subscript VALS with <LONG     (          17)> is out of range.
  1. The indices of source parameters that are used are hard coded in FAT. Even if doParameterise is set to 'true', the wrong source parameter values will be used in some cases, e.g.
line 1076: Totflux=[double(vals[17])]

The parameter index of the total flux in the catalogue that is returned by SoFiA is 18, the index of 17 corresponds to the position angle that has been determined by ellipse fitting. Thus, the wrong value is used. It might be better to get the parameter index from the name in the catalogue file ('f_int' in this case).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.