Where Can Pregnant Women Go? (WCPWG)

May 30, 2026 ยท View on GitHub

"gmake" GitHub Action Status "mypy" GitHub Action Status "pylint" GitHub Action Status

This all started after reading the NHS guidance on exercise in pregnancy.

Workflow

Output

The FORTRAN program step2_createMask will print out:

 > 93.802373% of the world is below 2,500 m ASL.
 > 93.800614% of the world is accessible to pregnant women.
 >  0.001759% of the world is inaccessible to pregnant women.

The Python script step7_makePlots.py will make:

places less than 2,500 m ASL but which are not accessible in Colorado

Dependencies

WCPWG requires the following Python modules to be installed and available in your PYTHONPATH.

Additionally, due to the dependency on my FORTRAN library, you will also require the following Python modules to be installed and available in your PYTHONPATH:

WCPWG uses some Global Self-Consistent Hierarchical High-Resolution Geography resources and some Natural Earth resources via the cartopy module. If they do not exist on your system then cartopy will download them for you in the background. Consequently, a working internet connection may be required the first time you run WCPWG.

Bugs

  • The algorithm does not cross the meridian. Therefore, if a valley is only accessible by crossing the meridian then this program will incorrectly mark it as inaccessible.