SlideShare a Scribd company logo
The Trials and Tribulations of
Software Development in Astronomy:
Where are we now and where can we go
from here?
Kelle Cruz
CUNY Hunter College
Astro at the
City University of New York (CUNY)
• Hunter College is a 4-year college
in the CUNY system
• PhD program based at the
CUNY Graduate Center
• CUNY Astronomers joined
together to form CUNY Astro,
based at the American
Museum of Natural History (AMNH)
• ~15 Astro Faculty at various CUNY
campuses
• Galactic, Extragalactic, Cosmology,
Theory, Computational, Observers.
• American Museum of Natural
History is our central location
cunyastro.org
Comparative Brown Dwarf-Exoplanet Studies
.org
More Astro in New York City
New Masters in Astro Program
• Collaboration between
www.gc.cuny.edu/astrophysics
• Two year program combining coursework and a
Masters’ research thesis.
• Prepare students for success in a future PhD program
via research experiences, coursework, and community.
• Provide students with immediately marketable
advanced degree for STEM employment.
• Joint program between CUNY Astro and Center for
Computational Astronomy.
• Full funding thanks to the Simons Foundation.
Masters in
Astrophysics
Science was…
Science is Software
Science was…
Photo credit: Harvard-Smithsonian Center for Astrophysics
Science is Software
Photo credit: Jeyhan Kartaltepe
Software permeates our field
• “Little” scripts
• Small packages
• Big packages
• “Enterprise”
• Simulations
• Models
• And much more…
Kelle Cruz, March 2023
Credit: NOIRLab
And yet…
We are not taught how to
use computers to do
astronomy.
Kelle Cruz, March 2023
Astro2020 Decadal Survey:
Better than Astro 2010!
Finding:
Software development has become an essential part of
every sub-field of astronomy.
However, software developers and large software
development efforts are not adequately funded or supported
by existing structures.
But no “Recommendations”.
And nothing about software education.Kelle Cruz, March 2023
I care about maximizing efficiency of science
The goal of this blog, AstroBetter, is to provide
information and tips about streamlining all the ways
we use our Macs everyday.
Traditional Methods:
Information
sharing
increases
productivity
Information
sharing
increases
productivity
Modern Methods:
Information
sharing
increases
equity
Modern Methods:
We are not taught how to
use computers to do
science.
Kelle Cruz, March 2023
The Looming Diversity Disaster
Software development and computational
training remains a privilege
AND
Software dev skills are now necessary to
succeed in astro
THUS
the current landscape exacerbates the
already un-level playing field.
Kelle Cruz, March 2023
Inclusive practices, education, &
broadening participation in
software development
needs to be a huge priority for
all programs.
Kelle Cruz, March 2023
The Looming Diversity Disaster
Science should be
reproducible/replicable
same data + same methods =
same results
Modified from https://xkcd.com/242/
https://arxiv.org/abs/1802.03311 - Barba 2018.
Describing code is hard
“To calculate distances and areas on the solar-disc, firstly helioprojective
coordinates are converted to heliographic coordinates using the world coordinate
system available in the standard solar data analysis software…”
doi: 10.1007/s11207-015-0808-7
Courtesy Danny Ryan
Kelle Cruz, March 2023
We need to
share our
scripts
• Normalize making code visible even if it’s embarrassing.
• Looking at code should be a normal and expected part of the
peer review process.
Kelle Cruz, March 2023
Copyright: © bakhtiarzein - stock.adobe.com
We need to
test our
code
Integration tests are just as important as uncertainty
propagation.
Kelle Cruz, March 2023
Education must change
https://xkcd.com/519/
Software Syllabus
• The shell
• Basic programming
• Environment management
• Software engineering: Github,
testing, documentation
• Advanced programming:
parallelization, optimization
• (Anything is better than nothing.)
Kelle Cruz, March 2023
Current Learning Methods
• Self-taught: StackExchange, etc
• Research: Advisors, group-
mates.
• Workshops: Software carpentry,
Astropy, etc
• Online tutorials
• Topical Workshops: Gaia, LSST,
etc.
• LSSTC Data Science
Fellowship
• Hackdays & hackweeks
• Programming hours and study
groups
• Some Coursework
Kelle Cruz, March 2023
What we need
• Recognition of the problem.
• Willingness to do the work of changing curriculum.
• Instructor training and resources.
• Intro textbooks with readings and assignments.
• More tutorials and better tutorial discoverability & indexing.
• Degree program flexibility to take courses in other
departments and/or via other institutions.
Kelle Cruz, March 2023
Photo credit: Cablelabs.com
LICENSE
Open Source Definition
Software whose source code is made
available under an open source license.
An open source license grants anyone the rights to
inspect, modify and distribute the code
(with some possible caveats).
https://opensource.org/osd Kelle Cruz, March 2023
Open Source Misconceptions
Putting code on my webpage makes it open.
No license = copyright, all rights reserved.
Nobody else can use, copy, distribute, or modify your work
without being at risk of take-downs or litigation.
True
False
True
False
https://choosealicense.com/no-permission/ Kelle Cruz, March 2023
Open Source Misconceptions
If I make my code open, I must support and maintain it.
Making code open means other people can
use and modify it,
even if you abandon it.
True
False
True
False
Kelle Cruz, March 2023
Open Source Misconceptions
Anyone can participate in the development of open code
Code can be distributed with an open
source license but
developed behind closed doors
True
False
True
False
Kelle Cruz, March 2023
NASA Open-Source Science Initiative
SMD’s new policy on Scientific Information
As open as possible, as restricted as necessary, always secure
● Publications are made openly available with no embargo period.
● Research data and software are shared at the time of publication.
● Mission data are released as soon as possible and is freely available.
● Unrestricted mission software is developed openly.
● Recognizes software as a scientific product.
● Data should be released with Creative Commons Zero and software with
permissive, commonly used licenses
● Encourages using and contributing to Open Source Software.
Scientific Information Policy Website & FAQ
NASA Open-Source Science Initiative
SMD-41a
Slide credit NASA and Steve Crawford
NASA Open-Source Science Initiative
Sustaining Open Source Software
NASA selected 16
proposals in 2021
supporting 22 different open
source projects to provide
sustainable support.
NASA Open-Source Science Initiative
NASA is putting money where its mouth is
Slide credit NASA and Steve Crawford
NASA is putting money where its mouth is
5
NASA OSSI Funding
F.15 High Priority
Open-Source Science
Supporting innovative open
source tools, software,
frameworks, data formats, and
libraries.
F.16 Supplement for
Software Platforms
Supplemental support to existing
awards for usage of scientific
platforms. Budget TBD.
F.14 Transform to Open
Science Training
Tutorials showcasing open
science in action and NASA
cloud data, summer schools,
virtual cohorts.
F.2 Topical Workshops,
Symposia, and Conferences
Events, Hackathons,
un-conferences, and challenges
that build open science skills,
Training in open science. Rolling
deadline.
F.7 Support for Open Source
Tools, Frameworks, and
Libraries
Support and maintain open
source tools, frameworks, and
libraries that are significantly
used by the SMD community.
F.8 Supplemental Open
Source Software Awards
Supplemental award to
encourage the modernization of
legacy software and release as
open source.
NASA OPEN-SOURCE SCIENCE INITIATIVE
Slide credit NASA and Steve Crawford
NASA Open-Source Science Initiative
NASA Transform to Open Science (TOPS)
A $40 million, 5-year mission to accelerate adoption of open science
Strategic Goals:
● Support 20K researchers to earn NASA's open science badge
● Double the participation of historically excluded groups across
NASA science
● Enable five major scientific discoveries through open science
principles
Engagement Incentives Coordination
Capacity Sharing
Join us as we embark on the 2023 Year of Open Science with NASA TOPS!
6
NASA is putting money where its mouth is
Slide credit NASA and Steve Crawford
Increase the value of software:
Be part of the solution
• Prioritize your own learning.
It’s a rapidly changing landscape. It’s ok to not be an expert, no one is.
• Share all types of code, including scripts.
Ask code to be made available during peer review.
• Encourage open science & software engineering practices,
especially in your research groups.
• Bring open science & software engineering skills into the
classroom & academic programs.
Kelle Cruz, March 2023

More Related Content

PDF
UMich CI Days: Scaling a code in the human dimension
PPTX
Software Sustainability: Better Software Better Science
PDF
Collaborations in the Extreme: 
The rise of open code development in the scie...
PPT
An Open Source Strategy for NASA
PPTX
Better Software, Better Research
PDF
High Priority Open-Source Science (HPOSS)
PPT
2011 NASA Open Source Summit - Chris Mattmann
PPTX
Open Source and Science at the National Science Foundation (NSF)
UMich CI Days: Scaling a code in the human dimension
Software Sustainability: Better Software Better Science
Collaborations in the Extreme: 
The rise of open code development in the scie...
An Open Source Strategy for NASA
Better Software, Better Research
High Priority Open-Source Science (HPOSS)
2011 NASA Open Source Summit - Chris Mattmann
Open Source and Science at the National Science Foundation (NSF)

Similar to The Trials and Tribulations of Software Development in Astronomy: Where are we now and where can we go from here? (20)

PDF
yt: Growing and Engaging a Community of Practice
PDF
Research software susainability
PDF
Software Carpentry for the Geophysical Sciences
ODP
Scale2014
PPT
Understanding the Meaningful Use of Open Source Software
PPTX
Scientific Software Challenges and Community Responses
PPTX
Working towards Sustainable Software for Science (an NSF and community view)
PDF
Software Surrounds You
PPTX
Code for science (rev 1)
PPTX
Code for science (rev 2)
PDF
Sustainability in Scientific Software: Ecosystem complexity and Software Vis...
PPTX
Funding Software in Academia
PPTX
Requiring Publicly-Funded Software, Algorithms, and Workflows to be Made Publ...
PPT
SciForge Workshop@Potsdam Institute for Climate Impact Reserach; Nov 2014
PDF
#OSSPARIS17 - Logiciel libre pour une science reproductible, par ROBERTO DI C...
PDF
2011 NASA Open Source Summit - Terry Fong
PPT
ImageJ and the SciJava software stack
PPTX
Intro to Python (High School) Unit #1
PDF
What Academia Can Learn from Open Source
PDF
ROSES-CADET
yt: Growing and Engaging a Community of Practice
Research software susainability
Software Carpentry for the Geophysical Sciences
Scale2014
Understanding the Meaningful Use of Open Source Software
Scientific Software Challenges and Community Responses
Working towards Sustainable Software for Science (an NSF and community view)
Software Surrounds You
Code for science (rev 1)
Code for science (rev 2)
Sustainability in Scientific Software: Ecosystem complexity and Software Vis...
Funding Software in Academia
Requiring Publicly-Funded Software, Algorithms, and Workflows to be Made Publ...
SciForge Workshop@Potsdam Institute for Climate Impact Reserach; Nov 2014
#OSSPARIS17 - Logiciel libre pour une science reproductible, par ROBERTO DI C...
2011 NASA Open Source Summit - Terry Fong
ImageJ and the SciJava software stack
Intro to Python (High School) Unit #1
What Academia Can Learn from Open Source
ROSES-CADET
Ad

More from Kelle Cruz (6)

PDF
Astropy Project Update for ADASS
PDF
Lessons from the Astropy Code of Conduct
PDF
Some perspectives from the Astropy Project
PDF
Career Path Strategy and Work-Life Balance
PDF
My methodical approach to finding professional success and personal happiness
PDF
Incorporating Inclusive Practices
Astropy Project Update for ADASS
Lessons from the Astropy Code of Conduct
Some perspectives from the Astropy Project
Career Path Strategy and Work-Life Balance
My methodical approach to finding professional success and personal happiness
Incorporating Inclusive Practices
Ad

Recently uploaded (20)

PPTX
neck nodes and dissection types and lymph nodes levels
PPTX
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
PPTX
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
PDF
MIRIDeepImagingSurvey(MIDIS)oftheHubbleUltraDeepField
PPTX
SCIENCE10 Q1 5 WK8 Evidence Supporting Plate Movement.pptx
PDF
Sciences of Europe No 170 (2025)
PPTX
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
PDF
An interstellar mission to test astrophysical black holes
PDF
Phytochemical Investigation of Miliusa longipes.pdf
PPTX
Classification Systems_TAXONOMY_SCIENCE8.pptx
PPT
protein biochemistry.ppt for university classes
PDF
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
PDF
Biophysics 2.pdffffffffffffffffffffffffff
PDF
HPLC-PPT.docx high performance liquid chromatography
PPTX
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...
PPTX
2. Earth - The Living Planet earth and life
PPTX
2. Earth - The Living Planet Module 2ELS
PDF
. Radiology Case Scenariosssssssssssssss
PPTX
Comparative Structure of Integument in Vertebrates.pptx
neck nodes and dissection types and lymph nodes levels
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
MIRIDeepImagingSurvey(MIDIS)oftheHubbleUltraDeepField
SCIENCE10 Q1 5 WK8 Evidence Supporting Plate Movement.pptx
Sciences of Europe No 170 (2025)
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
An interstellar mission to test astrophysical black holes
Phytochemical Investigation of Miliusa longipes.pdf
Classification Systems_TAXONOMY_SCIENCE8.pptx
protein biochemistry.ppt for university classes
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
Biophysics 2.pdffffffffffffffffffffffffff
HPLC-PPT.docx high performance liquid chromatography
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...
2. Earth - The Living Planet earth and life
2. Earth - The Living Planet Module 2ELS
. Radiology Case Scenariosssssssssssssss
Comparative Structure of Integument in Vertebrates.pptx

The Trials and Tribulations of Software Development in Astronomy: Where are we now and where can we go from here?

  • 1. The Trials and Tribulations of Software Development in Astronomy: Where are we now and where can we go from here? Kelle Cruz CUNY Hunter College
  • 2. Astro at the City University of New York (CUNY) • Hunter College is a 4-year college in the CUNY system • PhD program based at the CUNY Graduate Center • CUNY Astronomers joined together to form CUNY Astro, based at the American Museum of Natural History (AMNH)
  • 3. • ~15 Astro Faculty at various CUNY campuses • Galactic, Extragalactic, Cosmology, Theory, Computational, Observers. • American Museum of Natural History is our central location cunyastro.org
  • 5. More Astro in New York City
  • 6. New Masters in Astro Program • Collaboration between www.gc.cuny.edu/astrophysics • Two year program combining coursework and a Masters’ research thesis. • Prepare students for success in a future PhD program via research experiences, coursework, and community. • Provide students with immediately marketable advanced degree for STEM employment. • Joint program between CUNY Astro and Center for Computational Astronomy. • Full funding thanks to the Simons Foundation. Masters in Astrophysics
  • 9. Science was… Photo credit: Harvard-Smithsonian Center for Astrophysics
  • 10. Science is Software Photo credit: Jeyhan Kartaltepe
  • 11. Software permeates our field • “Little” scripts • Small packages • Big packages • “Enterprise” • Simulations • Models • And much more… Kelle Cruz, March 2023 Credit: NOIRLab
  • 12. And yet… We are not taught how to use computers to do astronomy. Kelle Cruz, March 2023
  • 13. Astro2020 Decadal Survey: Better than Astro 2010! Finding: Software development has become an essential part of every sub-field of astronomy. However, software developers and large software development efforts are not adequately funded or supported by existing structures. But no “Recommendations”. And nothing about software education.Kelle Cruz, March 2023
  • 14. I care about maximizing efficiency of science The goal of this blog, AstroBetter, is to provide information and tips about streamlining all the ways we use our Macs everyday.
  • 18. We are not taught how to use computers to do science. Kelle Cruz, March 2023
  • 19. The Looming Diversity Disaster Software development and computational training remains a privilege AND Software dev skills are now necessary to succeed in astro THUS the current landscape exacerbates the already un-level playing field. Kelle Cruz, March 2023
  • 20. Inclusive practices, education, & broadening participation in software development needs to be a huge priority for all programs. Kelle Cruz, March 2023 The Looming Diversity Disaster
  • 21. Science should be reproducible/replicable same data + same methods = same results Modified from https://xkcd.com/242/ https://arxiv.org/abs/1802.03311 - Barba 2018.
  • 22. Describing code is hard “To calculate distances and areas on the solar-disc, firstly helioprojective coordinates are converted to heliographic coordinates using the world coordinate system available in the standard solar data analysis software…” doi: 10.1007/s11207-015-0808-7 Courtesy Danny Ryan Kelle Cruz, March 2023
  • 23. We need to share our scripts • Normalize making code visible even if it’s embarrassing. • Looking at code should be a normal and expected part of the peer review process. Kelle Cruz, March 2023 Copyright: © bakhtiarzein - stock.adobe.com
  • 24. We need to test our code Integration tests are just as important as uncertainty propagation. Kelle Cruz, March 2023
  • 26. Software Syllabus • The shell • Basic programming • Environment management • Software engineering: Github, testing, documentation • Advanced programming: parallelization, optimization • (Anything is better than nothing.) Kelle Cruz, March 2023
  • 27. Current Learning Methods • Self-taught: StackExchange, etc • Research: Advisors, group- mates. • Workshops: Software carpentry, Astropy, etc • Online tutorials • Topical Workshops: Gaia, LSST, etc. • LSSTC Data Science Fellowship • Hackdays & hackweeks • Programming hours and study groups • Some Coursework Kelle Cruz, March 2023
  • 28. What we need • Recognition of the problem. • Willingness to do the work of changing curriculum. • Instructor training and resources. • Intro textbooks with readings and assignments. • More tutorials and better tutorial discoverability & indexing. • Degree program flexibility to take courses in other departments and/or via other institutions. Kelle Cruz, March 2023
  • 30. Open Source Definition Software whose source code is made available under an open source license. An open source license grants anyone the rights to inspect, modify and distribute the code (with some possible caveats). https://opensource.org/osd Kelle Cruz, March 2023
  • 31. Open Source Misconceptions Putting code on my webpage makes it open. No license = copyright, all rights reserved. Nobody else can use, copy, distribute, or modify your work without being at risk of take-downs or litigation. True False True False https://choosealicense.com/no-permission/ Kelle Cruz, March 2023
  • 32. Open Source Misconceptions If I make my code open, I must support and maintain it. Making code open means other people can use and modify it, even if you abandon it. True False True False Kelle Cruz, March 2023
  • 33. Open Source Misconceptions Anyone can participate in the development of open code Code can be distributed with an open source license but developed behind closed doors True False True False Kelle Cruz, March 2023
  • 34. NASA Open-Source Science Initiative SMD’s new policy on Scientific Information As open as possible, as restricted as necessary, always secure ● Publications are made openly available with no embargo period. ● Research data and software are shared at the time of publication. ● Mission data are released as soon as possible and is freely available. ● Unrestricted mission software is developed openly. ● Recognizes software as a scientific product. ● Data should be released with Creative Commons Zero and software with permissive, commonly used licenses ● Encourages using and contributing to Open Source Software. Scientific Information Policy Website & FAQ NASA Open-Source Science Initiative SMD-41a Slide credit NASA and Steve Crawford
  • 35. NASA Open-Source Science Initiative Sustaining Open Source Software NASA selected 16 proposals in 2021 supporting 22 different open source projects to provide sustainable support. NASA Open-Source Science Initiative NASA is putting money where its mouth is Slide credit NASA and Steve Crawford
  • 36. NASA is putting money where its mouth is 5 NASA OSSI Funding F.15 High Priority Open-Source Science Supporting innovative open source tools, software, frameworks, data formats, and libraries. F.16 Supplement for Software Platforms Supplemental support to existing awards for usage of scientific platforms. Budget TBD. F.14 Transform to Open Science Training Tutorials showcasing open science in action and NASA cloud data, summer schools, virtual cohorts. F.2 Topical Workshops, Symposia, and Conferences Events, Hackathons, un-conferences, and challenges that build open science skills, Training in open science. Rolling deadline. F.7 Support for Open Source Tools, Frameworks, and Libraries Support and maintain open source tools, frameworks, and libraries that are significantly used by the SMD community. F.8 Supplemental Open Source Software Awards Supplemental award to encourage the modernization of legacy software and release as open source. NASA OPEN-SOURCE SCIENCE INITIATIVE Slide credit NASA and Steve Crawford
  • 37. NASA Open-Source Science Initiative NASA Transform to Open Science (TOPS) A $40 million, 5-year mission to accelerate adoption of open science Strategic Goals: ● Support 20K researchers to earn NASA's open science badge ● Double the participation of historically excluded groups across NASA science ● Enable five major scientific discoveries through open science principles Engagement Incentives Coordination Capacity Sharing Join us as we embark on the 2023 Year of Open Science with NASA TOPS! 6 NASA is putting money where its mouth is Slide credit NASA and Steve Crawford
  • 38. Increase the value of software: Be part of the solution • Prioritize your own learning. It’s a rapidly changing landscape. It’s ok to not be an expert, no one is. • Share all types of code, including scripts. Ask code to be made available during peer review. • Encourage open science & software engineering practices, especially in your research groups. • Bring open science & software engineering skills into the classroom & academic programs. Kelle Cruz, March 2023