Re: [thredds] wget and thredds server

Hi All:

And I have been wondering if this is related to the problem Hoop (and I) have 
reported, where adding data to an existing file in an aggregation doesn't get 
noticed.  That suggests that the "last-modified" is not being seen correctly.  
They could be two different things, but you have to wonder.

-Roy

On May 13, 2012, at 12:16 AM, Ethan Davis wrote:

> Hi Patrick,
> 
> What is the version of the TDS with which you are trying to synch? The
> TDS has supported lastModified for quite some time, so it would have to
> be a pretty old version to not support it. But that's the first thing
> that comes to mind.
> 
> You could also try looking at the HTTP "Last-Modified" response headers
> you are getting back. You can do this with the wget "--save-headers"
> option. Or, in Firefox, by using a plugin like Live HTTP Headers.
> 
> John, any chance the file caching in the TDS could be masking a change
> to the last modified timestamp?
> 
> Ethan
> 
> On 5/12/2012 3:13 PM, John Caron wrote:
>> On 5/11/2012 7:33 AM, Patrick Brockmann wrote:
>>> Hi all,
>>> 
>>> I would like to synchonize some netcdf files available from
>>> a THREDDS Data Server with a local repository.
>>> 
>>> I have used the wget command and HTTPServer access from
>>> the TDS but it seems that the server does not provide enough
>>> or correct informations to use properly the --timestamp option
>>> of wget (very useful to synchronize).
>>> Read http://www.gnu.org/software/wget/manual/wget.html#Time_002dStamping
>>> 
>>> The method works for an old OPeNDAP server but not with 2 different
>>> Thredds Data Servers
>>> 
>>> Try:
>>> $ wget -N http://dods.ipsl.jussieu.fr/brocksce/tmp/tyty.txt
>>> If you retry you get the message
>>> ----> Server file no newer than local file `tyty.txt' -- not retrieving.
>>> if the 2 files (input and local) are not the same from date or size, the
>>> download is done again.
>>> If you modify the file by adding a character, you get
>>> ----> The sizes do not match (local 43) -- retrieving.
>>> If you apply a touch -t 201106230000 on the file to see what happens
>>> ----> Remote file is newer, retrieving.
>>> 
>>> I would like to get the same feature (synchro on date and size) when I
>>> download from a TDS/HTTPServer.
>>> 
>>> Any help welcome on this synchronization.
>>> 
>>> Regards
>>> Patrick
>>> 
>> 
>> Hi Patrick:
>> 
>> When compression is enabled, which it often is on a TDS, the
>> Content-Length header is not sent, since the response is variable length.
>> Apparently wget needs that to synch (?) Seems like it should just use
>> Last-Modified.
>> 
>> I dont see a workaround without turning off compression.
>> 
>> John
>> 
>> _______________________________________________
>> thredds mailing list
>> thredds@xxxxxxxxxxxxxxxx
>> For list information or to unsubscribe,  visit:
>> http://www.unidata.ucar.edu/mailing_lists/
> 
> -- 
> Ethan Davis                                       UCAR Unidata Program
> edavis@xxxxxxxxxxxxxxxx                    http://www.unidata.ucar.edu
> 
> _______________________________________________
> thredds mailing list
> thredds@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/ 

**********************
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.



  • 2012 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: