Post

Visualizzazione dei post con l'etichetta Bash

How to run the MESO-NH model using operational ECMWF-IFS data (on model levels) as ICs & BCs

1. Download IFS data (on ecgate) as follows: -bash-4.1$ cat STATIC.REQ retrieve, class = od, expver = 1, stream = oper, date = 2020-11-15, time = 00, area = -10/-85.0/-50.0/-60.0, step = 0/to/6/by/6, type = fc, levtype = sfc, param = 129.128/172.128, grid = 0.1/0.1, target = "STATIC_20201115-00.grib{edition}" -bash-4.1$ cat SFC.REQ retrieve, class = od, expver = 1, stream = oper, date = 2020-11-15, time = 00, area = -10/-85.0/-50.0/-60.0, step = 0/to/6/by/6, type = fc, levtype = sfc, param = 39/40/41/42/139/141/170/183/236, grid = 0.1/0.1, target = "SFC_20201115-00.grib{edition}" -bash-4.1$ cat ML1.REQ retrieve, class = od, expver = 1, stream = oper, date = 2020-11-15, time = 00, area = -10/-85.0/-50.0/-60.0, step = 0/to/6/by/6, type = fc, levtype = ml, levelist= 1, param = 152, grid = 0.1/0.1, target = "ML1_20201115-00.grib{edition}" -bash-4.1$ cat ML.REQ retrieve, class = od, ex...

Yet another tutorial on how to install WRF

Immagine
Several tutorials on how to install WRF are available online. Basically the common root is the Official Tutorial from mmm.ucar . Some other noticeable websites are: WRF on Ubuntu server 16.04 again WRF on Ubuntu server 16.04 WRF on CENTOs WRF on Archlinux (with some nice ncl examples) WRF on a generic Linux machine   WRF Forum (section Installation)   etcetc...   Among the several tutorials you find online I'd like to add another (useless?) guide (or script) I used to automate the compilation of the WRF/WPS systems, with some special notes. It is definitely a non-exhaustive script and it might have some (hopefully non-destructive errors), so....  >>>use at your own risk<<< The prerequisites are: the netcdf libray (version 4.x) successfully compiled and installed (here in /usr/local) gcc, gfortran (version 5.4.0 or higher) #!/bin/bash # It is supposed that you have the following sources files in $SRCDIR # ARWpost_V3.tar...

How to download, mosaic and resample Modis NDVI data

Immagine
Modis NDVI data are fully described here Briefly: these data are intended to be the continuation of the well-known NOAA-AVHRR Vegetation Index and are currently used in a wide range of applications. The following procedure (very basic!!! use at your own risk! no waranty!!) works only in a Linux environment (even if it has been ported on a Windows machine under Cygwin). Pre-requisities: wget and MRT (Modis Reprojection Tool) that needs to be installed properly (that is MRT's bin directory needs to be added to the environmental variable $PATH) It consists in three Bash script and one auxiliary file, namely: wrapper_ModisNDVI.sh get.ndvi.sh mrt.ndvi.sh custom.env Copy all the files in your workin directory and cd to that directory. Usage: sh wrapper_ModisNDVI.sh YYYY.MM.DD file_env where YYYY.MM.DD is the year.month.day of the NDVI time step you're interested in as listed in https://e4ftl01.cr.usgs.gov/MOLT/MOD13Q1.006/ and the file file_env (custom.env) contai...