Page 3 of 3

Re: Incorrect File Size for Aqua, Terra and VIIRS SST and Chl files

Posted: Mon Dec 11, 2023 4:15 pm America/New_York
by OB.DAAC - SeanBailey
Mike,

Both methods are pretty equal. The traffic is all over HTTPS, so "data in transit" is encrypted. The appkey obfuscates a bit more, as the username isn't required (although is derived on the server side, as the key is unique). Really, it's down to preference and ease of use.

Sean

Re: Incorrect File Size for Aqua, Terra and VIIRS SST and Chl files

Posted: Tue Dec 12, 2023 10:22 am America/New_York
by obdaac_admin
Mark,

I believe if you use the curly braces with the variables, it delineates the variable context:

${listfiles[n]}?appkey=app-key-value

Ex:

Code: Select all

#!/usr/bin/tcsh
  
set arr=( "file1" "file2" "file3" )
echo ${arr}

@ i = 1
while ($i <= ${#arr})
    echo "getfile/${arr[$i]}?appkey=abc123"
    @ i++
end
produces:
$ ./test.csh
file1 file2 file3
getfile/file1?appkey=abc123
getfile/file2?appkey=abc123
getfile/file3?appkey=abc123


john