Skip to content

Commit

Permalink
Issue #29: correção de bugs e melhorias no uso da interface; adiciona…
Browse files Browse the repository at this point in the history
…ndo scripts para uso do app com o Electron
  • Loading branch information
cfbastarz committed Feb 28, 2025
1 parent b9f24bd commit 753454f
Show file tree
Hide file tree
Showing 16 changed files with 16,222 additions and 628 deletions.
428 changes: 261 additions & 167 deletions redesign/SCANPLOT_V2.0.0a1

Large diffs are not rendered by default.

288 changes: 288 additions & 0 deletions redesign/SCANPLOT_V2.0.0a1.html

Large diffs are not rendered by default.

97 changes: 97 additions & 0 deletions redesign/SCANPLOT_V2.0.0a1.js

Large diffs are not rendered by default.

428 changes: 261 additions & 167 deletions redesign/SCANPLOT_V2.0.0a1.py

Large diffs are not rendered by default.

14,626 changes: 14,626 additions & 0 deletions redesign/catalog-scantec_BAM_AVAL.yml

Large diffs are not rendered by default.

146 changes: 146 additions & 0 deletions redesign/create_catalog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
#! /bin/bash -x

datei=2019111512
datef=2020020212

name=BAM_AVAL

url=https://dataserver.cptec.inpe.br/dataserver_dimnt/das/carlos.bastarz/SCANTEC-2.1.0/dataout/periodo/AVAL_SMNA_V2.3.1

# Forecast days
fctd=11

Regs=(gl hn tr hs as)
Exps=(EXP15 EXP18 X666)
Refs=(ref_era5_no_clim.new ref_gfs_no_clim.new ref_panl_cfsr_clim.new ref_panl_agcm_clim.new ref_panl_no_clim.new)
Ftypes=(field table)

#Regs=(as)
#Exps=(X666)
#Refs=(ref_panl_no_clim.new)
#Ftypes=(table)

echo "sources:" > catalog-scantec_${name}.yml

for reg in ${Regs[@]}
do

for exp in ${Exps[@]}
do

for ref in ${Refs[@]}
do

for ftype in ${Ftypes[@]}
do

if [ ${ftype} = "field" ]
then

Stats=(VIES RMSE MEAN)

for stat in ${Stats[@]}
do

if [ ${stat} = "VIES" ]; then statn="Bias"; fi
if [ ${stat} = "RMSE" ]; then statn="Root Mean Square Error"; fi
if [ ${stat} = "MEAN" ]; then statn="Mean Error"; fi

cat << EOF >> catalog-scantec_${name}.yml
'scantec-${reg}-${stat,,}-${exp,,}-${ref}-${ftype}':
args:
consolidated: true
urlpath: ${url}/${ref}/${reg}/${stat}${exp}_${datei}${datef}F.zarr
description: ${statn} for ${exp} experiment (${reg^^} area - valid for ${datei}-${datef})
driver: intake_xarray.xzarr.ZarrSource
metadata:
catalog_dir: ${url}
tags:
- atmosphere
- scantec
- monan
- analysis
- data_assimilation
region:
- ${reg}
statistic:
- ${stat,,}
experiment:
- ${exp,,}
reference:
- ${ref}
file_type:
- ${ftype}
date_initial:
- ${datei}
date_final:
- ${datef}
forecast_days:
- ${fctd}
url: ${url}
EOF

done

elif [ ${ftype} = "table" ]
then

Stats=(VIES RMSE ACOR)

for stat in ${Stats[@]}
do

if [ ${stat} = "VIES" ]; then statn="Bias"; fi
if [ ${stat} = "RMSE" ]; then statn="Root Mean Square Error"; fi
if [ ${stat} = "ACOR" ]; then statn="Anomaly Correlation"; fi

cat << EOF >> catalog-scantec_${name}.yml
'scantec-${reg}-${stat,,}-${exp,,}-${ref}-${ftype}':
args:
urlpath: ${url}/${ref}/${reg}/${stat}${exp}_${datei}${datef}T.csv
description: ${statn} for ${exp} experiment (${reg^^} area - valid for ${datei}-${datef})
driver: csv
metadata:
catalog_dir: ${url}
tags:
- atmosphere
- scantec
- monan
- analysis
- data_assimilation
region:
- ${reg}
statistic:
- ${stat,,}
experiment:
- ${exp,,}
reference:
- ${ref}
file_type:
- ${ftype}
date_initial:
- ${datei}
date_final:
- ${datef}
forecast_days:
- ${fctd}
url: ${url}
EOF

done

fi

done

done

done

done

exit 0
Loading

0 comments on commit 753454f

Please sign in to comment.