Giter VIP home page Giter VIP logo

Comments (4)

paolap avatar paolap commented on August 22, 2024

In ARCCSSive we had a finding-matching-variable script that provided a solution fort his case.
I actually had two requests for something similar only in the last week.
If we can implement it at function level then we could add another option to the command level search, so a list of variables is interpreted as
var1 AND var2 rather than
var1 OR var2.

from clef.

paolap avatar paolap commented on August 22, 2024

We have a prototype function for this, which we are currently integrating in the module.
The current function allow the user a reasonable flexibility, and returns both the query without "AND" imposed and the selection of simulations that have all variables passed as constraints.
The user can select a different attribute from variable, i.e. experiment, and in fact they can set more than one at one time.
An example of query would be
all models/ensembles that have (tasmin AND tasmax) for (piControl AND historical AND rcp45).

The prototype was built to filter the local query results and more work needs to be done for this to work also on the remote query results.

from clef.

paolap avatar paolap commented on August 22, 2024

This was released in 0.5.0
It now works also for remote queries returns dataset-ids instead of paths.
The last step is to add it to the command line.
I'm thinking something like
--and variable,experiment for example to indicate add and and filter on both variable and experiment. To make things easier I would always have (model, ensemble) as default identifier of a simulation.
This might actually make sense also for the non-command line version.

from clef.

paolap avatar paolap commented on August 22, 2024

I've added the cli version it is working fine for local both cmip5 and cmip6,
as output:

[pxp581@vdi-n4 clef]$ ~/.local/bin/clef --local cmip6 -v tas -v pr -t Amon -e piControl -mi r1i1p1f2 --and variable_id
CNRM-CM6-1 r1i1p1f2 {'v20180814'}
CNRM-ESM2-1 r1i1p1f2 {'v20181115'}
UKESM1-0-LL r1i1p1f2 {'v20190410'}

Got some positive feedback on the currently available version from users.
Also docs were fine apart from some formatting issues

from clef.

Related Issues (20)

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.