Code Monkey home page Code Monkey logo

climate-explorer's People

Contributors

basilveerman avatar jameshiebert avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

climate-explorer's Issues

Backend /api/ directory is redundant

Originally, the back/front ends were deployed under a single server instance and the /api/ endpoint was used to differentiate this. Since the front end is now independent of the back end, the back end only serves data from /api/.

I propose removing the /api/ to serve all requests at the root location. Deployment proxies would then determine the publicly accessible endpoint root.

Separate apps should be in separate repositories

Current, the back end and front end are in separate directories within this repository. While they were originally dependant on each other and this was easy for management, the code bases are now completely independent. This should be reflected in the repository management.

I propose splitting the back end and front end into separate repositories and reducing this repository to just the 2 submodules and some deployment information.

Thoughts @jameshiebert, @mdfischer ?

Backend Data api call assumes all members of model contain all variables

This request:

http://<CE_BACKEND_URL>/api/data?model=PRISM&emission=historical&time=0&variable=tmax&area=

Results in:

Exception: File /home/data/climate/PRISM/dataportal/pr_monClim_PRISM_historical_run1_197101-200012.nc does not have variable tmax.

The is because the data api call does not filter queried files by the requested variable.

Possible solutions would be to:

  1. Filter the Run list to only produce runs containing files with the requested variable
  2. Filter the getdata request to only be called on files containing the correct variable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.