Skip to content

dylanlee/wnweb

Repository files navigation

wnweb

Welcome to the repository for the Water Prediction Node website! The WPN website is a collaborative effort between CIROH, NOAA CoastWatch, and the National Water Center. The purpose of the website will be to intake and disseminate remote sensing data relevant to hydrological modeling, prediction, and analysis. The data will come from a variety of sources from within NOAA, CIROH, as well as potentially other agencies and companies. This data will be disseminated to CIROH researchers, Water Center operations, and the general public.

The other main purpose of the website is to serve as an educational platform and facilitator for the use of satellite imagery so that stakeholders that aren't experts in the processing and acquisition of remote sensing data can still use satellite imagery in their research efforts.

Building webpage

Most of the WPN is a collection of html files. To add content edit the pages listed in "/src". The script "gen.php" adds the WPN website header and footer to these files and then puts the final pages in "/pages". Running "make" in wnweb will refresh the "/pages" directory if the files in "/src" have been changed. "make" also updates nginx.conf inside the nginx conf.d directory to reflect any changes that were made to the nginx.conf in the wnweb directory.

stac-browser subrepositories

There are two branches of a subrepository included in this repostory. One subrepository branch is for the experimental stac-browser that can be used as a graphical client for the WPN experimental catalog and the other subrepository branch is for the stac-browser instance that is used to interact with the WPN public catalog. Both instances are deployed from the same subrepository with the public stac-browser being deployed from the the "main" branch and the experimental stac-browser deployed from the "private" branch. The WPN stac-browser instances are forks from the main stac-browser repo and are mostly meant to be in sync with that repo. The main changes are to the "config.js" file in each branch to point to the correct catalog and also to style the browser to be in alignment with the rest of the WPN website.

Building stac-browser

To build stac-browser after making changes to the configuration, styling, or functionality run "npm run build" inside of the stac-browser instance you have modified. This builds stac-browser into the "/dist" subdirectory from which it can then be served by nginx.

Known issues

  • If you modify one of the .php pages in the “src” directory and then tweak the img, src, or js folders in the “pages” directory then gen.php won’t get run when you run make. This could be solved by having the canonical versions of img, src, and js be located in the “src” directory and then having these copied over to “src” during the build step.
  • Stac-browser had a bug where it did not support sorting search results by anything other than the default returned by the api. This bug has been fixed in the main stac-browser repo but the changes need to be merged into the WPN forks of stac-browser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published