Error in the netCDF file: http://tds.hycom.org/thredds/dodsC/GLBa0.08/reanalysis
NetCDF: file not found
curl error details:
Error in the netCDF file: http://tds.hycom.org/thredds/dodsC/GLBa0.08/reanalysis
NetCDF: I/O failure
--
You received this message because you are subscribed to the Google Groups "connectivity-modeling-system-club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to connectivity-modeling-...@googlegroups.com.
To post to this group, send email to connectivity-mod...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to connectivity-modeling-system-club+unsubscribe@googlegroups.com.
To post to this group, send email to connectivity-modeling-system-cl...@googlegroups.com.
Note I've opened an issue on this in the github, as I still have problems with getdata crashing regularly:
getdata first opens a network connection and makes 5 queries; 1 to get the data on depth, lat, time and tau, 1 to get the data on lon (why is this done separately, for offset grids?), 2 for dds (why 2?) and 1 for das.
For each nest file downloaded it then opens a network connection for each variable to download (e.g. 1 for uvel and 1 for vvel), one after the other, and makes again 5 queries for each; 1 for the variable, 1 for depth, lat, time and tau (this seems unnecessary), 1 for das and 2 for dds (which as Micheal suggests may be unnecessary).
So while it only ever has 1 network connection open at once, it is making a lot of (unnecessary?) queries = a lot of bandwidth required, which slows the download down and I think might also be causing it to crash often:
#!/bin/bash
WGET='/usr/bin/wget'
YEAR='2008'
MONTH='09'
DAY='19'
StartSeq='0'
EndSeq='229'
NCSS='http://ncss.hycom.org/thredds/ncss/grid'
MODEL='GLBa0.08'
EXPT='expt_90.6'
VARS="var=u,v"
Subset='spatial=bb'
NORTH='north=70'
SOUTH='south=40'
EAST='east=0'
WEST='west=-30'
for PlusDay in `seq $StartSeq $EndSeq`; do
MyTime=`date -d "$YEAR-$MONTH-$DAY +$PlusDay days" +%Y-%m-%dT%H:%M:%SZ`
TimeStart="time_start=$MyTime"
TimeEnd="time_end=$MyTime"
OutFile=$MODEL"_"$EXPT"_`echo $MyTime | cut -d 'T' -f 1`T00Z.nc"
URL="$NCSS/$MODEL/$EXPT?$VARS&$SPATIAL&$NORTH&$SOUTH&$EAST&$WEST&$TimeStart& $TimeEnd"
if [ -s $OutFile ]; then
echo "[warning] File $OutFile exists (skipping)"
else
wget -O $OutFile "$URL"
fi
done
--