My GSoC Experience : PEcAn Project
About PEcAN :
The Predictive Ecosystem Analyzer (PEcAn) is a scientific workflow system to manage the immense amounts of publicly available environmental data and a Bayesian data assimilation system to synthesize this information within state-of-the-art ecosystems models.
Project Summary
Organization: PecAn Project
Mentors: Christopher Black (#infotroph), Shashank Singh(#moki1202)
Contributor: Abhinav Pandey (#Sweetdevil144)
Project Duration : 350 hours
Project Title : Optimize PEcAn for freestanding use of single
packages
Thanks a lot, Chris, for carefully listening to my approaches and refining them in much better ways !!
A special thanks to other mentors too :David LeBauer, Shashank Singh and Michael Dietze
About the Project :
The objective of this project was to enhance the PEcAn Project by optimizing its modules for standalone use. Despite PEcAn's robust framework and interconnected modules, there was a growing need to make these modules independently operable. This shift was essential to simplify module usage, testing, and development, making the system more accessible and efficient for users and contributors. The focus was on optimizing the modules for standalone use, enhancing their individual operability within PEcAn's interconnected framework. Our top priority was to "re-loosen these couplings" by revisiting the design and interface of PEcAn packages.
Overview
This summer, I had the privilege of participating in Google Summer of Code, 2024 with the PEcAn Project. Among the many talented candidates selected for this year's program, I was among one of them selected to contribute to a real-world Open-Source Software that has a significant global impact. As the program draws to a close, I'd like to reflect on what I've learned over the past three months with PEcAn.
My journey with the PEcAn Project began well before the official GSoC period, with my first PR being merged as early as December 2023—five months ahead of the GSoC timeline. This early involvement gave me valuable experience navigating PEcAn's intricate architecture and complex codebase design. It also allowed me to familiarise myself with the organisation's work, particularly in the R programming language. From those early days, I was eager to dive deeper into the project and make meaningful contributions.
The most valuable lesson GSoC has taught me is this: We learn by doing, and we pave the path forward even when the way ahead seems uncertain. My experience during this GSoC journey has shown me that what I initially planned to accomplish was just a fraction of what I ultimately achieved.
With 15+ pull requests, 6+ issues resolved, and countless hours spent in meetings with my mentors, I found myself progressively aligned with the goals of the PEcAn Project.
My Contributions to PEcAn
(All of my work which I will be discussing is linked at the bottom of this page.)
The GSoC period was structured into three key phases:
Phase 1: Community Bonding Period : During this phase, I familiarised myself with the project and built strong connections with my mentors. This time allowed me to gain a solid understanding of the project's goals and intricacies. I began by making minor changes to the codebase while grasping the key aspects of PEcAn. My efforts focused on gathering data that would later become crucial in tackling the project challenges.
Phase 2: Decoupling PEcAn's Packages : My main task in this phase was to begin decoupling PEcAn's packages, with my starting point being the data.land package. This involved carefully examining the packages which required improvement in modularity and flexibility within the project. During this phase, I removed dependency of data.land from data.atmosphere package by figuring out minute instances of dependencies and redirecting them back to the DB calls instead which resulted in reduction in overall dependencies. In addition to this, I also did some minor changes to Add test suites for met2Cf.csv.R and to Remove db.site.lat.lon function and replace all usages with query.site . I also combined multiple DB calls which further helped in reducing database calls being made in our system and further reducing latency on the DB. I also created a custom python script to pinpoint Orphaned functions which weren't being utilised in the codebase anymore and performed cleanups of such instances.
Phase 3: Enhancing the convert_input Function : This phase proved to be the most challenging of all due to the complexity of the convert_input function in PEcAn. I devoted significant time to finding a good approach to tackle the various issues we had been facing. However, this phase was also the most productive, thanks to the much deeper understanding of the codebase I had gained by this point.
During this phase, I proposed a new function to optionally retrieve site.info by #3324, enhancing flexibility. Additionally, I helped refactor and remove the now-discontinued BrownDog package, ensuring a clean and modern codebase via #3348. I successfully removed all instances of BrownDog while actively discussing these changes with my mentors.
To further improve the modularity of the convert_input function, I decided to break it down into smaller helper functions in #3338. This restructuring simplifies navigation and understanding of the codebase, making it easier for future developers to work with.
Throughout the GSoC period, I had regular meetings(every Wednesday) with my mentors to discuss our weekly progress, future plans and strategy to move forward in the project. This regular assistance from my mentors really helped me focus my attention on the project.
I am deeply grateful to the entire PEcAn team for providing me with this incredible opportunity to grow, learn, and collaborate with others. What truly makes GSoC unique is the joy of the journey itself. I not only gained proficiency in a new programming language, but I also grew as a person, stepping out of my comfort zone through weekly meetings and interactions with my mentors. This experience has been transformative, both technically and personally.
Moving on, I plan to continue working with PEcAN on a long term and improve PEcAN's capabilities in any capacity I can !! That's a wrap for now!! ??
List of My PRs in PEcAn Project ?
IDs | Title | State | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3359 | Update DEV-INTRO.md |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
3312 | Combine multiple PEcAn.db calls in a single query | MERGED | |||||||||||||||||||||||||||||||||||||||||||||||||||
3308 | Remove db.site.lat.lon function and replace all usages with query.site | MERGED | |||||||||||||||||||||||||||||||||||||||||||||||||||
3301 | Add test suites for met2Cf.csv.R | MERGED | |||||||||||||||||||||||||||||||||||||||||||||||||||
3300 | Remove dependency on data.atmosphere from data.land | MERGED | |||||||||||||||||||||||||||||||||||||||||||||||||||
3291 | Add Script to Identify Orphaned Functions in Codebase | MERGED | |||||||||||||||||||||||||||||||||||||||||||||||||||
3290 | Remove unused inst/met2CF.R | MERGED | |||||||||||||||||||||||||||||||||||||||||||||||||||
3283 | Update API endpoint URLs | MERGED | |||||||||||||||||||||||||||||||||||||||||||||||||||
3281 | Fix file extension search in met2model.SIPNET function | MERGED | |||||||||||||||||||||||||||||||||||||||||||||||||||
3276 | Update Documentation for cos_solar_zenith_angle Function | MERGED | |||||||||||||||||||||||||||||||||||||||||||||||||||
3246 | Fix Typo Errors and Errors in Markdown documentations | MERGED | |||||||||||||||||||||||||||||||||||||||||||||||||||
3243 | Update book.yml | MERGED | |||||||||||||||||||||||||||||||||||||||||||||||||||
3348 | Remove Browndog | OPEN | |||||||||||||||||||||||||||||||||||||||||||||||||||
3338 | Refactor convert_input to Perform tasks via helper function | OPEN | |||||||||||||||||||||||||||||||||||||||||||||||||||
3324 | Add function to Optionally get site.info if not present | OPEN | |||||||||||||||||||||||||||||||||||||||||||||||||||
3319 | Refactor met.process and dbfiles | OPEN |
The above is the detailed content of My GSoC Experience : PEcAn Project. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Different JavaScript engines have different effects when parsing and executing JavaScript code, because the implementation principles and optimization strategies of each engine differ. 1. Lexical analysis: convert source code into lexical unit. 2. Grammar analysis: Generate an abstract syntax tree. 3. Optimization and compilation: Generate machine code through the JIT compiler. 4. Execute: Run the machine code. V8 engine optimizes through instant compilation and hidden class, SpiderMonkey uses a type inference system, resulting in different performance performance on the same code.

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

The shift from C/C to JavaScript requires adapting to dynamic typing, garbage collection and asynchronous programming. 1) C/C is a statically typed language that requires manual memory management, while JavaScript is dynamically typed and garbage collection is automatically processed. 2) C/C needs to be compiled into machine code, while JavaScript is an interpreted language. 3) JavaScript introduces concepts such as closures, prototype chains and Promise, which enhances flexibility and asynchronous programming capabilities.

The main uses of JavaScript in web development include client interaction, form verification and asynchronous communication. 1) Dynamic content update and user interaction through DOM operations; 2) Client verification is carried out before the user submits data to improve the user experience; 3) Refreshless communication with the server is achieved through AJAX technology.

JavaScript's application in the real world includes front-end and back-end development. 1) Display front-end applications by building a TODO list application, involving DOM operations and event processing. 2) Build RESTfulAPI through Node.js and Express to demonstrate back-end applications.

Understanding how JavaScript engine works internally is important to developers because it helps write more efficient code and understand performance bottlenecks and optimization strategies. 1) The engine's workflow includes three stages: parsing, compiling and execution; 2) During the execution process, the engine will perform dynamic optimization, such as inline cache and hidden classes; 3) Best practices include avoiding global variables, optimizing loops, using const and lets, and avoiding excessive use of closures.

Python and JavaScript have their own advantages and disadvantages in terms of community, libraries and resources. 1) The Python community is friendly and suitable for beginners, but the front-end development resources are not as rich as JavaScript. 2) Python is powerful in data science and machine learning libraries, while JavaScript is better in front-end development libraries and frameworks. 3) Both have rich learning resources, but Python is suitable for starting with official documents, while JavaScript is better with MDNWebDocs. The choice should be based on project needs and personal interests.

Both Python and JavaScript's choices in development environments are important. 1) Python's development environment includes PyCharm, JupyterNotebook and Anaconda, which are suitable for data science and rapid prototyping. 2) The development environment of JavaScript includes Node.js, VSCode and Webpack, which are suitable for front-end and back-end development. Choosing the right tools according to project needs can improve development efficiency and project success rate.
