Commit 51e6698b authored by Tove Svendby's avatar Tove Svendby
Browse files

Upload New File

parent 1f8a9637
#!/bin/bash
### Run script (bash, fortran and python):
### ./regrid.sh Combined_IASI_20100417_1200-2400.nc
path_in='/home/toves/Askevarsel/Latlon/'
file=$1
year=${file:14:4}
month=${file:18:2}
dd=${file:20:2}
d1=${file:23:2}
d2=${file:28:2}
time=${d1}:00-${d2}:00
#echo $year, $month, $day, $d1, $d2, $time
#file='Combined_IASI_20191128_1800-2400.nc'
#path_in='/home/toves/Askevarsel/Latlon/'
#file='Combined_IASI_20100417_1200-2400.nc'
#year=2010
#month=04
#dd=17
#time='12:00-24:00'
#ncks -s "%e\n" -C -H -v lat Combined_IASI_20191128_1800-2400.nc > lat.txt
#ncks -s "%e\n" -C -H -v lon Combined_IASI_20191128_1800-2400.nc > lon.txt
#ncks -s "%e\n" -C -H -v dBT Combined_IASI_20191128_1800-2400.nc > dBT.txt
echo $path_in$file
ncks -s "%e\n" -C -H -v lat $path_in$file > lat.txt
ncks -s "%e\n" -C -H -v lon $path_in$file > lon.txt
ncks -s "%e\n" -C -H -v dBT $path_in$file > dBT.txt
ncks -s "%e\n" -C -H -v SEVIRI_dBT $path_in$file > SEVIRI_dBT.txt
GridresolutionX=0.25
GridresolutionY=0.25
sensX=2.0
sensY=0.5
latmin=45
latmax=85
lonmin=-50
lonmax=50
rm fortran_info_res.txt
echo $GridresolutionX > fortran_info_res.txt
echo $GridresolutionY >> fortran_info_res.txt
echo $sensX >> fortran_info_res.txt
echo $sensY >> fortran_info_res.txt
echo $latmin >> fortran_info_res.txt
echo $latmax >> fortran_info_res.txt
echo $lonmin >> fortran_info_res.txt
echo $lonmax >> fortran_info_res.txt
echo $year >> fortran_info_res.txt
echo $month >> fortran_info_res.txt
echo $dd >> fortran_info_res.txt
echo $time >> fortran_info_res.txt
wc lat.txt >> fortran_info_res.txt
echo lon.txt >> fortran_info_res.txt
echo dBT.txt >> fortran_info_res.txt
echo SEVIRI_dBT.txt >> fortran_info_res.txt
./regrid_IASI
python3 MakeIASI_netcdf_and_Plot.py
rm lat.txt lon.txt dBT.txt SEVIRI_dBT.txt
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment