# debugging TOOLS=/home/softs/tools/objects/ # optimized TOOLS=/home/softs/fast/tools-depot/objects/ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Localisation stations : ----------------------- X Y Longitude Latitude Longitude Latitude DATUM/IGN69 DATUM/IGN69 IGN69/WGS84 IGN69/WGS84 (obsolete) (2012) (2019) Le Verdon Lambert 2 334787.46 68853.12 0° 54' 35,00" 42° 52' 20,70" 358.938454 45.568432 -2.871 -2.879 46.297001 46.275814 Richard Lambert 2 344842.44 54502.02 0° 46' 48,42" 42° 44' 48,62" 359.074760 45.443273 -2.859 -2.859 46.129887 46.116310 Laména Lambert 2 354530.40 42143.16 0° 39' 23,04" 42° 38' 20,10" 359.204764 45.335728 -2.817 -2.817 46.036449 46.018475 Pauillac Lambert 3 357910.40 328772.50 0° 44' 45,76" 45° 13' 04,95" 359.253956 45.218042 -2.539 -2.589 45.955582 45.944954 Fort Médoc Lambert 3 361090.03 317445.99 0° 42' 00,99" 45° 07' 02,15" 359.299725 45.117264 -2.296 -2.300 45.914001 45.910957 Ambès Lambert 3 368392.97 308641.95 0° 36' 26,24" 45° 02' 25,39" 359.396471 45.040482 -2.002 -2.031 45.865807 45.865662 Le Marquis Lambert 3 371707.98 304370.01 0° 33' 34,48" 45° 00' 11,25" 359.440142 45.003123 -1.878 -1.878 45.857185 45.841236 Bassens Lambert 3 373080.00 293320.05 0° 32' 14,26" 44° 54' 15,06" 359.462707 44.904185 -1.824 -1.855 45.930824 45.931458 Bordeaux Lambert 3 371682.01 288452.96 0° 33' 10.16" 44° 51' 35.90" 359.447179 44.859973 -1.812 -1.835 46.006161 45.987907 http://www.catco.fr/geofree/gf/coordinateConv_beta.asp XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Download ======== Courriel du 2020-04-23 19:56 :: cd GPMBX-data/Upload wget https://cloud.shom.fr/s/JLdSMDCPxL8Nf3y/download -O MAREST.zip unzip MAREST.zip cd MAREST/INPUT_ORIGINE/ for f in Bordeaux_201[89][ab].zip;do unzip $f;done XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX pre-processing GPMBX: --------------------- # remove EOL spaces to reduce from 64Mb to 31Mb (!) sed -i -re "s/\s+$//" Bordeaux_201[89][ab].txt base processing --------------- #concatenation :: cd processing cat ../GPMBX-data/Bordeaux_201[89][ab].txt >Bordeaux_2018-2019.txt reformating :: /home/softs/tools/objects/mgr-converter -iF YMD -oF GNU --time-format YYDDDHHMM --units-correction 0.01 --delimiter ";" Bordeaux_2018-2019.txt -o PAB --time-correction Europe/Paris --suffix GPMBX-DATUM renaming :: span="20171231_20191231" names=(`sed -re "s/Date *; *//;t n;d;:n s/ *; */;/g;s/ /_/g;s/;/ /g;q" Bordeaux_2018-2019.txt`) for((i=0;i<=${#names};i++));do mv -v `printf "PAB.%04d" $i`_*-GPMBX-DATUM.gnu ${names[i]}_$span-GPMBX-DATUM.gnu done Geodetic processing: -------------------- span="20171231_20191231" $TOOLS/mgr-converter -iF GNU -oF GNU --mooring_info="lon=358.938454 lat=45.568432 name=Le_Verdon" --local-datum-correction -2.879 Le_Verdon_$span-GPMBX-DATUM.gnu -o Le_Verdon --suffix IGN69 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --mooring_info="lon=359.074760 lat=45.443273 name=Richard" --local-datum-correction -2.859 Richard_$span-GPMBX-DATUM.gnu -o Richard --suffix IGN69 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --mooring_info="lon=359.204764 lat=45.335728 name=Lamena" --local-datum-correction -2.817 Lamena_$span-GPMBX-DATUM.gnu -o Lamena --suffix IGN69 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --mooring_info="lon=359.253956 lat=45.218042 name=Pauillac" --local-datum-correction -2.589 Pauillac_$span-GPMBX-DATUM.gnu -o Pauillac --suffix IGN69 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --mooring_info="lon=359.299725 lat=45.117264 name=Fort_Medoc" --local-datum-correction -2.300 Fort_Medoc_$span-GPMBX-DATUM.gnu -o Fort_Medoc --suffix IGN69 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --mooring_info="lon=359.396471 lat=45.040482 name=Ambes" --local-datum-correction -2.031 Ambes_$span-GPMBX-DATUM.gnu -o Ambes --suffix IGN69 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --mooring_info="lon=359.440142 lat=45.003123 name=Le_Marquis" --local-datum-correction -1.878 Le_Marquis_$span-GPMBX-DATUM.gnu -o Le_Marquis --suffix IGN69 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --mooring_info="lon=359.462707 lat=44.904185 name=Bassens" --local-datum-correction -1.855 Bassens_$span-GPMBX-DATUM.gnu -o Bassens --suffix IGN69 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --mooring_info="lon=359.447179 lat=44.859973 name=Bordeaux" --local-datum-correction -1.835 Bordeaux_$span-GPMBX-DATUM.gnu -o Bordeaux --suffix IGN69 --nice=no #output : XXXXXXX_20051231_20140531-IGN69.gnu $TOOLS/mgr-converter -iF GNU -oF GNU --datum-correction "file=/home/data/topography/IGN69/version-2019/ign69_wgs84.nc variable=ign69 factor=1.0" Le_Verdon_$span-IGN69.gnu -o Le_Verdon --suffix WGS84 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --datum-correction "file=/home/data/topography/IGN69/version-2019/ign69_wgs84.nc variable=ign69 factor=1.0" Richard_$span-IGN69.gnu -o Richard --suffix WGS84 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --datum-correction "file=/home/data/topography/IGN69/version-2019/ign69_wgs84.nc variable=ign69 factor=1.0" Lamena_$span-IGN69.gnu -o Lamena --suffix WGS84 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --datum-correction "file=/home/data/topography/IGN69/version-2019/ign69_wgs84.nc variable=ign69 factor=1.0" Pauillac_$span-IGN69.gnu -o Pauillac --suffix WGS84 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --datum-correction "file=/home/data/topography/IGN69/version-2019/ign69_wgs84.nc variable=ign69 factor=1.0" Fort_Medoc_$span-IGN69.gnu -o Fort_Medoc --suffix WGS84 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --datum-correction "file=/home/data/topography/IGN69/version-2019/ign69_wgs84.nc variable=ign69 factor=1.0" Ambes_$span-IGN69.gnu -o Ambes --suffix WGS84 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --datum-correction "file=/home/data/topography/IGN69/version-2019/ign69_wgs84.nc variable=ign69 factor=1.0" Le_Marquis_$span-IGN69.gnu -o Le_Marquis --suffix WGS84 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --datum-correction "file=/home/data/topography/IGN69/version-2019/ign69_wgs84.nc variable=ign69 factor=1.0" Bassens_$span-IGN69.gnu -o Bassens --suffix WGS84 --nice=no $TOOLS/mgr-converter -iF GNU -oF GNU --datum-correction "file=/home/data/topography/IGN69/version-2019/ign69_wgs84.nc variable=ign69 factor=1.0" Bordeaux_$span-IGN69.gnu -o Bordeaux --suffix WGS84 --nice=no output : XXXXXXX_20051231_20140531WGS84.gnu Harmonic analysis: ------------------ span="2017-12-31_2019-12-31" for f in *-IGN69.gnu; do $TOOLS/detidor -format GNU -spectrum ESTUARINE $f done cat *mgr > gironde-$span-ESTUARINE.mgr HF detiding: ------------ span="2017-12-31_2019-12-31" for f in ../*-IGN69.gnu; do $TOOLS/detidor -format GNU -spectrum ESTUARINE-HF $f done cat *mgr > gironde-$span-ESTUARINE.mgr for f in *.gnu ; do g=${f%%_201712*} h=${f##*-IGN69_} l=$g-$h echo move $f to ${l%%.gnu}-IGN69.gnu mv $f ${l%%.gnu}-IGN69.gnu done XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX pre-processing SHOM ------------------- Concatenate :: cd preprocessing/SHOM for s in AMBES BASSENS BDX FORTMEDOC LAMENA LEMARQUIS PAUILLAC RICHARD;do cat ../../GPMBX-data/MAREST/INPUT_GIRONDE_TG_REFORMATE_SHOM/201[89]/[ab]/201?MarestGirondeTg.Noheader.wgs84.$s >2018-2019-$s-wgs84.dat done Convert :: for f in *.dat;do /home/softs/tools/objects/mgr-converter -iF YMD -oF GNU --time-format "DD-MM-YYYY HH-MM-SS" --units-correction 0.01 $f done