Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ash
ash-iasi
Commits
51e6698b
Commit
51e6698b
authored
Dec 07, 2020
by
Tove Svendby
Browse files
Upload New File
parent
1f8a9637
Changes
1
Hide whitespace changes
Inline
Side-by-side
Plot_IASI/regrid.sh
0 → 100644
View file @
51e6698b
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment