Giter Site home page Giter Site logo

speed up wrf_create about eixport HOT 3 CLOSED

atmoschem avatar atmoschem commented on June 18, 2024
speed up wrf_create

from eixport.

Comments (3)

Schuch666 avatar Schuch666 commented on June 18, 2024

wrf_create is not a particularly slow function in general, but can take a minute or more depending on the number of times (frames_per_auxinput5) and number of emission species

There is two ways to speed up this process:

  • reduce the number of times on the file
  • reduce the number of variables (WRF ignores the missing variables), I recommend to create the emission without the unused variables using a subset of the emiss_opt variables of the WRF option

from eixport.

ibarraespinosa avatar ibarraespinosa commented on June 18, 2024

Yeah, but line 99 has de for. So maybe, using a applay* could speed up this process. I will make some tests.

Another approach is parallelize code with doMC

This means that we have 4 approaches.

from eixport.

Schuch666 avatar Schuch666 commented on June 18, 2024

Yes indeed, but reduce the number of times or reduce the number of variables need just the change of 1 or 2 arguments on the function call

In the line 99 the loop are for multiple files, maybe doMC can make some work here (but its add more one dependence to the package)

A god place to start the 'apply type' functions are the following loops, that declare the NECTDF variables
GAS phase emissions
AEROSOL emissions

I recommend caution with a possible 'parallel file writing' on the following loops
GASES initialization with zeros
AEROSOLS initialization with zeros

PS: You don't need to create new files for different scenarios (same period, domain and chem options), can just check if the emission already exists

from eixport.

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.