GeoCAT-comp is the computational component of the GeoCAT project. It houses Python implementations of NCL’s non-WRF computational routines and additional geoscientific analysis functions that go beyond what NCL offers. It is a principle component of NCAR’s Pivot to Python Initiative.
GeoCAT-comp is a geoscience data analysis Python package created as part of NCAR’s Pivot to Python Initiative. NCL, the prior language of choice for geoscience work, has been put into maintenance mode in favor of Python. This is due to Python’s easy-to-learn, open-source nature and the benefits that provides. There are a plethora of scientific analysis packages designed for general use or for niche applications. Numerous tutorials exist for learning Python basics and for data analysis workflows. Python also enables scalability through parallel computation which was never possible with NCL, enabling geoscientists to tackle analysis workflows on large volumes of data.
GeoCAT-comp draws from well-established analysis packages like NumPy, Xarray, SciPy, and MetPy to recreate and expand upon NCL functions in pure Python. With so many tools being used under the hood, GeoCAT-comp users have access to geoscience specific computational tools without needing extensive working knowledge of Pangeo stack.
There are syntactical benefits to using the Pangeo stack, one of which is indexing by label. NCL requires the dimensions of input data to be in a particular order. This results in functions with rigid data format requirements and multiple versions of the same function for different dimension orders. By using Xarray, GeoCAT-comp avoids those data format requirements. The xarray data structures allow users to refer to dimensions by label rather than index, thereby removing the need for multiple versions of the same function. This makes it easier for the user to find what they need and adds flexibility so that the user need not spend as much time wrangling their data into the correct format.
GeoCAT-comp’s open-source nature allows for more community engagement than a traditional software development workflow does. As advances are made in the realm of geoscience, new tools will be needed to analyze new datasets. We are dedicated to addressing user needs and encourage users to submit feature requests and contributions to our GitHub as well as participate in discussions. See our Support page for info on how to submit bug reports, request new features, and get involved.
While our goal is to recreate NCL functions in pure Python, translating some NCL routines is challenging and time consuming. To ensure GeoCAT users have access to those functions while we work on full Python versions, the Fortran code they are based upon is wrapped in Python in the GeoCAT-f2py (Fortran 2 Python) package. GeoCAT-f2py is imported by GeoCAT-comp and included in the GeoCAT-comp namespace. Simply, this means that GeoCAT-f2py functions can be called through GeoCAT-comp, so there is no need for users to import GeoCAT-f2py directly in their scripts. Information about GeoCAT-f2py can be found on the package’s homepage.