Command line scripts.
Example:
#!/bin/bash -l
region="PI"
tstart="2017-10-27 00:00:00"
tend="2017-10-27 23:59:59"
path_save="/srv/banet/data/rawdata"
regions_path="/srv/banet/data/regions"
banet_viirs750_download $region "$tstart" "$tend" $path_save $regions_path
Examples:
#!/bin/bash -l
region=PI
viirs_path=/srv/banet/data/rawdata
mcd64_path=/srv/mcd64
cci51_path=/srv/BA_validation/data/FireCCI51
save_path=/srv/banet/data/procdata
fires_path=/srv/banet/data/hotspots
regions_path=/srv/banet/data/regions
# Create dataset only for VIIRS
banet_create_dataset $region $viirs_path $fires_path $save_path \
$regions_path --year=2017
# Create dataset for VIIRS and MCD64A1C6
banet_create_dataset $region $viirs_path $fires_path $save_path \
$regions_path --mcd64_path $mcd64_path --year=2017
# Create dataset for VIIRS, MCD64A1C6 and FireCCI51 data.
banet_create_dataset $region $viirs_path $fires_path $save_path \
$regions_path --mcd64_path $mcd64_path \
--cci51_path $cci51_path --year=2017
Examples:
#!/bin/bash -l
input_path=/srv/banet/data/procdata
output_path=/srv/banet/data/tiles/train
region=PI
banet_dataset2tiles $region $input_path $output_path
Example:
#!/bin/bash -l
input_path=/srv/banet/data/procdata
output_path=/srv/banet/data/monthly
region=PI
year=2017
banet_predict_monthly $region $input_path $output_path $year
Example:
#!/bin/bash -l
region="PI"
tstart="2017-10-27 00:00:00"
tend="2017-10-27 23:59:59"
input_path="/srv/banet/data/procdata"
output_path="/srv/banet/data/monthly"
regions_path="/srv/banet/data/regions"
banet_predict_times $region "$tstart" "$tend" $input_path $output_path $regions_path
Example:
#!/bin/bash -l
val_year=2018
fold_name=99
input_path=/srv/banet/data/tiles/train
output_path=/srv/banet/data/models
banet_train_model $val_year $fold_name $input_path $output_path
The hotspots_region
name should be defined according with the image bellow. Names with multiple words use _
in place of the spaces. More info here: https://firms.modaps.eosdis.nasa.gov/active_fire/#firms-txt
IPython.display.Image(url="https://firms.modaps.eosdis.nasa.gov/images/Regions_500px.jpg")
Example:
#!/bin/bash -l
region=PI
project_path=data
hotspots_region=Europe
left=-10
bottom=36
right=5
top=44
banet_nrt_run $region $left $bottom $right $top $project_path $hotspots_region
Important: Note that hotspots will only be automatically downloaded starting 7 days ago from the current date. If you want to compute burned areas for an earlier period you need to manually donwload the active fires data.