Giter Site home page Giter Site logo

ncar / pi-wrf Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 12.0 90.04 MB

This repository hosts a Jupyter notebook based application of the Weather Research and Forecasting Model (WRF) on a Raspberry Pi (version 3 or higher).

License: BSD 3-Clause "New" or "Revised" License

NCL 3.75% Shell 0.55% Python 4.83% Jupyter Notebook 90.87%

pi-wrf's People

Contributors

agbeli-ncar avatar lkailynncar avatar oluwajobs avatar reidolson avatar supreethms1809 avatar wefoust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pi-wrf's Issues

Cannot install

I have followed the instructions 1-3 according to the README. When I run command 3, this is the error I get.
sudo docker run -it --rm --net=host -e "DISPLAY" -v $HOME/.Xauthority:/root/.Xauthority ncar/pi-wrf
Unable to find image 'ncar/pi-wrf:latest' locally
latest: Pulling from ncar/pi-wrf
92edef642b6b: Pull complete
8aea8cf466b7: Pull complete
2ce2e111fecf: Pull complete
4dcd9c3f19e3: Pull complete
3d3ccb773559: Pull complete
a70623546b78: Pull complete
72030759e04f: Pull complete
d496bd9cccb0: Pull complete
4c09d864e9eb: Pull complete
178b6c6286c8: Pull complete
8a47eb84d965: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:3d93a63e29a2c35a726bd249c0236507fd85b865084da0104437d99f1e56f92f
Status: Downloaded newer image for ncar/pi-wrf:latest
Traceback (most recent call last):
File "/pi-wrf/pi_wrf/pi_wrf/Runner.py", line 45, in
app = MainWindow()
File "/pi-wrf/pi_wrf/pi_wrf/Runner.py", line 16, in init
tk.Tk.init(self, *args, **kwargs)
File "/usr/lib/python3.5/tkinter/init.py", line 1880, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable

Resolution

Hi

I think the default resolution for a model run is 30km? Is it possible to change this at all? I could see some reference to the resolution in the config files within the image, but was unsure if this could be modified at all...

Where are the images saved?

Running the latest version and love that my students could save the text/images from the run.

Planning on having them build a PI, and then run the model and share the output while studying from home.

I just can not figure out where the run information is being saved, so I can include instructions for copying and sharing the files.

Thanks.

Boundary Conditions

It seems the boundary conditions downloads are not working. The download messages are happening way too fast for any data downloads to be happening.

Viewing Output

Hello,

Quite new to all of this, so forgive me...

When I run this app and it generates images, is there a way to step through multiple days/hours of output? It seems I am only getting one image for temps, one image for precip, etc. And, I do not know what date/time it is valid for. Can a timestamp be added?

Thanks for any help!

Make time series plot

I have successfully installed Pi-WRF and I have it running on a RPi 4. Where can I obtain the .nc model output files for creating a time series plot?

exec format error

I am attempting to run this on a Mint Linux 19.1 virtual machine and when I run the command to start the docker image, I get the following error:

"standard_init_linux.go:211: exec user process caused "exec format error"

I'm not sure if this expected behavior since this is not a raspberry pi or not but wanted to bring this to the developers attention.

Display issues with multiple monitors

The app does not display properly when two or more monitors are involved. This is due to tkinter adding the resolution of both monitors and adjusting the app to display on the combined resolution. Need to define an active monitor and then set the resolution on a single monitor.

File System

Where are the files output to? I see them in the notebook but I'd like to access them outside of that environment, as well look at the raw files produced by WRF.

Also what code is it looking at? I tried to change the domain resolution in set_domain.py but it's still 30 km each time.

Double click on Map

Map zooms into single point when a user double clicks instead of click and drag.

Fatal Error Assistance

When trying to run pi-wrf, I get the following error:
FATAL CALLED FROM FILE: LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021

Is there anything that can be done to mitigate this issue? I have attached a file with all of the readout. I appreciate your assistance.

Capture.txt

Running on different architectures

Pi-WRF seems great for some simple presentations of NWP models, but I don't have a Raspberry Pi. So I am wondering, is it possible to run pi-wrf on some different machine than Raspberry Pi? For example, just a computer with Ubuntu?

I've read that there are some options for multiarch builds in Docker, but I'm not very familiar with Docker so I want to check first if there is an easier solution.

Downloading boundary conditions

I attempted to run pi-wrf without making any changes to notebook. I let it determine the date range by itself. It appeared to be working until it got to obtaining the boundary conditions. Below is what happened. What did I do wrong? I have tried setting the dates manually and the same thing happened. How is it supposed to download the boundary conditions?

Downloading boundary condition for forecast hour 000

Downloading boundary condition for forecast hour 006
Parsed 28 entries in GEOGRID.TBL
Processing domain 1 of 1
Processing XLAT and XLONG
Processing MAPFAC
Processing F and E
Processing ROTANG
Processing LANDUSEF
Calculating landmask from LANDUSEF ( WATER = 17 21 )
Processing HGT_M
Processing SOILTEMP
Processing SOILCTOP
Processing SCT_DOM
Processing SOILCBOT
Processing SCB_DOM
Processing ALBEDO12M
Processing GREENFRAC
Processing LAI12M
Processing SNOALB
Processing CON
Processing VAR
Processing OA1
Processing OA2
Processing OA3
Processing OA4
Processing OL1
Processing OL2
Processing OL3
Processing OL4

Optional fields not processed by geogrid:
VAR_SSO (priority=1, resolution='lowres', path='/pi-wrf/WRF_System/lib/WPS_GEOG/varsso_10m/')
LAKE_DEPTH (priority=1, resolution='default', path='/pi-wrf/WRF_System/lib/WPS_GEOG/lake_depth/')
URB_PARAM (priority=1, resolution='default', path='/pi-wrf/WRF_System/lib/WPS_GEOG/NUDAPT44_1km/')
FRC_URB2D (priority=1, resolution='default', path='/pi-wrf/WRF_System/lib/WPS_GEOG/urbfrac_nlcd2011/')
IMPERV (priority=1, resolution='default', path='/pi-wrf/WRF_System/lib/WPS_GEOG/nlcd2011_imp_ll_9s/')
CANFRA (priority=1, resolution='default', path='/pi-wrf/WRF_System/lib/WPS_GEOG/nlcd2011_can_ll_9s/')
EROD (priority=1, resolution='default', path='/pi-wrf/WRF_System/lib/WPS_GEOG/erod/')
CLAYFRAC (priority=1, resolution='default', path='/pi-wrf/WRF_System/lib/WPS_GEOG/clayfrac_5m/')
SANDFRAC (priority=1, resolution='default', path='/pi-wrf/WRF_System/lib/WPS_GEOG/sandfrac_5m/')

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Successful completion of geogrid. !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*** Starting program ungrib.exe ***
Start_date = 2022-09-09_06:00:00 , End_date = 2022-09-09_12:00:00
output format is WPS
Path to intermediate files is ./
ERROR: edition_num: unable to open GRIBFILE.AAA
Processing domain 1 of 1
Processing 2022-09-09_06
FILE
WARNING: Couldn't open file FILE:2022-09-09_06 for input.
ERROR: The mandatory field TT was not found in any input data.

Initializing Model

--- WARNING: traj_opt is zero, but num_traj is not zero; setting num_traj to zero.
--- NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
--- NOTE: grid_fdda is 0 for domain 1, setting gfdda interval and ending time to 0 for that domain.
--- NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 1, setting sgfdda interval and ending time to 0 for that domain.
--- NOTE: obs_nudge_opt is 0 for domain 1, setting obs nudging interval and ending time to 0 for that domain.
--- NOTE: bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
Need MYNN PBL for icloud_bl = 1, resetting to 0
--- NOTE: RRTMG radiation is not used, setting: o3input=0 to avoid data pre-processing


Configuring physics suite 'conus'

     mp_physics:      4*
     cu_physics:      6
  ra_lw_physics:      4
  ra_sw_physics:      4
 bl_pbl_physics:      2

sf_sfclay_physics: 2
sf_surface_physics: 2

(* = option overrides suite setting)


--- NOTE: RRTMG radiation is in use, setting: levsiz=59, alevsiz=12, no_src_types=6
--- NOTE: num_soil_layers has been set to 4
REAL_EM V3.9.1 PREPROCESSOR
DYNAMICS OPTION: Eulerian Mass Coordinate
alloc_space_field: domain 1 , 17700564 bytes allocated
Time period # 1 to process = 2022-09-09_06:00:00.
Time period # 2 to process = 2022-09-09_12:00:00.
Total analysis times to input = 2.


Domain 1: Current date being processed: 2022-09-09_06:00:00.0000, which is loop # 1 out of 2
configflags%julyr, %julday, %gmt: 2022 252 6.00000000
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 385
error opening met_em.d01.2022-09-09_06:00:00.nc for input; bad date in namelist or file not in directory

Running WRF

--- WARNING: traj_opt is zero, but num_traj is not zero; setting num_traj to zero.
--- NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
--- NOTE: grid_fdda is 0 for domain 1, setting gfdda interval and ending time to 0 for that domain.
--- NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 1, setting sgfdda interval and ending time to 0 for that domain.
--- NOTE: obs_nudge_opt is 0 for domain 1, setting obs nudging interval and ending time to 0 for that domain.
--- NOTE: bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
Need MYNN PBL for icloud_bl = 1, resetting to 0
--- NOTE: RRTMG radiation is not used, setting: o3input=0 to avoid data pre-processing


Configuring physics suite 'conus'

     mp_physics:      4*
     cu_physics:      6
  ra_lw_physics:      4
  ra_sw_physics:      4
 bl_pbl_physics:      2

sf_sfclay_physics: 2
sf_surface_physics: 2

(* = option overrides suite setting)


--- NOTE: RRTMG radiation is in use, setting: levsiz=59, alevsiz=12, no_src_types=6
--- NOTE: num_soil_layers has been set to 4
WRF V3.9.1 MODEL
DYNAMICS OPTION: Eulerian Mass Coordinate
alloc_space_field: domain 1 , 13369112 bytes allocated
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021

Plotting Surface Temperatures
Plotting Precipitation
Plotting Snow Depth
Plotting Surface Winds
Plotting Reference Domains
../../run_wrf: line 16: /pi-wrf/Setup/Set_Environment: No such file or directory
../../run_wrf: line 28: (09: value too great for base (error token is "09")
rm: cannot remove '/pi-wrf/Output/.png': No such file or directory
rm: cannot remove '/pi-wrf/Output/
.gif': No such file or directory
rm: cannot remove '/pi-wrf/Output/user_saved_files/.png': No such file or directory
rm: cannot remove '/pi-wrf/Output/Temp_WRF_Output': No such file or directory
rm: cannot remove '/pi-wrf/WRF_System/lib/DATA/
': No such file or directory
../../run_wrf: line 80: /pi-wrf/WRF_System/lib/DATA/: Is a directory
../../run_wrf: line 80: /pi-wrf/WRF_System/lib/DATA/: Is a directory
foreach: No match.
ncap2: ERROR file met_em*.nc neither exists locally nor matches remote filename patterns
ncap2: ERROR file met_em*.nc neither exists locally nor matches remote filename patterns
ncap2: ERROR file met_em*.nc neither exists locally nor matches remote filename patterns
ncap2: ERROR file met_em*.nc neither exists locally nor matches remote filename patterns
ncap2: ERROR file met_em*.nc neither exists locally nor matches remote filename patterns
ncap2: ERROR file met_em*.nc neither exists locally nor matches remote filename patterns
ncap2: ERROR file met_em*.nc neither exists locally nor matches remote filename patterns
ncap2: ERROR file met_em*.nc neither exists locally nor matches remote filename patterns
ncap2: ERROR file met_em*.nc neither exists locally nor matches remote filename patterns
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 385
error opening met_em.d01.2022-09-09_06:00:00.nc for input; bad date in namelist or file not in directory

STOP wrf_abort
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021

STOP wrf_abort
mv: cannot stat 'wrfout_d01_2022-09-09_06:00:00': No such file or directory

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.