{"id":19706216,"url":"https://github.com/llnl/ferdinand","last_synced_at":"2025-08-13T01:35:39.212Z","repository":{"id":66082913,"uuid":"457167514","full_name":"LLNL/ferdinand","owner":"LLNL","description":"Translate R-matrix Evaluations","archived":false,"fork":false,"pushed_at":"2024-06-12T15:18:52.000Z","size":472,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-10T12:27:26.635Z","etag":null,"topics":["math-physics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LLNL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-09T01:38:09.000Z","updated_at":"2024-06-12T15:18:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"12d75d9d-65b2-419b-9c86-556c555296c3","html_url":"https://github.com/LLNL/ferdinand","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LLNL%2Fferdinand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LLNL%2Fferdinand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LLNL%2Fferdinand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LLNL%2Fferdinand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LLNL","download_url":"https://codeload.github.com/LLNL/ferdinand/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241020746,"owners_count":19895491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["math-physics"],"created_at":"2024-11-11T21:34:40.287Z","updated_at":"2025-08-13T01:35:39.177Z","avatar_url":"https://github.com/LLNL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ferdinand: Translate R-matrix Evaluations \n\t Version 0.50\n\t Release: LLNL-CODE-831538\n###  Ian Thompson\n\n\t   Email: thompson97@llnl.gov\n\n## Needed libraries\n\nUsers to download.\nfudge version \u003e 6 from [github.com/LLNL/fudge](https://github.com/LLNL/fudge),\n  for example the tag at [github.com/LLNL/fudge/releases/tag/6.1.0](https://github.com/LLNL/fudge/releases/tag/6.1.0). Include fudge in PYTHONPATH.\n\nAlready included:  \nf90nml modified from  [github.com/marshallward/f90nml](https://github.com/marshallward/f90nml) \n  \nFor reconstructLegendre.py, reconstructCrossSections.py and reconstructCrossSectionsBatching.py, \nusers to download:  \ntensorflow from [www.tensorflow.org/install](https://www.tensorflow.org/install).  \nFor macs see [developer.apple.com/metal/tensorflow-plugin/](https://developer.apple.com/metal/tensorflow-plugin/) \n\nFor Ryaml files:\n\tpython -m pip install pyyaml \n\n# Ferdinand\n```\nusage: ferdinand.py [-h] [-c COVFILE] [--noCov] [-i in-form] [-o outFile] [-v] [-d]\n                    [-w] [-W] [-L LVALS [LVALS ...]] [-e ELASTIC] [-l Emin] [-u Emax]\n                    [-D Edist] [-B Ebound] [-b B] [-a] [-G] [-E new_label] [-Q] [-g]\n                    [-R REICHMOORE] [-x] [-r] [-f FILTER] [--nocm] [-A Eadjust]\n                    [-F Efile] [-z] [-n NONZERO] [-V Eunit] [-6] [--lineNumbers]\n                    [-p dE] [-P Ang Ang] [-t dE] [--Legendre LEGENDRE] [-M] [-C] [-S]\n                    [--CN CN CN]\n                    inFile finalformat\n```\nTranslate R-matrix Evaluations. v0.50\n\n### positional arguments:\n```\n  inFile                The input file you want to translate. Formats: fresco, sfresco,\n                        eda, amur, rac, endf, azure, gnd=gnds=xml, ..\n  finalformat           Output source format: fresco, sfresco, eda, hyrma, endf, azure,\n                        gnd=gnds=xml, tex.\n```\n\n### optional arguments:\n```\n  -h, --help            show this help message and exit\n  -c COVFILE, --covFile COVFILE\n                        Input file with covariance matrix\n  --noCov               Ignore input covariance matrices\n  -i in-form, --initial in-form\n                        Input source format: endf, gnd=gnds=xml=gnds.xml, fresco, eda,\n                        amur, apar, rac, sfresco, sfrescoed, hyrma, azure, ... This is\n                        expected suffix of input file\n  -o outFile            Specify the output file. Otherwise use ``inFile`` with expected\n                        suffix removed if present.\n  -v, --verbose         Verbose output\n  -d, --debug           Debugging output (more than verbose)\n  -w, --rwa             Reading first makes GNDS with reducedWidthAmplitudes\n  -W, --RWA             When reading azure files, amplitudes are already as reduced\n                        width amplitudes, and B=-L.\n  -L LVALS [LVALS ...], --Lvals LVALS [LVALS ...]\n                        When reading fresco files, or writing EDA files, set partial\n                        waves up to this list value in each pair.\n  -e ELASTIC, --elastic ELASTIC\n                        ResonanceReaction label of elastic particle-pair in input file\n  -l Emin, --lower Emin\n                        Lower energy of R-matrix evaluation\n  -u Emax, --upper Emax\n                        Upper energy of R-matrix evaluation\n  -D Edist, --Distant Edist\n                        Pole energy above which are all distant poles, to help with\n                        labeling. Fixed in sfresco searches.\n  -B Ebound, --Bound Ebound\n                        Pole energy below which are all bound poles, to help with\n                        labeling. Fixed in sfresco searches.\n  -b B, --boundary B    Boundary condition in output: 'Brune'; '-L' or 'L' for B=-L; or\n                        'X' for B=float(X).\n  -a, --amplitudes      Convert intermediate gnd file stores to reduced width\n                        amplitudes, not widths. If not -a or -G, leave unchanged.\n  -G, --Gammas          Convert intermediate gnd file stores to formal widths, not\n                        reduced width amplitudes. Overrides -a.\n  -E new_label, --Elastic new_label\n                        ResonanceReaction label of new elastic particle-pair after\n                        transforming input.\n  -Q, --Q               Allow elastic Q values to be non-zero.\n  -g, --nogamma         Omit gamma channels\n  -R REICHMOORE, --ReichMoore REICHMOORE\n                        Add a Reich-Moore gamma channel with this value\n  -x, --xReichMoore     Remove a Reich-Moore gamma channel\n  -r, --noreac          Omit all nonelastic (reaction) channels\n  -f FILTER, --filter FILTER\n                        Filter of csv list of particle-pair-labels to include.\n                        Overrides -g,-r options\n  --nocm                No incoming transformations of cm-lab pole energies: for old\n                        mistaken files\n  -A Eadjust, --Adjust Eadjust\n                        Adjust pole energies: give arithmetic function of E, such as\n                        'E+5000 if E\u003e2e6 else E'. Applied after any Barker but before\n                        any Brune transformations\n  -F Efile, --File Efile\n                        Data file for reading R-matrix data\n  -z, --zero            Omit zero widths\n  -n NONZERO, --nonzero NONZERO\n                        Replace zero widths by this value.\n  -V Eunit, --Volts Eunit\n                        Energy units for conversion after making gnds, before output\n                        conversions. Not checked.\n  -6, --p6              Limit energies and widths to ENDF6 precision.\n  --lineNumbers         Add line numbers to ENDF6 format files\n  -p dE, --pointwise dE\n                        Reconstruct angle-integrated cross sections using Frescox for\n                        given E step\n  -P Ang Ang, --Pointwise Ang Ang\n                        Reconstruct with -p the angle-dependent cross sections with\n                        Frescox, given thmin, thinc (in deg).\n  -t dE, --tf dE        Reconstruct angle-integrated cross sections using TensorFlow\n                        for given E step. If E=0, use adaptive grid based on resonance\n                        widths.\n  --Legendre LEGENDRE   With --tf: output Legendre expansion for reconstructed cross\n                        sections\n  -M, --Ecm             Print poles in latex table in CM energy scale of elastic\n                        channel.\n  -C, --Comp            Print poles in latex table in CM energy scale of compound\n                        nucleus.\n  -S, --Squeeze         Squeeze table of printed poles in latex\n  --CN CN CN            Spin and parity of compound nucleus, if needed\n```\n\n## Standalone codes\n\n\teda_parfile.py\n\tamur_file.py\n\tgndtransform.py\n\trac_file.py\n\treconstructCrossSections.py\n\treconstructCrossSectionsBatching.py\n\treconstructLegendre.py\n\nThe reconstruct*py codes give pointwise reconstruction of R-matrix excitation functions on a uniform energy grid, or alternatively a grid started using resonance positions. \n\nreconstructLegendre.py gives angular distributions on a discrete angular grid, or using Legendre expansions.\n\nThese methods use tensorflow if GPUs available, otherwise on CPUs using openmp.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllnl%2Fferdinand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllnl%2Fferdinand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllnl%2Fferdinand/lists"}