Comments (3)
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.
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.
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)
- Found wrong unit in wrfchemi HOT 5
- units problem HOT 4
- add summary to ncpath
- add to_citychem
- add to_camx
- Error on wrf_meta HOT 1
- add function to easily create NetCDF from bricks
- Improve wrf_input chemistry condition with ML and other approaches
- add function to support citychem
- can we control units in wrf_create? HOT 1
- write article to plot wrf outputs
- add wrf_rh HOT 3
- wrf_raster wrong projection HOT 5
- set NA as 0 in wrf_put HOT 4
- add chemistry in boundary and initial conditions HOT 3
- add to_*
- CRAN HOT 7
- add chimere_create HOT 1
- Please remove dependencies on **rgdal**, **rgeos**, and/or **maptools** HOT 8
- Error in wrf_raster in file without Times variable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eixport.