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

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
OB.DAAC - SeanBailey
User Services
User Services
Posts: 1470
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 5 times

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

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

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

Tags:

obdaac_admin
Posts: 22
Joined: Wed Jan 27, 2021 1:52 pm America/New_York
Answers: 0

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

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

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

Post Reply